Lists agents in the current workspace with pagination, sorted by created_at in descending order. Archived items are excluded by default; pass include_archived=true to include them.
Prerequisites
Endpoint and authentication configured. For details, see Overview and authentication.
Endpoint
GET /agents
Query parameterslimitint (可选)Number of items per page. Default: 20, maximum: 100page string (可选)Pagination cursor. Omit for the first request; pass the next_page value from the previous response to fetch the next pageinclude_archived bool (可选)Whether to include archived agents. Default: false | Request example |
Agent object fieldsidstringAgent ID, format: agent_<ULID>type stringAlways agentversion intCurrent version number, auto-incremented on each updatename / description / system stringAgent name, description, and system promptmodel / tools / mcp_servers / skills / multiagent / metadata object / arrayModel, toolkits, MCP references, skills, multi-agent collaboration, and business metadataarchived_at string | nullArchive timestamp; null if not archivedcreated_at / updated_at stringCreation / last update time, ISO 8601workspace_id stringWorkspace ID | ResponseThe response containsdata (an array of Agent objects) and next_page (cursor for the next page; null when no more data). Each Agent object has the same fields as the Create Agent response. Field descriptions: |