send_sms
send_sms
send_sms
Send an outbound message to a PSTN phone number.
An object that accepts the following properties. Supports both SMS and MMS messages. See message types below for the properties specific to each type.
The send_sms object accepts the following properties depending on the message type:
Phone number to send SMS message to in e.164 format
Phone number SMS message will be sent from
Body of the text message
Region of the world to originate the message from
Array of tags to associate with the message to facilitate log searches
URL to receive delivery status callbacks for the outbound message (e.g., queued, sent, delivered, failed). Default is not set. See Status callbacks below.
Set by the method:
success | failed.When status_callback is set, SignalWire sends an HTTP POST to that URL each time the outbound
message transitions to a new state. Callback delivery is independent of SWML execution: the document
continues as soon as the message is accepted, and delivery-state callbacks fire afterwards.
The callback uses the same payload as other outbound messages sent through SignalWire:
See the Message status callback
webhook page for the full field reference and the list of possible status values.
Send a text-only message: