Navigation

send

On this page

Definition

send

Sends a text message to a specified phone number.

The send action stage has the following syntax:

{ "service": <ses-servicename>, "action": "send", "args": { "fromAddress": <string>, "toAddress": <string>, "subject": <string>, "body": <string> } }

The send action takes the following arguments:

Argument Type Description
from string The sender’s phone number in E. 164 format.
to string The recipient’s phone number in E. 164 format.
body string The message to send.

Example

The following is a pipeline consisting of a send stage:

[
  {
    "service": "my-twilio-service",
    "action": "send",
    "args": {
     "to": "+15559727644",
     "from": "+15559848272",
     "body": "hello from twilio!"
    }
  }
   ]

See also

Pipelines examples.