Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
The OCA CALL Gateway attempts to return the appropriate HTTP Status Codes for every request.
200
OK
Success
401
Unauthorized
Missing or Incorrect authentication details
404
Not Found
There is no data available, like user setting etc
406
Not Acceptable
Response when there is invalid format in request
500
Internal Server Error
Something is broken. This is usually a temporary error in server
This error codes is additional information to explain what happened when some errors occured. The following table describe the code which may appear when working with OCA CALL Gateway. If an error is not listed in the table, going back to HTTP status codes above in order to determine the best way to address the issues.
13
Internal Error
Corresponds with HTTP 500. An unknown internal error occured
17
Invalid Authentication Credentials
Corresponds with HTTP 401. It indicates the credential is missing or incorrect
19
Missing Authorization Header
Corresponds with HTTP 406. It indicates Authorization header is not set properly
33
Setting Is Not Exist
39
[object]
Corresponds with HTTP 406. There are incorrects or missing parameter in request body, it is like the message_value is not same as the template message
41
User Is Not Exist
Corresponds with HTTP 404. The certain user setting is not found
51
Account Expired
Corresponds with HTTP 401. It indicates the client Account is Expired.
55
Your Quota Is not Enough
Corresponds with HTTP 401. It indicates the client Quota is Runs Out.
57
Reached Maximum
Concurrent Call Limit
Corresponds with HTTP 401. It indicates the concurrent limit of call is exceed
Upload audio file is method to store your audio file in OCA’s cloud storage, you can retrieve your audio by url that oca provide after you successfully upload your audio.
HTTP Method : POST
Endpoint URL : https://call.ocatelkom.co.id/api/v1/upload-audio
Form Data (Body)
audio
File (accepted file is mp3)
Response:
id
String
filename
String
name
String
url
URL String
HTTP Method : DELETE
Endpoint URL : https://call.ocatelkom.co.id/api/v1/delete-audio/{{fill with audio id}}
Response:
status
String (success)
OCA CALL error messages are returned in JSON Format. Each HTTP Status Code will be accompanied by descriptive error text and code. For example, an error might occur.
OCA Provides a collection of numbers that can be used as the caller id number for each call that is made
HTTP Method : GET
Endpoint URL : https://call.ocatelkom.co.id/api/v1/number-collection
Response List (Array)
phone_number
Array
In order to hit OCA CALL OTP API Gateway Endpoint, client must be authenticated. OCA CALL API Gateway uses Basic Authentication. Username and password must be encoded with base64 separated by colon and put the encoded credentials into Authorization Header.
Example:
Username: test@gmail.com
Password: test123
Base64Function(test@gmail.com:test123) => dGVzdEBnbWFpbC5jb206dGVzdDEyMw==
Please attach Credentials in Authorization header in your http request like this:
HTTP Method : GET
Endpoint URL : https://call.ocatelkom.co.id/api/v1/call-status/(fill_with_call_id)
Response:
from_number
String (Phone numbers that get from numbers collection)
to_number
String (Destination phone number)
ivr_id
String (IVR ID )
call_id
Object (filled with required variable and the value)
call_start
ISO Date (call start ringing)
call_answer
ISO Date (call picked up by destination)
call_end
ISO Date (call ended by destination)
duration
Number (total duration from call made until call ended)
talk_duration
Number (total talk duration from call picked up by user until call hangup, Billing will be counting by talk_duration)
tta
Number (time to answer)
hangup_cause
String (status from system)
status
String (status of call. submitted, success, failed)
created_at
ISO Date
updated_at
ISO Date
result
Array Objects*
Response:
*Sample Result : (Arrray Objects)
After you design your IVR, you can use the ivr to make call to your customer. Remember, you can add dynamic content in your ivr design. In order to use ivr you have to see what ivr that available in your account, the ivr list will show you ivr name, ivr id, and variable (data you must provide when you make a call).
HTTP Method : GET
Endpoint URL : https://call.ocatelkom.co.id/api/v1/ivr-list
Response List (Array)
ivr_id
String (it will use when you make a call)
ivr_name
String
required_variable
Array (string) (if you add dynamic content when you design your ivr then the variable must be provided in your call request)
created_at
ISO DATE
deleted_at
ISO DATE
HTTP Method : GET
Endpoint URL : https://call.ocatelkom.co.id/api/v1/list-recording
Response List (Array)
id
String
filename
String
name
String
url
URL String
OCA CALL Gateway provide solution to make a robot call with dynamic caller id number and interactive voice response technology. In order to hit the OCA CALL Gateway, we provide Endpoint url, so client can hit and use the API.
URL ENDPOINT : https://call.ocatelkom.co.id/api/v1
Before you can make a call, you need to make the IVR (Interactive Voice Response) first. In order to make ivr you should log in to dashboard, you can visit https://dashboard.ocatelkom.co.id. Please provide your username and password to log in.
To start making ivr please select IVR menu OCA Blast -> Voice -> IVR and Press Add ivr button to start design your ivr.
We want to show you how to build ivr with dynamic audio, so you can play audio dynamicallya from api trigger call. You can start with choose component Play External Audio, drag and drop the component to the board, as shown in the picture below.
In the component editor, on the right side, you will see the form for specific component, please fill the Audio Url with dynamic variable start with “{{“ symbol and end with “}}” symbol, as shown in the picture below.
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:
Response:
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)
success
Boolean
call_id
String