API
GET /api/agents/{slug}/context
Get Agent Context
GET /api/agents/{slug}/context
Get Agent Context
Authentication: Authorization: Bearer <key> or X-API-Key: <key>. Create keys at developers.cognitivx.io/keys.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
slug | path | string | Yes | - |
X-Org-ID | header | string | null | No | - |
Example request
curl -X GET https://api.cognitivx.io/api/agents/{slug}/context \
-H "Authorization: Bearer icog_..."Example response
200 application/json
{
"slug": "string",
"name": "production",
"context": "Parsa prefers limit/offset pagination",
"memory_count": 10,
"last_updated": "string"
}Responses
| Status | Description |
|---|---|
200 | Success. Returns the response body shown below. |
422 | Request validation failed. detail lists each offending field. |