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

Authentication

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:

curl \ 
    --header "Content-Type: application/json" \
    --header "Authorization: Basic dhu7ujuejxxxxxxxxxx==" \
    --request GET \
    https://call.ocatelkom.co.id/api/v1

PreviousError CodesNextUpload Audio File

Last updated 7 months ago