Skip to main content
POST
Dispatch an outbound call

Authorizations

Authorization
string
header
required

Your organization API key (it starts with anek_org_). The same key works on the Voice API and the Support API. See Authentication.

Path Parameters

projectId
string
required

Project id

id
string
required

Agent id

Body

application/json
to
string
required

The number to call, in international format (E.164), for example +14155550123.

Minimum string length: 1
from
string

Caller ID to present. Must be a number registered in this project with outbound calling enabled, or the call is refused with 422. Omit it to use the agent's outbound number.

on_call_ended_url
string<uri>

An https URL that receives a POST with the finished call record (vCon JSON) when the call ends.

Response

Dialling has started. The outcome of the call is reported asynchronously.

callId
string
required
roomName
string
required

The media room the call runs in.

status
enum<string>
required
Available options:
dialing
conversationId
string

The conversation that will hold the call's transcript, recording and summary. Read it with GET .../conversations/{id}.