List agents
GET/v2/agents
Return a page of the agents in your workspace, newest first, with optional filters for status and type.
Working draft. These docs are illustrative: names, endpoints and examples describe the intended behaviour and can change before launch.
Returns the agents in your workspace, newest first. Call it to build an agent picker, to sync agent settings into another system, or to find the agt_ ID that other calls need.
Request
GET /v2/agents
Query parameters:
| Name | Type | Required | Description |
|---|---|---|---|
limit |
integer | No | Items per page, from 1 to 100. Defaults to 20. |
cursor |
string | No | The nextCursor value from the previous page. Leave it out for the first page. |
status |
string | No | Return only agents with this status: draft or live. |
type |
string | No | Return only agents of this type: support, sales or guidance. |
Filters and limit must stay the same on every request of one walk through the list. See Pagination.
Example request
curl "https://api.askocto.co/v2/agents?status=live&limit=20" \
-H "Authorization: Bearer $OCTO_API_KEY"
const url = new URL("https://api.askocto.co/v2/agents")
url.searchParams.set("status", "live")
url.searchParams.set("limit", "20")
const response = await fetch(url, {
headers: { Authorization: `Bearer ${process.env.OCTO_API_KEY}` },
})
const { data, nextCursor } = await response.json()
console.log(`${data.length} live agents`, nextCursor)
Example response
A successful call returns 200 OK.
{
"data": [
{
"id": "agt_8f3k2m",
"name": "Store support",
"type": "support",
"status": "live",
"model": "octo-balanced",
"instructions": "Answer questions about orders, shipping and returns.",
"language": "en",
"createdAt": "2026-03-14T09:30:00Z",
"updatedAt": "2026-03-20T14:05:00Z",
"settings": {
"visibility": "public",
"rateLimit": {
"enabled": true,
"message": "You are sending messages quickly. Please wait a moment."
},
"initialMessages": ["Hi, how can I help?"],
"suggestedMessages": ["Where is my order?"]
}
}
],
"nextCursor": null
}
Response fields
| Name | Type | Description |
|---|---|---|
data |
array | The agents on this page, newest first. Each item is an agent object. |
nextCursor |
string or null | Pass it as cursor to get the next page. null on the last page. |
The fields of an agent object are described in the Agents overview. To read a single agent, call Get agent.
Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid_request |
limit is outside 1 to 100, or status or type has an unknown value. |
| 401 | unauthorized |
The API key is missing, malformed or deleted. |
| 429 | rate_limited |
Too many requests. Wait for the number of seconds in the Retry-After header. |
Retry guidance is in Error handling.