sendSms
Send an SMS or MMS message to a phone number. At least one of body or media
must be provided. Generates a SWML send_sms verb under the hood.
Throws Error if neither body nor media is provided.
Parameters
opts
SMS configuration object.
opts.toNumber
Destination phone number in E.164 format (e.g., "+15551234567").
opts.fromNumber
Sender phone number in E.164 format. Must be a number in your SignalWire project.
opts.body
Text body of the message.
opts.media
List of media URLs to include as MMS attachments.
opts.tags
Tags to associate with the message for searching and filtering in the SignalWire dashboard.
opts.region
Region to originate the message from.
Returns
FunctionResult — this, for chaining.