SMS Premium API
V2
V2
  • Getting Started
  • Response Code
    • HTTP Status Code
    • Error Messages
    • Error Codes
  • Authorization
  • Endpoint
    • Get Masking User
    • Send Message OTP
    • Get Detail /Status Send Message OTP
  • Kembali ke OCA API Documentation
Powered by GitBook
On this page
Export as PDF
  1. Endpoint

Send Message OTP

PreviousGet Masking UserNextGet Detail /Status Send Message OTP

Last updated 4 months ago

HTTP Method : POST

Endpoint URL :

Request Body:

Property
Type

sender_id

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

recipient_number

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

message_body

String (Message Body)

{
    "sender_id": "OCA Telkom",
    "recipient_number": "6281xxxxxxxx",
    "message_body": "ini nomor otp anda 123456"
}

Response:

Property
Type

success

Boolean

msg_id

String

{
    "success": true,
    "msg_id": "xxxxftt5rd57u898xxxx"
}
{
    "errors": [
        {
            "message": [
                {
                    "value": "89694353628",
                    "msg": "Invalid country code",
                    "param": "phone_number",
                    "location": "body"
                }
            ],
            "code": "39"
        }
    ]
}

https://webapigw.ocatelkom.co.id/sms/v2/send-otp