APIReference

Voice API

Place a text-to-speech call, with optional DTMF (press-1) capture, in one request.

POST/v1/voice/call

01Parameters

NameTypeRequiredDescription
tostringRequiredRecipient number in E.164 format.
script_idstringRequiredYour approved voice script or a raw text-to-speech message.
languagestringOptionalIETF language tag, e.g. "en-IN", "hi-IN". Defaults to en-IN.
capture_dtmfbooleanOptionalSet true for press-1 style campaigns to capture a keypress response.

02Request

curl https://api.msgbridge.in/v1/voice/call \  -H "Authorization: Bearer $API_KEY" \  -d to="+91XXXXXXXXXX" \  -d script_id="payment_reminder" \  -d language="en-IN" \  -d capture_dtmf="true"

03Response

{  "call_id": "call_3Bq1",  "status": "in_progress",  "channel": "voice"}

Need a hand integrating this?

Our integration team reviews your first call for free.