SMS Regular API Doc
V1
V1
  • Getting Started
  • Response code
    • HTTP Status Codes
    • Error Messages
    • Error Codes
  • Authentication
  • Endpoint
    • Send SMS
    • SMS History
    • SMS Detail / Status
  • Kembali ke OCA API Documentation
Powered by GitBook
On this page
Export as PDF
  1. Endpoint

Send SMS

PreviousAuthenticationNextSMS History

Last updated 4 months ago

HTTP Method : POST

Content_Type : application/json

Endpoint URL : :

Request Body:

Property
Type

phone

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

message

String (Message body)

{
    "phone": "081255xxxxxx",
    "message": "OCA Message"
}

Response:

{
    "status": "sent",
    "msg_uid": "d3a925xxxxxxxxxxxxd2f2d"
}
{
    "errors": [
        {
            "message": [
                {
                    "value": "89694353628",
                    "msg": "Invalid country code",
                    "param": "phone_number",
                    "location": "body"
                }
            ],
            "code": "39"
        }
    ]
}
Property
Type

success

String

msg_uid

String

https://sms.ocatelkom.co.id/api/v1/sms