bird sms
Usage
bird smsDescription
SMS supports direct text and templates; a subject or media_urls in --body-file selects MMS. MMS requires text or media, a +1 recipient, and an MMS-capable number held by the workspace; received MMS attachments are available for download.
Reads return JSON; list is paginated. Mutations take flags and/or a --body-file JSON body (flags overriding); run --example to print the body shape or --dry-run to preview the request.
Procedure
Send an SMS
Deliver one SMS or MMS to a phone number, as direct content or a text template. The result is accepted (queued, delivered asynchronously), not yet delivered: the carrier reports back over the following seconds to hours, so the final status only arrives on a later read.
Requires: The destination country must be enabled for the target workspace. The allowlist is default-deny and can be empty. Check the target workspace's destination list and enable the intended country before sending. A send to a disabled country is refused before the sender is resolved.
Requires: Direct content and templates are mutually exclusive. Direct sends need text or media_urls, plus category and from. A nonempty subject or media_urls selects MMS; a subject alone is invalid. MMS requires a +1 recipient and an MMS-capable number held by the workspace. Plain SMS can also use an owned short code or permitted alphanumeric sender ID. A template send needs the template and its parameters; the template supplies the category. Supply from for a workspace template and omit it for a built-in template. Omit text, category, subject, and media_urls for either template scope.
bird sms send— Returnsaccepted(HTTP 202) with the message id and its segment count; SMS is billed per segment, and a long body or a non-GSM-7 character can raise that count. MMS uses one message unit and separate MMS rates. Next: bird sms get or bird sms list
Messages
| Name | Description |
|---|---|
send | Send an SMS or MMS message to one recipient |
get | Get an SMS message |
list | List SMS messages |
list-events | List events for an SMS message |
media | Download a received MMS message's media |
Templates
| Name | Description |
|---|---|
templates | Browse the SMS templates available to the workspace |
Routing
| Name | Description |
|---|---|
destinations | Manage which destination countries the workspace may send SMS to |
messaging-profiles | Group senders, reply numbers and sending defaults for one program |
Registration
| Name | Description |
|---|---|
senders | What a sender needs before it can send, country by country |
10dlc | Register the brand and campaign US A2P SMS sending requires |
tfn | License a toll-free number to send in the US and Canada |
Compliance
| Name | Description |
|---|---|
suppressions | Manage who an SMS sender may not message |
keyword-rules | Configure what a reply to one of the workspace's numbers does |
Analytics
| Name | Description |
|---|---|
stats | Read aggregate SMS statistics |
Recursos relacionados
Continue com a documentação, guias e exemplos sobre este tópico.