Command Resource
Asynchronous resources
Retention period
Command Properties
Status values
Create a Command resource
Callback values
Send a Command to a Sim
The message body of the Command. Can be plain text in text mode or a Base64 encoded byte string in binary mode.
The sid or unique_name of the SIM to send the Command to.
The HTTP method we use to call callback_url. Can be: POST or GET, and the default is POST.
The URL we call using the callback_url when the Command has finished sending, whether the command was delivered or it failed.
The mode to use when sending the SMS message. Can be: text or binary. The default SMS mode is text.
Whether to include the SID of the command in the message body. Can be: none, start, or end, and the default behavior is none. When sending a Command to a SIM in text mode, we can automatically include the SID of the Command in the message body, which could be used to ensure that the device does not process the same Command more than once. A value of start will prepend the message with the Command SID, and end will append it to the end, separating the Command SID from the message body with a space. The length of the Command SID is included in the 160 character limit so the SMS body must be 128 characters or less before the Command SID is included.
Whether to request delivery receipt from the recipient. For Commands that request delivery receipt, the Command state transitions to 'delivered' once the server has received a delivery receipt from the device. The default value is true.
Data Usage List
Data Usage List
Invalid request
Credentials were not provided and are required to access this resource
Credentials were not provided and are required to access this resource
Resource not found
Credentials were not provided and are required to access this resource
Resource not found
Internal Server Error
Server is temporary not available
Fetch a Command resource
The SID of the RatePlan resource to fetch.
Get Command
Invalid request
Credentials were not provided and are required to access this resource
Credentials were not provided and are required to access this resource
Resource not found
Credentials were not provided and are required to access this resource
Resource not found
Internal Server Error
Server is temporary not available
Read multiple Command resources
The sid or unique_name of the Sim resources to read.
{"value":"sim"}The status of the Command. Can be: queued, sent, delivered, received, or failed. See Status Values for a description of each state.
{"value":"queued"}Possible values: The direction of the Command. Can be to_sim or from_sim. The value of to_sim is synonymous with the term mobile terminated, and from_sim is synonymous with the term mobile originated.
{"value":"from_sim"}Possible values: The type of transport used. Can be: sms or ip.
{"value":"ip"}Possible values: How many resources to return in each list page. The default is 50, and the maximum is 1000.
The page index. This value is simply for client state.
The page token. This is provided by the API.
Data Usage List
Invalid request
Credentials were not provided and are required to access this resource
Credentials were not provided and are required to access this resource
Resource not found
Credentials were not provided and are required to access this resource
Resource not found
Internal Server Error
Server is temporary not available
Delete a Command resource
The SID of the RatePlan resource to fetch.
The resource was deleted successfully.
The resource was deleted successfully.
Invalid request
Credentials were not provided and are required to access this resource
Credentials were not provided and are required to access this resource
Resource not found
Internal Server Error
Server is temporary not available
No content
Receive a Command from a SIM
Last updated
Was this helpful?