Call API
V1
V1
  • Getting Started
  • Response Code
    • HTTP Status Codes
    • Error Messages
    • Error Codes
  • Authentication
  • Endpoint
    • Upload Audio File
    • Get List audio file
    • Delete Audio File
    • IVR List
    • Numbers Collection
    • Make a Call With Dynamic Audio URL
    • Call Detail / Status
  • Kembali ke OCA API documentation
Powered by GitBook
On this page
Export as PDF
  1. Endpoint

Make a Call With Dynamic Audio URL

PreviousNumbers CollectionNextCall Detail / Status

Last updated 7 months ago

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 :

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",
}
https://call.ocatelkom.co.id/api/v1/call