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_idanthropic-workspace-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)
anthropic-workspace-idstringOptional header to select the Workspace for this request. The value is a Workspace ID (for example, wrkspc_011CZkZaBF1tNoB5wlCeusgy). Only needed for credentials that can act on more than one Workspace. A credential that belongs to a specific Workspace may omit it; if sent, it must match that Workspace. (example: wrkspc_011CZkZaBF1tNoB5wlCeusgy)

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
AND "anthropic-workspace-id" = '{{ anthropic-workspace-id }}'
;