Send a text
send_smsSend an SMS from the user's own number to one or more people. Returns each text's id; status starts as queued. Confirm the recipients and exact wording with the user first, unless they gave both. One SMS holds 160 GSM-7 characters (153 per segment when longer); an emoji or any character outside GSM-7 makes it UCS-2: 70 characters (67 per segment). Each segment is billed. For person-to-person texts only: carriers filter bulk and marketing (A2P) traffic on personal numbers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Recipients, up to 100 | |
| sim | No | Optional, Android only: which SIM sends it, numbered as on the phone (1 or 2). list_devices shows each phone's SIMs. Defaults to the SIM chosen in the app. | |
| text | Yes | The message, up to 1,600 characters (may be empty when media_urls has a picture) | |
| send_at | No | Optional: send later (ISO 8601, up to 30 days ahead). | |
| device_id | No | Optional: which phone sends it (see list_devices). Defaults to the default phone. | |
| expires_at | No | Optional, instead of ttl_seconds: the same as an ISO 8601 time. | |
| media_urls | No | Optional: up to 3 pictures (JPEG, PNG or GIF, public https URLs, 5 MB each) to send as an MMS. Android 1.4.0 or the Mac relay. text may then be empty. | |
| ttl_seconds | No | Optional: if it hasn't gone out this many seconds after it may (send_at, or now), drop it and never send it; it fails with error expired. Use for one-time codes and anything that stops mattering, e.g. 300. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sms | Yes | ||
| note | No | ||
| device | Yes | ||
| batchId | Yes | ||
| messages | Yes |