Skip to content

SMS Status

POST
/open/sms/status

The purpose of this endpoint is to track the progress of SMS messages sent over our API. It provides information on whether each SMS was delivered successfully, is still in route, or has run into an issue.

history

Request History

Your request history will appear here.

Body Params

typeintegerrequired

ID of the SMS query function. Should be 5.

refarrayrequired

An array of reference strings.

Responses

RESPONSE BODY

One object per reference found. status, sent and delivered share one scale, so a number means the same in each.

statusinteger
1 for success
codestring
ASMQ10
messagestring
SMS Status
dataarray
One object per ref found. A ref that is not found is left out.
refstring
The ref you sent.
statusinteger
Where the message is now, from sent and delivered together.
  • 0Pending: not yet accepted by the network.
  • 1Sent: accepted by the network, no delivery report yet.
  • 2Delivered: delivered to the handset.
  • 3Failed: not delivered, or not sent.
sentinteger
What happened when the message was handed to the mobile network.
  • 0Pending: queued, not yet accepted.
  • 1Sent: the network accepted it.
  • 3Failed: the network refused it, or it could not be submitted. It will not be delivered, and the SMS credit is returned.
deliveredinteger
The delivery report from the handset.
  • 0Pending: no delivery report yet, including while sent is still 0.
  • 2Delivered: delivered to the handset.
  • 3Failed: the network reported it was not delivered, or it was never sent.
gonull
Navigation hint
RESPONSE BODY

Returns an empty data array if none of the provided reference IDs exist.

statusinteger
1 for success
codestring
ASMQ10
messagestring
SMS Status
dataarray
Empty array

Language

Credentials

X-API-VASKEY
curl --request POST \     --url 'https://api.moolre.com/open/sms/status' \     --header 'X-API-VASKEY: YOUR_SMS_X_API_VASKEY' \     --header 'Content-Type: application/json' \     --data '{  "type": 5,  "ref": [    "uuid--001"  ]}'

Response

Body

{  "status": 1,  "code": "ASMQ10",  "message": "SMS Status",  "data": [    {      "ref": "0338954001737166274",      "status": 3,      "sent": 3,      "delivered": 3    },    {      "ref": "uuid--001",      "status": 2,      "sent": 1,      "delivered": 2    },    {      "ref": "uuid--002",      "status": 1,      "sent": 1,      "delivered": 0    }  ],  "go": null,  "meta": {    "requestid": "req_c68f4c66115c26725c796242",    "notices": []  }}