Skip to main content
GET
List agents

Authorizations

X-API-Key
string
header
required

[Production] API key for production authentication

Query Parameters

projectId
string

The unique identifier for the project to filter by. If you omit it, the API returns agents from all projects that you can access.

filter
string

Returns only the items whose name contains this text. The match is case-insensitive. Some characters have a special meaning, for example . * + ? ( ) [ ] ^ $ \ |, and some combinations of them make the request fail. To match one literally, put \ before it.

limit
integer
default:100

The maximum number of items to return, from 1 to 100. The default is 100.

skip
integer
default:0

The number of items to skip before starting to return results. The default is 0. Use skip and limit to page in either sort order.

sort
string
default:asc

The sort order of the agents by creation, either asc or desc. The default is asc.

next
string

The nextCursor from the previous response. Use it only with the default sort=asc. With desc, use skip.

Response

Returns the list of agents.

items
object[]

The agents on this page.

nextCursor
string

The cursor for the next page of results. It is the ID of the last agent on this page, and the API returns it for every page that contains agents, including the last one. Pass it as the next query parameter, only with the default sort=asc. The value is null if the page is empty.

Example:

"507f1f77bcf86cd799439011"

total
integer

The total number of agents that match the filters, before pagination.

Example:

1