# Send SMS Command to a Sim. **POST /v1/SmsCommands** Send SMS Command to a Sim. Machine-to-machine SMS Commands sent to/from SIMs ## Servers - https://supersim.twilio.com: https://supersim.twilio.com () ## Authentication methods - Account sid auth token ## Parameters ### Body: application/x-www-form-urlencoded (object) - **Sim** (string) The `sid` or `unique_name` of the [SIM](https://www.twilio.com/docs/iot/supersim/api/sim-resource) to send the SMS Command to. - **Payload** (string) The message body of the SMS Command. - **CallbackMethod** (string(http-method)) The HTTP method we should use to call `callback_url`. Can be: `GET` or `POST` and the default is POST. - **CallbackUrl** (string(uri)) The URL we should call using the `callback_method` after we have sent the command. ## Responses ### 201 Created #### Headers - **Access-Control-Allow-Origin** (string) Specify the origin(s) allowed to access the resource - **Access-Control-Allow-Methods** (string) Specify the HTTP methods allowed when accessing the resource - **Access-Control-Allow-Headers** (string) Specify the headers allowed when accessing the resource - **Access-Control-Allow-Credentials** (boolean) Indicates whether the browser should include credentials - **Access-Control-Expose-Headers** (string) Headers exposed to the client #### Body: application/json (object) - **sid** (string | null) The unique string that we created to identify the SMS Command resource. - **account_sid** (string | null) The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the SMS Command resource. - **sim_sid** (string | null) The SID of the [SIM](https://www.twilio.com/docs/iot/supersim/api/sim-resource) that this SMS Command was sent to or from. - **payload** (string | null) The message body of the SMS Command sent to or from the SIM. For text mode messages, this can be up to 160 characters. - **status** (string) The status of the SMS Command. Can be: `queued`, `sent`, `delivered`, `received` or `failed`. See the [SMS Command Status Values](https://www.twilio.com/docs/iot/supersim/api/smscommand-resource#status-values) for a description of each. - **direction** (string) The direction of the SMS 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`. - **date_created** (string(date-time) | null) The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. - **date_updated** (string(date-time) | null) The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. - **url** (string(uri) | null) The absolute URL of the SMS Command resource. [Powered by Bump.sh](https://bump.sh)