Twilio

Configure the OptiPub Twilio Integration

Integrations can be found in OptiPub > Administration > System Settings > Integrations

Activate the Twilio Integration

  1. Click Add on the Twilio integration card from the Integrations page in OptiPub.
  2. Retrieve the API Token, Twilio Account SID, and Messaging Service ID from the Twilio Console.
  3. The Prefix is for a brand name, such as OptiPub or OptiPub Alerts.
  4. The Help Text should include directions to unsubscribe and contact support, such as Reply STOP to opt-out or visit our website [www.example.com]. For more help, contact support at [[email protected]] or call [1-800-123-4567]. Msg & data rates may apply.".
  5. The Stop Text should include confirmation of opt-out, and directions to opt back in, such as You have successfully opted out. You will not receive any more messages from this number. Reply START to resubscribe.

OptiPub Twilio Integration

Configure the Webhook in Twilio Messaging Services

The Twilio Messaging Service uses a webhook to forward incoming SMS messages to OptiPub.

Configure the webhook in Twilio > Develop > Messaging > Services > [Service Name] > Integration.

  • Select the 'Send a webhook' radio button.
  • Add the URL - https://{APP_DOMAIN}/auth/twilio- to both Request URL and Fallback URL and select HTTP Post from the drop down options.
  • Click [Save]

Twilio Webhook

The Twilio Webhook forwards all message, and notifies OptiPub if the Twilio configured Keywords for Opt-in,Opt-out, or Help are matched. OptiPub will auto-reply with the corresponding messages configured in the OptiPub Twilio Integration. View the configured Keywords in the Twilio Campaign configuration from Twilio > Develop > Messaging > Regulatory Compliance > Campaigns > [Campaign Name]

Twilio Webhook Keywords