SMS Regular API Doc
V2
V2
  • Getting Started
  • Response Code
    • Response Code
    • Error Message
    • Error Codes
  • Authorization
  • endpoint
    • Sending Message
    • Get History Send Message
    • Get Detail / Status Send Message
  • Kembali ke OCA API Documentation
Powered by GitBook
On this page
Export as PDF
  1. endpoint

Sending Message

PreviousAuthorizationNextGet History Send Message

Last updated 3 months ago

HTTP Method : POST

Endpoint URL :

Requesst Body:

Property
Type

phone

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

message

String (Message body)

{
    "phone": "6281xxxxxxxx",
    "message": "Hi Galih"
}

Response:

{
    "status": "sent",
    "msg_uid": "df82xxxx-a5xx-44xx-86xx-57f4e7e8xxxx"
}
{
    "errors": [
        {
            "message": [
                {
                    "value": "89694353628",
                    "msg": "Invalid country code",
                    "param": "phone_number",
                    "location": "body"
                }
            ],
            "code": "39"
        }
    ]
}
Property
Type

status

String

msg_uid

String

https://webapigw.ocatelkom.co.id/sms/v2/sms