SmarthiveSMS API
  • Introduction
  • SMS
    • Send Single SMS
    • Send Multiple SMS
    • Status
    • Balance
    • Send SMS Sample Code
    • Callback
    • SMS DLR Error Codes
  • WhatsApp
    • Sending OTP
Powered by GitBook
On this page
  1. SMS

Callback

Callback

POST https://your-callback-url.com/

If you specify a callback_url when sending your message, we will perform a http request to the provided url with the following message status data.

Request Body

Name
Type
Description

status

String

The final status of the message, in all-caps, ie. DELIVRD, UNDELIV, EXPIRED etc

msg_id

String

The unique message ID allocated to the message when originally submitted.

timestamp

String

The date and time at which the sms message reached it's final state.

cost

The cost of sending this message.

pg_length

String

Number of pages for the message. The character limit for a single page SMS message is 160 characters.

str_length

int

Total number of characters for the sms.

desc

String

The description of the delivery status

dlr_code

String

The DLR status success or error code associated with the delivery status.

{"status": "ok"}
{
   "msg_id": "jyd823-23n",
   "status": "DELIVRD",
   "dlr_code": "err:000",
   "timestamp": "202311042057",
   "str_length": "157",
   "pg_length": "1",
   "cost": "3.00",
   "desc": "DELIVERED",
}
PreviousSend SMS Sample CodeNextSMS DLR Error Codes

Last updated 1 year ago