Skip to content
First requestVisit website ↗
Navigation

Archive an unused nondefault agent and retain history

Requires workspace owner, admin or manager. No page-load initialization. Creation requires capability version 1 from voice_service, ingest_worker and trigger.

POST
https://api.channelautomation.com/api/workspaces/{workspaceId}/voice-ai/agents/{agentId}/archive

Authorization

  • BearerAuth
    HTTP Bearer (JWT)
    required

Path parameters

  • workspaceId
    string
    required
  • agentId
    string
    required
    format: uuid

Request body JSON required

Returns

200

Successful response with masked settings

JSON
  • success
    optional
    boolean
  • agent
    optional
    object

    Profile metadata and name without voice_config or credentials

  • legacy
    optional
    boolean

    True until profiles have been explicitly created

  • uses_builtin
    optional
    boolean

    True when an OpenAI voice_ai block or profiles exist; controls the built-in fleet and tour

  • agents
    optional
    array of
    object

    Without profiles the latest legacy voice row is returned. A built-in config without a pointer returns a legacy entry with null agent_id that opens workspace settings without initialization.

  • config
    optional
    object

    Normalized settings with credential configured booleans

400

Invalid request or unavailable agent

401

Authentication required

403

Workspace admin or manager required

404

Agent not found

409

Default or in-use agent; refusal names published flows or explains assigned phone numbers. Republish referencing flows and clear assignments before retrying

500

Service error

503

Migration or consumer capabilities unavailable

Type to search…

↑↓ navigate↵ selectEsc close