Event Target for Twilio

This event Target receives CloudEvents and utilizes Twilio to enable the creation and delivery of SMS messages via event-data and event-occurrence, respectively.

Prerequisites

  1. Twilio account with access to the Account SID & Access Token.
  2. Phone Number.

Deploying an Instance of the Target

Open the Bridge creation screen and add a Target of type Twilio.

Adding a Twilio Target

In the Target creation form, give a name to the event Target and add the following information:

Both the Default source phone number and Default destination configurations may be overridden by any CloudEvent message received by the Target.

For more information about using Twilio, please refer to the Twilio documentation.

Twilio Target form

After submitting the bridge, and allowing some configuration time, a green check mark on the main Bridges page indicates that the bridge was successfully created.

Bridge status

Event Types

The Twilio event Target can consume events of any type, however, the Target expects a JSON payload at the CloudEvent with the following properties:

Name Type Description
message string Text to be sent in the body of the SMS message.
media_urls string Array of URLs pointing to JPEG, GIF or PNG resources.
from string Phone number sourcing the communication. Takes precedence over the value from the Twilio Target spec.
to string Phone number of the destination. Takes precedence over the value from the Twilio Target spec.