Skip to main content
GET
/
api
/
agent
/
contexts
List agent contexts
curl --request GET \
  --url https://api.wacht.dev/api/agent/contexts \
  --cookie session_id=
{
  "data": [
    {
      "id": "123456789012345678",
      "deployment_id": "111111111111111111",
      "context_group": "support-agents",
      "title": "Customer Support Conversation",
      "system_instructions": "You are a helpful customer support assistant.",
      "status": "active",
      "message_count": 15,
      "created_at": "2024-01-15T10:30:00Z",
      "updated_at": "2024-01-15T11:30:00Z"
    }
  ],
  "has_more": false,
  "limit": 10,
  "offset": 0
}

Authorizations

session_id
string
cookie
required

Session-based authentication using cookies

Query Parameters

limit
integer
default:10

Maximum number of contexts to return

Required range: 1 <= x <= 100
offset
integer
default:0

Number of contexts to skip

Required range: x >= 0
status
enum<string>

Filter by status

Available options:
active,
archived,
all

Search term for context titles

Response

Contexts retrieved successfully

data
object[]

List of contexts

has_more
boolean

Whether there are more contexts to fetch

Example:

false

limit
integer | null

Applied limit

Example:

10

offset
integer | null

Applied offset

Example:

0