Skip to main content
POST
Push a lead (place an IVR call)

Authorizations

Authorization
string
header
required

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

Path Parameters

flowId
string<uuid>
required

IVR flow ID, from GET /ivr-flows or the flow page in the dashboard.

Body

application/json
to
string
required

Destination phone number in E.164 format.

Example:

"+919876543210"

from
string

Optional caller ID in E.164 format. Must be an active phone number on the selected VoiceLink connection; an unknown number returns 400 VALIDATION_ERROR. When omitted, the connection default is used.

Example:

"+917969008446"

connection_id
string<uuid>

VoiceLink connection to place the call on. Required when the account has more than one active VoiceLink connection.

data
object

Lead values, keyed by the field names from GET /ivr-flows/{flowId}. Every required field must be present and non-empty; keys the flow does not declare are refused. See IvrLeadField.type for how each type must be sent.

Example:
client_reference_id
string

Your idempotency key, at most 128 characters. A repeat returns the original call with idempotent_replay: true and places no new call. The key space is shared with POST /calls/start on the same account.

Maximum string length: 128
Example:

"lead-88231-attempt-1"

Response

Replay: this client_reference_id was used before. The original call is returned and no new call is placed.

success
boolean
data
object

The call originally created with this client_reference_id.