Call API
V2
V2
  • Getting Started
  • Response Code
    • Response Code
    • Error Message
    • Error Codes
  • Authorization
  • endpoint
    • Upload Audio File
    • Get List Audio
    • Delete Audio File
    • Get List IVR
    • Get List Number Collection
    • Make A Call With Dymanic Variable
    • Get Call Detail / Status
  • Kembali ke OCA API Documentation
Powered by GitBook
On this page
Export as PDF
  1. endpoint

Make A Call With Dymanic Variable

PreviousGet List Number CollectionNextGet Call Detail / Status

Last updated 8 months ago

If the Variable used is "name", simply fill in the "name" variable in the variable field in the request body with the String data type. If the Variable used is "audio", please get your audio url from the audio upload process above and enter the url in the variable field in the request body

HTTP Method : GET

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://webapigw.ocatelkom.co.id/call/v2/call