Skip to content
First requestVisit website ↗
Navigation

Create a built-in Voice AI WebRTC preview session

Served by the Voice API. Requires a Bearer session for a workspace owner/admin/manager when the V2 flag is enabled. Accepts unsaved turn settings when opted in. Uses automatic WebRTC response control rather than phone bridge control. Returns a short-lived client secret; never log or cache the response. include_api_tools=true additionally requires an owner/admin Bearer JWT and both VOICE_AI_API_TOOLS and VOICE_AI_TELEPHONY_TURN_CONTROL_V2. It advertises enabled saved tools and returns tool_preview.ticket plus names; the signed binding expires after 15 minutes and authorizes real API test actions.

POST
https://api.channelautomation.com/api/workspaces/{workspaceId}/voice-ai/preview/realtime/session

Path parameters

  • workspaceId
    string
    required

Request body JSON

  • turn_detection_mode
    optional
    server_vad
    or
    semantic_vad
  • turn_detection_eagerness
    optional
    low
    or
    medium
    or
    high
    or
    auto
  • turn_detection_threshold
    optional
    number
    maximum: 0.85 · minimum: 0.35
  • silence_duration_ms
    optional
    number
    maximum: 1500 · minimum: 300
  • prefix_padding_ms
    optional
    number
    maximum: 1000 · minimum: 100
  • barge_in_enabled
    optional
    boolean
  • include_api_tools
    optional
    boolean
    default: false

Returns

200

Realtime preview client secret

400

Missing provider configuration or invalid turn settings

401

Missing or invalid JWT for tool-enabled preview

403

Workspace membership or feature requirements not met

500

Session creation failed

503

Tool preview service unavailable

Type to search…

↑↓ navigate↵ selectEsc close