Retrieve a list of IP Commands from your account.
Machine-to-machine IP Commands sent to/from Super SIMs
Retrieve a list of IP Commands from your account.
Query parameters
-
The SID or unique name of the Sim resource that IP Command was sent to or from.
-
The ICCID of the Sim resource that IP Command was sent to or from.
-
The status of the IP Command. Can be:
queued
,sent
,received
orfailed
. See the IP Command Status Values for a description of each.Values are
queued
,sent
,received
, orfailed
. -
The direction of the IP 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/IpCommands' \
--user "username:password"
{
"meta": {
"key": "ip_commands",
"url": "https://supersim.twilio.com/v1/IpCommands?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/IpCommands?Status=received&Sim=HSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&PageSize=50&Page=0",
"previous_page_url": null
},
"ip_commands": []
}
{
"meta": {
"key": "ip_commands",
"url": "https://supersim.twilio.com/v1/IpCommands?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/IpCommands?Status=received&Sim=HSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&PageSize=50&Page=0",
"previous_page_url": null
},
"ip_commands": [
{
"sid": "HGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"url": "https://supersim.twilio.com/v1/IpCommands/HGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"status": "received",
"payload": "checkin: firmware update",
"sim_sid": "HSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"device_ip": "100.64.0.123",
"direction": "from_sim",
"sim_iccid": "89883070000123456789",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"device_port": 100,
"date_created": "2015-07-30T20:00:00Z",
"date_updated": "2015-07-30T20:00:00Z",
"payload_type": "text"
}
]
}