Skip to content
First requestVisit website ↗
Navigation

Route a Twilio voice call to the configured workspace destination

Twilio form webhook. Workspaces with VOICE_AI_TELEPHONY_TURN_CONTROL_V2 require X-Twilio-Signature validation before call routing; the new AI path emits a short-lived signed stream permission. Uses the exact public webhook URL including query parameters. New outbound callbacks with voiceLease also require the Twilio signature and bind the pre-dial capacity lease atomically. Legacy inbound routing is unchanged.

POST
https://api.channelautomation.com/api/workspaces/{workspaceId}/voice

Path parameters

  • workspaceId
    string
    required

Query parameters

  • voiceLease
    optional
    string

    Internal provisional outbound capacity lease; requires a valid Twilio signature.

Header parameters

  • X-Twilio-Signature
    optional
    string

    Required for the new voice path; Twilio signs the URL and form body.

    format: uuid

Request body X-WWW-FORM-URLENCODED required

  • CallSid
    optional
    string
  • Direction
    optional
    string
  • From
    optional
    string
  • To
    optional
    string

Returns

200

TwiML routing instructions

400

Invalid workspace or request

401

Workspace configuration unavailable

403

Invalid Twilio signature

404

Workspace not found

500

Routing failed

Type to search…

↑↓ navigate↵ selectEsc close