Skip to main content

send_sms

Send an outbound message to a PSTN phone number.

Parameters

NameTypeRequired?DefaultDescription
to_numberstringRequiredPhone number to send SMS message to in e.164 format
from_numberstringRequiredPhone number SMS message will be sent from
bodystringRequired unless media is includedBody of the message
mediastring[]Required unless body is includedArray of media URLs to include in the message
regionstringOptionalpicked based on account preferences or device locationRegion of the world to originate the message from
tagsstring[]OptionalArray of tags to associate with the message to facilitate log searches

Variables

Set by the method:

  • send_sms_result: (out) success | failed.

Examples

Send an SMS

version: 1.0.0
sections:
main:
- send_sms:
from_number: "+155512312345"
to_number: "+15555554321"
body: "Hi, I hope you're well."