Make a Call With Dynamic Audio URL
Please get your audio url from the process upload audio above and put the url in variable field in the request body
HTTP Method : POST
Endpoint URL : https://call.ocatelkom.co.id/api/v1/call
Request Body:
Property
Type
from_number
String (Phone numbers that get from numbers collection) Required
to_number
String (Destination phone number) Required
ivr_id
String (Get from ivr list) Required
variable
Object (filled with required variable and the value)
{
"from_number":"02184788xxx",
"to_number":"081211122xxxx",
"ivr_id":"xxxxgyutfgv6767768hgxxxx",
"variable":{
"name": "galih",
"audio_1": "https://webapigw.ocatelkom.co.id/audio/play/df82xxxx-a5xx-44xx-86xx-57f4e7e8xxxx.mp3"
}
}
Response:
Property
Type
success
Boolean
call_id
String
{
"success": true,
"to_number":"xxxxfghjji10gdd112xxxx",
}
Last updated