List Agents

Updated at:

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 parameters

limitintOptional

Number of items per page. Default: 20, maximum: 100

pagestringOptional

Pagination cursor. Omit for the first request; pass the next_page value from the previous response to fetch the next page

include_archivedboolOptional

Whether to include archived agents. Default: false

Request example

curl "$AGENTSTUDIO_URL/agents?limit=20&include_archived=true" \
  -H "Authorization: Bearer $DASHSCOPE_API_KEY"
for agent in client.agents.list(limit=20, include_archived=True):
    print(agent.id, agent.name, agent.model['id'])
CursorPage<Agent> page = client.agents().list(AgentListParam.builder()
    .limit(20).includeArchived(true).build());
for (Agent a : page.getData()) System.out.println(a.getId() + " " + a.getName());

Response fields

dataarray<Agent>

Array of Agent objects

data[] Agent object fields

idstring

Agent ID, format: agent_<ULID>

typestring

Always agent

versionint

Current version number, auto-incremented on each update

namestring

Agent name

descriptionstring

Description

systemstring

System prompt

modelobject

Model configuration, including id and other model parameters

model properties

idstring

Model ID, e.g. qwen3.7-max

enable_thinkingboolean

Whether to enable thinking mode

max_tokensinteger

Maximum generation length

temperaturenumber

Temperature that controls randomness

thinking_budgetinteger

Thinking budget length

toolsarray<object>

Toolkit list, grouped by type

tools properties

typestring

builtin_toolkit or mcp_toolkit

default_configobject

Default tool config with enabled and permission_policy

configsarray<object>

Per-tool config that overrides default_config; supports params

mcp_server_namestring

Required for MCP tools

mcp_serversarray<object>

MCP server reference list

mcp_servers properties

typestring

official or customer

namestring

MCP server name

skillsarray<object>

Mounted skill list

skills properties

typestring

official or customer

skill_idstring

Skill ID

versionstring

Must be a concrete version number

multiagentobject

Multi-agent configuration

multiagent properties

typestring

Currently only coordinator

agentsarray<object>

Fleet entries (1-20); each contains type, id, and version

metadataobject

Custom business key-value pairs that do not affect model behavior.

archived_atstring | null

Archive timestamp; null if not archived

created_atstring

Creation time (ISO 8601)

updated_atstring

Last update time (ISO 8601)

workspace_idstring

Workspace ID

model properties

idstring

Model ID, e.g. qwen3.7-max

enable_thinkingboolean

Whether to enable thinking mode

max_tokensinteger

Maximum generation length

temperaturenumber

Temperature that controls randomness

thinking_budgetinteger

Thinking budget length

tools properties

typestring

builtin_toolkit or mcp_toolkit

default_configobject

Default tool config with enabled and permission_policy

configsarray<object>

Per-tool config that overrides default_config; supports params

mcp_server_namestring

Required for MCP tools

mcp_servers properties

typestring

official or customer

namestring

MCP server name

skills properties

typestring

official or customer

skill_idstring

Skill ID

versionstring

Must be a concrete version number

multiagent properties

typestring

Currently only coordinator

agentsarray<object>

Fleet entries (1-20); each contains type, id, and version

next_pagestring / null

Cursor for the next page; absent or null when there is no more data

Response example

{
  "data": [
    {
      "type": "agent",
      "id": "agent_xxx",
      "name": "data-analyst",
      "model": {
        "id": "qwen3.8-max",
        "temperature": null,
        "max_tokens": null,
        "enable_thinking": null,
        "thinking_budget": null
      },
      "system": "You are a data analysis expert.",
      "description": "Data analysis assistant",
      "tools": [],
      "mcp_servers": [],
      "skills": [],
      "multiagent": null,
      "metadata": {},
      "version": 1,
      "created_at": "2026-05-28T16:23:11.456+08:00",
      "updated_at": "2026-05-28T16:30:00.000+08:00",
      "archived_at": null,
      "workspace_id": "ws_xxx",
      "request_id": "req_xxx"
    }
  ],
  "next_page": "agent_xxx",
  "request_id": null
}