APIReference
Voice API
Place a text-to-speech call, with optional DTMF (press-1) capture, in one request.
POST/v1/voice/call
01Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| to | string | Required | Recipient number in E.164 format. |
| script_id | string | Required | Your approved voice script or a raw text-to-speech message. |
| language | string | Optional | IETF language tag, e.g. "en-IN", "hi-IN". Defaults to en-IN. |
| capture_dtmf | boolean | Optional | Set 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.