List Agent Versions

Updated at:

Lists all historical versions of an agent with pagination. When a session is created, it locks to the current version; the session detail also embeds a full agent snapshot for that version.

Prerequisites

Endpoint and authentication configured. For details, see Overview and authentication.

Endpoint

GET/agents/{agent_id}/versions

Path parameters

agent_idstringRequired

Agent ID, format agent_<ULID>

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

Request example

curl "$AGENTSTUDIO_URL/agents/agent_xxx/versions" \
  -H "Authorization: Bearer $DASHSCOPE_API_KEY"
for version in client.agents.list_versions("agent_xxx", limit=10):
    print(version.version, version.created_at)
CursorPage<AgentVersion> versions = client.agents().listVersions(
    "agent_xxx", AgentListParam.builder().limit(10).build());

Response fields

The response contains data (an array of Agent objects, each a version summary sorted by version descending), next_page (the next-page cursor, null when there are no more results), and request_id. Version objects are summaries that reuse the existing version history fields and are not guaranteed to contain the complete multiagent.workflows and multiagent.reuse_workflows configuration. For the complete configuration, call the Get Agent API with the version parameter to read the fixed version snapshot. Fields:

dataarray<object>

Array of version records. Each item has the following structure:

data[] version record

versioninteger

Version number

agent_idstring

Agent ID

created_atstring

Version creation time, ISO 8601

configobject

Model, toolkits, MCP references, skills, multi-agent collaboration configuration, and business metadata in this version summary. The version summary may not include Workflow configuration. Contains:

config properties

idstring

Agent ID

namestring

Agent name

sourceobject

Source info with apiType

systemstring

System prompt

modelobject

Model config with id

toolsarray<object>

Toolkit snapshot

mcpServersarray<object>

MCP server snapshot

skillsarray<object>

Skill snapshot

metadataobject

Business metadata

versioninteger

Version number of this snapshot

gmtCreatestring

Creation time

gmtModifiedstring

Modification time

userIdstring

User ID

workspaceIdstring

Workspace ID

statusstring

Status

next_pagestring / null

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

request_idstring / null

Unique identifier for this request

Response example

{
  "data": [
    {
      "version": 2,
      "agent_id": "agent_xxx",
      "created_at": "2026-05-28T16:30:00+08:00",
      "config": {
        "id": "agent_xxx",
        "name": "data-analyst",
        "source": {
          "apiType": "dash"
        },
        "system": "You are a data analysis expert.",
        "model": {
          "id": "qwen3.8-max"
        },
        "tools": [],
        "mcpServers": [],
        "skills": [],
        "metadata": {},
        "version": 2,
        "gmtCreate": "2026-05-28T16:23:11+08:00",
        "gmtModified": "2026-05-28T16:30:00+08:00",
        "userId": "user_xxx",
        "workspaceId": "ws_xxx",
        "status": "active"
      }
    }
  ],
  "next_page": "1",
  "request_id": null
}