Skip to content

Archive Agent

POST/v1/agents/{agent_id}/archive

Archive an Agent with compare-and-set. Archived Agents cannot start new Sessions.

Path parameters

stringagent_idrequired

Agent ID (agt_ prefix).

Headers

Optional<string>Idempotency-Key

Optional. When omitted the service generates one, so a retried request can create a duplicate. Send your own stable key for retries.

Request body

JSON object.

integerrow_versionrequired

The row_version you last read. A stale value returns 409.