sms.status
The sms.status command returns the current status of the SMS message.
TR50 Request
{
"1": {
"command": "sms.status",
"params": {
"id": "531c907b5d80f1330c238757"
}
}
}
Request Parameters
Name | Type | Required | Description |
---|---|---|---|
uuid | String | Yes* | The uuid is the identifier for each SMS sent through the SMS engine. In the case of Sharing Things and Connections, there will be a duplicate SMS record for each organization the connection is shared to and each record will share the same uuid. |
id | String | The id is the unique identifier for each and every SMS record. In the case of a Sharing Things and Connections, a duplicate SMS will be created for each organization the connection is shared to and each SMS will have a different id |
*One of the above parameters is required.
TR50 Response
If the command is sent successfully a success message and the current status of the SMS are returned. Otherwise, an error and error message will be returned.
{
"1": {
"success": true,
"params": {
"statusRaw": "DELIVERED",
"status": "delivered",
"text": "The message was delivered",
"preferredSmsc": "tele2",
"dateSent": "2016-09-07T10:24:08.12-04:00"
}
}
}
Response Parameters
Name | Type | Description |
---|---|---|
statusRaw | String | The raw textual description of the status of the message. |
status | String | The textual description of the status of the message. |
text | String | Additional status information. |
preferredSmsc | String | The preferred SMSC of the message. |
dateSent | String | The date the message was sent. |