Skip to main content
GET
List agents

Choosing the user

A user-scoped API key lists the agents for its own user. An Organization API key lists the agents for the user who created the key. To list the agents for a different user, use an Organization API key and set userId.

Listing every agent

An Organization Admin can set access=view to list every agent in the organization. An Organization Admin can run only the agents that they own or that are shared with them.

Pagination

The response contains up to pageSize agents. If more agents match, pageInfo.nextCursor contains a value. Pass that value as cursor to get the next page.

Authorizations

Authorization
string
header
required

Can be either an Organization API Key or Personal Access Token (PAT).

Include in the Authorization header as: Bearer YOUR_TOKEN

Query Parameters

cursor
string

Pagination cursor from a previous response's pageInfo.nextCursor.

Example:

"eyJpZCI6IjEyMzQ1In0"

pageSize
integer
default:20

Number of agents to return per page.

Required range: 1 <= x <= 100
Example:

20

userId
string<uuid>

Requires an Organization API key. The ID of the user to list agents for.

access
enum<string>
default:run

run lists the agents that the user can run. view lists every agent that the user can see. The two values give different results only for an Organization Admin, who can see every agent in the organization.

Available options:
run,
view
q
string

Text to search for in agent names and descriptions. The search isn't case-sensitive and matches the full value as one string, so use a single word. Maximum 200 characters.

Maximum string length: 200
Example:

"revenue"

Response

A page of agents.

pageInfo
object
required

Pagination information for paginated responses.

records
object[]
required

The agents on this page, newest first.