Skip to content
First requestVisit website ↗
Navigation

Create a voice agent and lazily preserve the current workspace agent

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

Authorization

  • BearerAuth
    HTTP Bearer (JWT)
    required

Path parameters

  • workspaceId
    string
    required

Request body JSON required

  • name
    string
    required
    maxLength: 120 · minLength: 1
  • purpose
    qualify_book
    or
    confirm
    or
    rehash
    or
    custom
    required
  • idempotency_key
    string
    required
    maxLength: 200 · minLength: 1

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

Stale revision

500

Service error

503

Migration or consumer capabilities unavailable

Type to search…

↑↓ navigate↵ selectEsc close