Creates a web or widget call session. Returns a WebSocket URL that your client connects to for real-time audio — this endpoint only sets up the call record and connection details, it does not place a phone call. For an outbound call to a real phone number, use POST /v1/calls/phone/initiate instead.Request body
Field
Type
Required
Description
assistantId
string
yes
Agent to handle the call.
type
string (web | widget)
yes
Call channel. Passing phone here returns a 400 telling you to use POST /v1/calls/phone/initiate instead.
callMode
string (inbound | outbound)
no
Call direction, for your own record-keeping.
phone
string
no
Stored on the call record. Not used to look up location for web/widget calls — location is instead derived from the caller’s IP address.
conversation_uuid
string
no
Your own external session/conversation id, stored as-is on the call record.
Connect your audio client to gateway.url to begin the real-time session. Save callId to retrieve the transcript and analysis after the call ends.Common errors:400 invalid payload · 403 missing calls:write scope
POST /v1/calls/phone/initiate
Initiates an outbound phone call to a real number via your purchased Indigenius phone number, using whichever agent is currently allocated to that number (see POST /v1/phone/allocate-assistant).
phoneNumber must be in the same calling region as the purchased number placing the call — cross-region outbound calls are rejected with a 400. Use a purchased number from the destination’s region instead.
Request body
Field
Type
Required
Description
phone_purchase_id
string
yes
The purchased number to call out from.
phoneNumber
string (E.164)
yes
Destination number.
provider
string
no
Underlying telephony carrier to use. One of indigenius_connect_global, indigenius_connect_global_plus, indigenius_connect_ng. Defaults to indigenius_connect_global.
Common errors:400 invalid payload, or phoneNumber not in the same calling region as the purchased number · 403 missing calls:write scope · 404 phone purchase not found