Send SMS Command to a Sim
Machine-to-machine SMS Commands sent to/from SIMs
Send SMS Command to a Sim.
Body
-
CallbackMethod string(http-method)
The HTTP method we should use to call
callback_url
. Can be:GET
orPOST
and the default is POST.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 command. -
The message body of the SMS Command.
-
The
sid
orunique_name
of the SIM to send the SMS Command to.
POST /v1/SmsCommands
curl \
-X POST https://supersim.twilio.com/v1/SmsCommands \
--user "username:password" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d 'CallbackMethod=HEAD&CallbackUrl=https%3A%2F%2Fexample.com&Payload=string&Sim=string'
Request example
{
"CallbackMethod": "HEAD",
"CallbackUrl": "https://example.com",
"Payload": "string",
"Sim": "string"
}
Request examples
{
"CallbackMethod": "HEAD",
"CallbackUrl": "https://example.com",
"Payload": "string",
"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",
"direction": "to_sim",
"payload": "string",
"sid": "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",
"direction": "to_sim",
"payload": "string",
"sid": "string",
"sim_sid": "string",
"status": "queued",
"url": "https://example.com"
}