Skip to main content
POST
Place an outbound call

Authorizations

Authorization
string
header
required

Send your organization API key as Authorization: Bearer <key>.

Path Parameters

id
string<uuid>
required

Agent id

Query Parameters

number
string

Phone number to call. Same as destination.

destination
string

Phone number to call. Same as number.

sipTrunkId
string<uuid>

SIP trunk to use for this call.

sipTrunkAgentId
string<uuid>

SIP trunk assignment for this agent. When set, the trunk is taken from that assignment.

outboundContactId
string<uuid>

Outbound contact this call belongs to.

outboundListRunId
string<uuid>

Outbound list run this call belongs to.

callerId
string

Caller ID to show the callee when using a SIP trunk.

firstMessage
string

Override the agent's first message for this call.

prompt
string

Override the agent's system prompt for this call.

sse
boolean
default:false

When true, respond with a Server-Sent Events stream instead of JSON. The first event is call_id. Later events are call status. The stream ends when the call is answered, or when dialing fails. Defaults to false.

callbackUrl
string<uri>

Absolute public http or https URL. Private, loopback, and link-local addresses are rejected. When set, each call status is POSTed here, in order, as JSON { "callId", "event" }. Event is initiated, ringing, or answered. A call that is not answered ends with busy, no-answer, failed, canceled, or completed. Delivery is best-effort and does not change this response. Can be combined with sse.

Body

application/json

Optional. Pass variables for data the agent can use on this call.

variables
object[]

Custom data for the agent on this call.

Response

Outbound call accepted. JSON by default, including callId. With sse=true, a text/event-stream. The first event is call_id; later events are call status until the call is answered or dialing fails. When callbackUrl is set, each of those statuses is also POSTed to that URL as DialStatusCallback.

Result of the dial request.

success
boolean
required

Whether the call was accepted.

callId
string

Id of the outbound call. Present when the dial was accepted. The calls row may be written after this response.