Retrieve a list of SMS Commands from your account.
Machine-to-machine SMS Commands sent to/from SIMs
Retrieve a list of SMS Commands from your account.
Query parameters
-
The SID or unique name of the Sim resource that SMS Command was sent to or from.
-
The status of the SMS Command. Can be:
queued
,sent
,delivered
,received
orfailed
. See the SMS Command Status Values for a description of each.Values are
queued
,sent
,delivered
,received
, orfailed
. -
The direction of the SMS Command. Can be
to_sim
orfrom_sim
. The value ofto_sim
is synonymous with the termmobile terminated
, andfrom_sim
is synonymous with the termmobile originated
.Values are
to_sim
orfrom_sim
. -
How many resources to return in each list page. The default is 50, and the maximum is 1000.
Minimum value is
1
, maximum value is1000
. -
The page index. This value is simply for client state.
Minimum value is
0
. -
The page token. This is provided by the API.
curl \
--request GET 'https://supersim.twilio.com/v1/SmsCommands' \
--user "username:password"
{
"meta": {
"key": "sms_commands",
"url": "https://supersim.twilio.com/v1/SmsCommands?Status=received&Sim=HSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&PageSize=50&Page=0",
"page": 0,
"page_size": 50,
"next_page_url": null,
"first_page_url": "https://supersim.twilio.com/v1/SmsCommands?Status=received&Sim=HSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&PageSize=50&Page=0",
"previous_page_url": null
},
"sms_commands": []
}
{
"meta": {
"key": "sms_commands",
"url": "https://supersim.twilio.com/v1/SmsCommands?Status=received&Sim=HSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&PageSize=50&Page=0",
"page": 0,
"page_size": 50,
"next_page_url": null,
"first_page_url": "https://supersim.twilio.com/v1/SmsCommands?Status=received&Sim=HSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&PageSize=50&Page=0",
"previous_page_url": null
},
"sms_commands": [
{
"sid": "HCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"url": "https://supersim.twilio.com/v1/SmsCommands/HCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"status": "received",
"payload": "content of the command",
"sim_sid": "HSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"direction": "from_sim",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"date_created": "2015-07-30T20:00:00Z",
"date_updated": "2015-07-30T20:00:00Z"
}
]
}