This Voice API supports the following:
It will support both GET and POST requests.
{endpoint}outgoing/send?access_token=209eccd40ee3a2e14af7fe45b21xxx
Name | Descriptions |
---|---|
bridge | Bridge number for call initiation |
to | Phone number with country code to which call has to connect |
ivr_id | Id of the IVR flow created in your voice account OR |
audio | Audio file id incase ivr is not provided |
Name | Descriptions |
---|---|
name | name of the campaign |
interval | Retry interval time Expected Values : 5, 15, 30, 45, 60 (Minutes) : Default 0 |
With Audio File ID :
curl -X GET \
"{endpoint}outgoing/send?access_token=209eccd40ee3a2e14af7fe45b21xxx&name=api obd&to=8919525224&bridge=91123456789&audio=39888925-718e-43bb-a8b1-d4a37722e37"
39888925-718e-43bb-a8b1-d4a37722e37
is the sound file id uploaded to your voice account.With Ivr Flow ID :
curl -X GET \
"{endpoint}outgoing/send?access_token=209eccd40ee3a2e14af7fe45b21xxx&name=api obd&to=918919525224&bridge=91123456789&ivr_id=23"
23
is the ivr flow id created in voice accountWith Custom Audio File Location :
curl -X GET \
"https://portal.mobtexting.com/api/v2/outgoing/send?access_token=209eccd40ee3a2e14af7fe45b21xxx&name=api obd&to=918919525224&bridge=91123456789&audio=http://youraudiofilelocation.mp3"
audio
parameter requires location of audio file and must start with either http
or https
{
"status": 200,
"message": "1 numbers accepted for delivery.",
"data": [
{
"id": "70fa87e0-9df9-4327-bc80-a561c48703d8:1",
"mobile": "918919525224",
"charges": "0.5000",
"customid": "",
"customid1": "",
"iso_code": null,
"submitted_at": "2019-08-16 15:09:51"
}
]
}