Sign inGet Started

bird sms

Usage

Codebeispiel
bird sms

Description

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.

  1. bird sms send — Returns accepted (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

NameDescription
sendSend an SMS or MMS message to one recipient
getGet an SMS message
listList SMS messages
list-eventsList events for an SMS message
mediaDownload a received MMS message's media

Templates

NameDescription
templatesBrowse the SMS templates available to the workspace

Routing

NameDescription
destinationsManage which destination countries the workspace may send SMS to
messaging-profilesGroup senders, reply numbers and sending defaults for one program

Registration

NameDescription
sendersWhat a sender needs before it can send, country by country
10dlcRegister the brand and campaign US A2P SMS sending requires
tfnLicense a toll-free number to send in the US and Canada

Compliance

NameDescription
suppressionsManage who an SMS sender may not message
keyword-rulesConfigure what a reply to one of the workspace's numbers does

Analytics

NameDescription
statsRead aggregate SMS statistics

Weiter mit der Dokumentation, Anleitungen und Beispielen zu diesem Thema.