send_sms
Send an outbound message to a PSTN phone number.
An object that accepts the send_sms parameters.
send_sms Parameters
- SMS
- MMS
Chosen based on account preferences or device locationRegion of the world to originate the message from
Chosen based on account preferences or device locationRegion of the world to originate the message from
Variables
Set by the method:
- send_sms_result: (out)
success|failed.
Examples
- SMS
- MMS
Send a text-only message:
- YAML
- JSON
version: 1.0.0
sections:
main:
- send_sms:
from_number: "+155512312345"
to_number: "+15555554321"
body: "Hi, I hope you're well."
{
"version": "1.0.0",
"sections": {
"main": [
{
"send_sms": {
"from_number": "+155512312345",
"to_number": "+15555554321",
"body": "Hi, I hope you're well."
}
}
]
}
}
Send a message with media attachment:
- YAML
- JSON
version: 1.0.0
sections:
main:
- send_sms:
from_number: "+155512312345"
to_number: "+15555554321"
media: ["https://example.com/image.jpg"]
body: "Check out this image!"
{
"version": "1.0.0",
"sections": {
"main": [
{
"send_sms": {
"from_number": "+155512312345",
"to_number": "+15555554321",
"media": [
"https://example.com/image.jpg"
],
"body": "Check out this image!"
}
}
]
}
}