GET
/
agents
curl --request GET \
  --url https://api.contextual.ai/v1/agents \
  --header 'Authorization: Bearer <token>'
{
  "total_count": 123,
  "next_cursor": "<string>",
  "agents": []
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

limit
integer
default:1000

Maximum number of agents to return

Required range: 1 <= x <= 1000
cursor
string

Cursor from the previous call to list agents, used to retrieve the next set of results

Response

200
application/json
Successful Response
total_count
integer
required

Total number of available agents

next_cursor
string

Next cursor to continue pagination. Omitted if there are no more agents to retrieve.

agents
object[]

List of active agents