List Agent Versions
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
/agents/{agent_id}/versionsPath parameters
agent_idstringRequiredAgent ID, format agent_<ULID>
Query parameters
limitintOptionalNumber of items per page. Default: 20, maximum: 100
pagestringOptionalPagination 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
versionintegerVersion number
agent_idstringAgent ID
created_atstringVersion creation time, ISO 8601
configobjectModel, 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
idstringAgent ID
namestringAgent name
sourceobjectSource info with apiType
systemstringSystem prompt
modelobjectModel config with id
toolsarray<object>Toolkit snapshot
mcpServersarray<object>MCP server snapshot
skillsarray<object>Skill snapshot
metadataobjectBusiness metadata
versionintegerVersion number of this snapshot
gmtCreatestringCreation time
gmtModifiedstringModification time
userIdstringUser ID
workspaceIdstringWorkspace ID
statusstringStatus
next_pagestring / nullCursor for the next page; null when there is no more data
request_idstring / nullUnique 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
}