Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.qoder.com/llms.txt

Use this file to discover all available pages before exploring further.

POST /v1/agents/{agent_id}/archive Archives the specified Agent. Archived Agents are hidden from the default list but remain retrievable by ID.

Headers

HeaderRequiredDescription
AuthorizationYesBearer <PAT>

Path parameters

ParameterTypeRequiredDescription
agent_idstringYesAgent unique identifier

Request body

No request body.

Example request

curl -X POST "https://openapi.qoder.sh/api/v1/cloud/agents/agent_019eXXXX.../archive" \
  -H "Authorization: Bearer $QODER_PAT"

Example response

HTTP 200 OK
{
  "type": "agent",
  "id": "agent_019eXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "name": "doc-test-agent-updated",
  "description": "Used for API documentation testing",
  "model": "ultimate",
  "system": "You are an updated documentation testing assistant.",
  "instructions": "You are an updated documentation testing assistant.",
  "tools": [],
  "mcp_servers": [],
  "default_environment": "",
  "version": 2,
  "created_at": "2026-05-18T15:26:39.61669Z",
  "updated_at": "2026-05-18T15:27:22.698411Z"
}

Response fields

Returns the full Agent object after archival. updated_at reflects the time of the archive operation.
FieldTypeDescription
typestringAlways "agent"
idstringAgent unique identifier
namestringAgent name
descriptionstringAgent description
modelstringModel identifier
systemstringSystem prompt
instructionsstringInstruction content
toolsarrayTool configuration list
mcp_serversarrayMCP server configuration
default_environmentstringDefault runtime environment
versionintegerCurrent version
created_atstringCreation time (ISO 8601)
updated_atstringLast update time (ISO 8601), refreshed on archive

Errors

HTTPTypeTrigger
401authentication_errorPAT invalid or expired
403permission_errorNot authorized to archive this Agent
404not_found_errorAgent with the given ID does not exist
See Errors for the full error envelope.

Archive vs. delete

ActionEffectRecoverable
ArchiveHides the Agent from default listings; data is retainedYes (can be unarchived)
DeletePermanently removes the AgentNo

Notes

  • Archive is a soft-delete; Agent data is retained.
  • Archived Agents are excluded from the default list returned by GET /v1/agents.
  • They remain retrievable via GET /v1/agents/{agent_id}.
  • The operation is idempotent; archiving an already-archived Agent does not raise an error.