List agents

Returns a list of your agents and their metadata.

请求头

xi-api-keystring可选

查询参数

page_sizeinteger可选1-100默认为 30
How many Agents to return at maximum. Can not exceed 100, defaults to 30.
searchstring可选
Search by agents name.
archivedboolean可选
Filter agents by archived status
show_only_owned_agentsboolean可选默认为 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_idstring可选

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.

tagsstring可选
Filter agents by tag. Repeat the parameter to match any of several tags.
sort_directionenum可选
The direction to sort the results
允许的值:
sort_byenum可选
The field to sort the results by
允许的值:
cursorstring可选
Used for fetching next page. Cursor is returned in the response.

响应

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

错误

422
Agents List Request Unprocessable Entity Error