Skip to main content
POST
Start an outbound call

Authorizations

Authorization
string
header
required

API key in format: rg_live_xxxx. Pass as a Bearer token in the Authorization header.

Body

application/json
agent_id
string<uuid>
required

ID of the agent to use for this call.

to_number
string
required

Destination phone number in E.164 format.

Example:

"+919876543210"

provider
enum<string>
default:mcube

Telephony provider. Defaults to mcube if not specified. The provider must be in your partner's allowed_telephony_providers list and its credentials must be configured.

Available options:
mcube,
twilio,
exotel,
plivo,
vobiz,
tata_smartflo,
sip,
voicelink
connection_id
string<uuid>

Telephony connection ID to use for this call. Required when multiple active connections exist for the selected non-MCube provider. This is how you select which configured from_number/DID set should place the call.

from_number
string

Optional per-call caller ID in E.164 format. Must be an ACTIVE phone number owned on the selected connection (connection_id picks the connection; from_number picks the number within it) -- an unknown number returns 400 VALIDATION_ERROR, never a silent substitution. Overrides the agent-bound/default number for Twilio, Plivo, Vobiz, VoiceLink, and SIP. MCube and Exotel use a fixed caller ID, so any differing value returns 400. For VoiceLink, the DID should be call-ready (mapped and routed) or the carrier may reject the call. fromNumber is accepted for backwards compatibility.

Example:

"+919484957224"

variables
object

Pre-call variable values. Keys must match variable names declared on the agent (Agent.variables). Substituted into the agent's prompt and greeting via {{name}} placeholders. Echoed in the session.completed webhook for partner-side audit. Missing variables render as empty strings.

Example:

Response

Call initiated successfully.

success
boolean
data
object