List agents

Returns a list of your agents and their metadata.

Cabeçalhos

xi-api-keystringOpcional

Parâmetros de consulta

page_sizeintegerOpcional1-100Padrão é 30
How many Agents to return at maximum. Can not exceed 100, defaults to 30.
searchstringOpcional
Search by agents name.
archivedbooleanOpcional
Filter agents by archived status
show_only_owned_agentsbooleanOpcionalPadrão é falseDeprecated

If set to true, the endpoint will omit any agents that were shared with you by someone else and include only the ones you own. Deprecated: use created_by_user_id instead.

created_by_user_idstringOpcional

Filter agents by creator user ID. When set, only agents created by this user are returned. Takes precedence over show_only_owned_agents. Use ‘@me’ to refer to the authenticated user.

tagsstringOpcional
Filter agents by tag. Repeat the parameter to match any of several tags.
sort_directionenumOpcional
The direction to sort the results
Valores permitidos:
sort_byenumOpcional
The field to sort the results by
Valores permitidos:
cursorstringOpcional
Used for fetching next page. Cursor is returned in the response.

Resposta

Successful Response
agentslist of objects
A list of agents and their metadata
has_moreboolean
Whether there are more agents to paginate through
next_cursorstringOpcional
The next cursor to paginate through the agents

Erros

422
Agents List Request Unprocessable Entity Error