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
  1. endpoint

Send SMS OTP

PreviousNumbers CollectionNextSMS Detail / Status

Last updated 3 months ago

HTTP Method : POST

Endpoint URL :

Request Body

Property
Type

sender_id

String (numbers or masking number that get from numbers collection)

receipent_number

String (Destination phone number) Values : country code + phone number (+6281381475159, 6281381475159)

message_body

String (Message body)

{
    "sender_id": "Telkom"
    "receipent_number": "+628123xxxxx"
    "message_body": "Message"
}

Response:

{
    "sender_id": true,
    "msg_id": "xxxxx898hr47yxxxx"
}
{
    "errors": [
        {
            "message": [
                {
                    "value": "89694353628",
                    "msg": "Invalid country code",
                    "param": "phone_number",
                    "location": "body"
                }
            ],
            "code": "39"
        }
    ]
}
Property
Type

sender_id

Boolean

msg_id

String

https://mainapi.ocatelkom.co.id/sms/api/v1/send-otp