Overview
The Calls API handles two distinct call modes:
- Web calls — real-time audio over WebSocket, initiated from a browser or server
- Phone calls — outbound calls to a real phone number via a purchased Indigenius number
After a call ends you can retrieve the full transcript and AI-generated post-call analysis.
Required scopes: calls:read (read), calls:write (initiate)
GET /v1/calls
Lists all calls for your organization.
200 OK
Common errors: 403 missing calls:read scope
POST /v1/calls/initiate
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
201 Created
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
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
GET /v1/calls/{id}
Returns details for a specific call.
200 OK
Common errors: 403 missing calls:read scope · 404 call not found
GET /v1/calls/{id}/transcripts
Returns the full conversation transcript for a call.
200 OK
GET /v1/calls/{id}/analysis
Returns AI-generated post-call analysis including summary, sentiment, and tags.
200 OK
Common errors for all read endpoints: 403 missing calls:read scope · 404 call not found
GET /v1/calls/{id}/recording
Returns the recording metadata and download URL for a call.
200 OK
Common errors: 403 missing calls:read scope · 404 call not found