---
title: "Send a Command to a Sim."
method: POST
path: "/v1/Commands"
tags: ["WirelessV1Command"]
---

# Send a Command to a Sim.

`POST /v1/Commands`

Send a Command to a Sim.

## Response `201`

Created

- WirelessV1Command
  - `sid` string, nullable — The unique string that we created to identify the Command resource.
  - `account_sid` string, nullable — The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Command resource.
  - `sim_sid` string, nullable — The SID of the [Sim resource](https://www.twilio.com/docs/iot/wireless/api/sim-resource) that the Command was sent to or from.
  - `command` string, nullable — The message being sent to or from the SIM. For text mode messages, this can be up to 160 characters. For binary mode messages, this is a series of up to 140 bytes of data encoded using base64.
  - `command_mode` 'text' | 'binary' — The mode used to send the SMS message. Can be: `text` or `binary`. The default SMS mode is `text`.
  - `transport` 'sms' | 'ip' — The type of transport used. Can be: `sms` or `ip`.
  - `delivery_receipt_requested` boolean, nullable — Whether to request a delivery receipt.
  - `status` 'queued' | 'sent' | 'delivered' | 'received' | 'failed' — The status of the Command. Can be: `queued`, `sent`, `delivered`, `received`, or `failed`. See [Status Values](https://www.twilio.com/docs/iot/wireless/api/command-resource#status-values) for a description of each state.
  - `direction` 'from_sim' | 'to_sim' — 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`.
  - `date_created` string, date-time, nullable — The date and time in GMT when the resource was created specified in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.
  - `date_updated` string, date-time, nullable — The date and time in GMT when the resource was last updated specified in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.
  - `url` string, uri, nullable — The absolute URL of the resource.

---

[API](https://skmtc.dev/twilio/apis/wireless-v1.md) · [All operations](https://skmtc.dev/twilio/apis/wireless-v1/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/twilio/wireless-v1/revisions/f3b4aa48e839/schema)
