SMS Premium API
V1
V1
  • Getting Started
  • Response Code
    • HTTP Status Code
    • Error Messages
    • Error Codes
  • Authentication
  • endpoint
    • Numbers Collection
    • Send SMS OTP
    • SMS Detail / Status
  • Kembali ke OCA API Documentation
Powered by GitBook
On this page
Export as PDF

Authentication

In order to hit OCA SMS OTP API Gateway Endpoint, client must be authenticated. OCA SMS OTP 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 CodesNextNumbers Collection

Last updated 8 months ago