Get Status
The status of the message can be requested by specifying the request_id
that was returned from Send Message
endpoint.
Endpoint
GET
/report/v1/message-log/{request_id}
Header
Authentication
AUTHORIZATIONS: Bearer Token
Request parameters
Parameter | Value / Pattern | Example(s) |
---|---|---|
*request_id | request_id that was returned from Send Message endpoint | ceba9fac-838c-44c7-b67d-03a4a6352058 |
Response:
200 - Success
{
"request_id": "9d056a09-0fc4-4f68-9058-3846d58aa244",
"total_recipients": 2,
"channel": "sms",
"messages": [
{
"msg_id": "7053a678-75fe-11ed-9e31-0242ac14001c",
"country": "AE",
"recipient": "+9715097526xx",
"status": "sent",
"number_of_sms": 4,
"sms_cost": 0.0004,
"schedule_time": null
},
{
"msg_id": "7052cd16-75fe-11ed-9e31-0242ac14001c",
"country": "AE",
"recipient": "+9715097526xx",
"status": "sent",
"number_of_sms": 4,
"sms_cost": 0.0004,
"schedule_time": null
}
]
}
404 - Not Found
Response Parameters
Parameter | Value / Pattern | Example(s) |
---|---|---|
total_recipients | Total number of recipients in the request | 1 |
channel | Messaging channels such as SMS, MMS, and Audio | sms |
msg_id | The message id for each message in the request | 5c8d9ed8-590b-11ed-93d2-0242ac140018 |
country | Two-digit ISO code of the destination country | AE |
recipient | Destination numbers | +971509752655 |
status | This is the status of the message, and we have the following statuses: [delivered - Delivered to destination and confirmed], [sent - Was sent to telecom and is awaiting acknowledgement], [scheduled - Message scheduled], [un_delivered - Failed delivery], [not_reachable - Recipient is not reachable], [spam_content - SMS Content is identified Spam], [insufficient_credit - User does not have enough credit] |
delivered |
number_of_sms | The number of total message parts. Sending a long message over 158 characters will be split into multiple messages and forwarded to telecom. It is a maximum of 72 characters per message if you send Unicode messages | 1 |
sms_cost | The cost of the message | 0.0001 |
schedule_time | If the message is scheduled, this will return the time | null |