Skip to main content

versions

Creates, updates, deletes, gets or lists a versions resource.

Overview

Nameversions
TypeResource
Idanthropic.agents.versions

Fields

The following fields are returned by SELECT queries:

Successful response (OK)

NameDatatypeDescription
idstring
namestring
archived_atstring (date-time)When the agent was archived. Null if not archived.
created_atstring (date-time)A timestamp in RFC 3339 format
descriptionstring
mcp_serversarray
metadataobject
modelobjectModel identifier and configuration.
multiagentobjectMultiagent orchestration configuration. Null when the agent is single-threaded.
skillsarray
systemstring
toolsarray
typestring (agent)
updated_atstring (date-time)A timestamp in RFC 3339 format
versioninteger (int32)The agent's current version. Starts at 1 and increments when the agent is modified.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectagent_id

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
agent_idstringPath parameter agent_id (example: agent_011CZkYpogX7uDKUyvBTophP)

SELECT examples

Successful response (OK)

SELECT
id,
name,
archived_at,
created_at,
description,
mcp_servers,
metadata,
model,
multiagent,
skills,
system,
tools,
type,
updated_at,
version
FROM anthropic.agents.versions
WHERE agent_id = '{{ agent_id }}' -- required
;