Send an IP Command to a Super SIM
Machine-to-machine IP Commands sent to/from Super SIMs
Send an IP Command to a Super SIM.
Body
-
CallbackMethod string(http-method)
The HTTP method we should use to call
callback_url
. Can beGET
orPOST
, and the default isPOST
.Values are
HEAD
,GET
,POST
,PATCH
,PUT
, orDELETE
. -
CallbackUrl string(uri)
The URL we should call using the
callback_method
after we have sent the IP Command. -
The device port to which the IP Command will be sent.
-
The payload to be delivered to the device.
-
PayloadType string
Indicates how the payload is encoded. Either
text
orbinary
. Defaults totext
.Values are
text
orbinary
. -
The
sid
orunique_name
of the Super SIM to send the IP Command to.
POST /v1/IpCommands
curl \
-X POST https://supersim.twilio.com/v1/IpCommands \
--user "username:password" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d 'CallbackMethod=HEAD&CallbackUrl=https%3A%2F%2Fexample.com&DevicePort=42&Payload=string&PayloadType=text&Sim=string'
Request example
{
"CallbackMethod": "HEAD",
"CallbackUrl": "https://example.com",
"DevicePort": 42,
"Payload": "string",
"PayloadType": "text",
"Sim": "string"
}
Request examples
{
"CallbackMethod": "HEAD",
"CallbackUrl": "https://example.com",
"DevicePort": 42,
"Payload": "string",
"PayloadType": "text",
"Sim": "string"
}
Response examples (201)
{
"account_sid": "string",
"date_created": "2023-05-04T09:42:00+00:00",
"date_updated": "2023-05-04T09:42:00+00:00",
"device_ip": "string",
"device_port": 42,
"direction": "to_sim",
"payload": "string",
"payload_type": "text",
"sid": "string",
"sim_iccid": "string",
"sim_sid": "string",
"status": "queued",
"url": "https://example.com"
}
Response examples (201)
{
"account_sid": "string",
"date_created": "2024-05-04T09:42:00+00:00",
"date_updated": "2024-05-04T09:42:00+00:00",
"device_ip": "string",
"device_port": 42,
"direction": "to_sim",
"payload": "string",
"payload_type": "text",
"sid": "string",
"sim_iccid": "string",
"sim_sid": "string",
"status": "queued",
"url": "https://example.com"
}