AppsPricingBlogTry it
Twilio logo
Mailgun logo

Connect Twilio to Mailgun

Use 5 documented Twilio triggers to run 11 documented Mailgun actions.

5 source triggers
11 target actions
Reverse direction supported

Why Connect Twilio & Mailgun?

Start with a Twilio event

Choose from 5 documented triggers, including New Incoming SMS (Instant), New Call (Instant), New Phone Number.

Run a Mailgun action

Send the event into one of 11 documented actions, such as Create Mailing List Member, Create Route, Delete Mailing List Member.

Map and review the workflow

Choose the fields and conditions for the workflow, then test the result before activation.

Available Triggers & Actions

Twilio logo

Twilio

Triggers (5)

New Incoming SMS (Instant)

Emit new event every time an SMS is sent to the phone number set. Configures a webhook in Twilio, tied to an incoming phone number.

webhook
New Call (Instant)

Emit new event each time a call to the phone number is completed. Configures a webhook in Twilio, tied to a phone number.

webhook
New Phone Number

Emit new event when you add a new phone number to your account

polling
New Recording

Emit new event when a new call recording is created

polling
New Transcript Created

Emit new event when a new call transcript is created

polling

Actions (24)

Make a Phone Call

Make a phone call passing text, a URL, or an application that Twilio will use to handle the call. See the documentation

Check Verification Token

Check if user-provided token is correct. See the documentation

Create Verification Service

Create a verification service for sending SMS verifications. See the documentation

Delete Call

Remove a call record from your account. See the documentation

Delete Message

Delete a message record from your account. See the documentation

Download Recording Media

Download a recording media file. See the documentation

Get Call

Return call resource of an individual call. See the documentation

Get Message

Return details of a message. See the documentation

Get Transcripts

Retrieves full transcripts for the specified transcript SIDs. See the documentation

List Application SID Options

Retrieves available options for the Application SID field.

List Call ID Options

Retrieves available options for the Call ID field.

List Calls

Return a list of calls associated with your account. See the documentation

List From Options

Retrieves available options for the From field.

List Incoming Phone Number Options

Retrieves available options for the Incoming Phone Number field.

List Message Media

Return a list of media associated with your message. See the documentation

List Messages

Return a list of messages associated with your account. See the documentation

List Parent Call SID Options

Retrieves available options for the Parent Call SID field.

List Recording ID Options

Retrieves available options for the Recording ID field.

List Service SID Options

Retrieves available options for the Service SID field.

List Transcript SIDs Options

Retrieves available options for the Transcript SIDs field.

List Transcripts

Return a list of transcripts. See the documentation

Phone Number Lookup

Lookup information about a phone number. See the documentation for more information

Send Message

Send an SMS text with optional media files. See the documentation

Send SMS Verification

Send an SMS verification to a phone number. See the documentation

Mailgun logo

Mailgun

Triggers (11)

New Bounce (Instant)

Emit new event when the email recipient could not be reached.

webhook
New Click (Instant)

Emit new event when the email recipient clicked on a link in the email. Open tracking must be enabled in the Mailgun control panel, and the CNAME record must be pointing to mailgun.org. See more at the Mailgun User's Manual Tracking Messages section

webhook
New Complaint (Instant)

Emit new event when the email recipient clicked on the spam complaint button within their email client. Feedback loops enable the notification to be received by Mailgun.

webhook
New Delivery (Instant)

Emit new event when an email is sent and accepted by the recipient email server.

webhook
New Delivery Failure (Instant)

Emit new event when an email can't be delivered to the recipient email server.

webhook
New Log Data

Emit new event when new data is logged in Mailgun's Control Panel. Occurs for most actions within the associated Mailgun account.

polling
New Mailing List

Emit new event when a new mailing list is added to the associated Mailgun account.

polling
New Open (Instant)

Emit new event when the email recipient opened the email and enabled image viewing. Open tracking must be enabled in the Mailgun control panel, and the CNAME record must be pointing to mailgun.org. See more at the Mailgun User's Manual Tracking Messages section

webhook
New Permanent Failure (Instant)

Emit new event when an email can't be delivered to the recipient email server due to a permanent mailbox error such as non-existent mailbox.

webhook
New Temporary Failure (Instant)

Emit new event when an email can't be delivered to the recipient email server due to a temporary mailbox error such as an ESP block. ESP is the Email Service Provider managing the recipient email server.

webhook
New Unsubscribe (Instant)

Emit new event when the email recipient clicked on the unsubscribe link. Unsubscribe tracking must be enabled in the Mailgun control panel. See more at the Mailgun User's Manual Tracking Messages section

webhook

Actions (11)

Create Mailing List Member

Add to an existing mailing list. See the docs here

Create Route

Create a new route. See the docs here

Delete Mailing List Member

Delete a mailing list member by address. See the docs here

Get Mailing List Member

Retrieve a mailing list member by address. See the docs here

Get Mailing List Members

List all mailing list members. See the docs here

List Domain Name Options

Retrieves available options for the Domain Name field.

List Domains

List domains in Mailgun. See the docs here

List Mailing List Options

Retrieves available options for the Mailing List field.

Send Email

Send email with Mailgun. See the docs here

Suppress Email

Add email to the Mailgun suppression list. See the docs here

Verify Email

Verify email address deliverability with Mailgun. See the docs here

Integration Features

5 documented Twilio triggers
11 documented Mailgun actions
Configurable field mapping
Conditional workflow steps
Execution monitoring
A supported Mailgun to Twilio direction

Capability Examples

Twilio trigger → Mailgun action

Catalog example
TwilioTwilio

New Incoming SMS (Instant)

MailgunMailgun

Create Mailing List Member

Mailgun trigger → Twilio action

Reverse direction
MailgunMailgun

New Bounce (Instant)

TwilioTwilio

Make a Phone Call

How It Works

1

Connect Apps

Authenticate your Twilio and Mailgun accounts

2

Choose a Trigger

Select a documented Twilio event

3

Choose an Action

Select the documented Mailgun operation to run

Test and Review

Verify field mapping and provider responses before activation

Frequently Asked Questions

Integration Benefits

Trigger-driven Workflows

Start the supported direction from one of 5 documented Twilio triggers.

Automated Actions

Run one of 11 documented Mailgun actions after the selected trigger fires.

Provider Authentication

Review the authentication requirements published by each provider before activating the workflow.

Guided Configuration

Select a documented trigger, choose a target action, and map the fields required by the workflow.

Field Mapping

Map the fields exposed by the selected trigger and action, then review the required provider inputs.

Execution Review

Test the workflow and review provider responses before relying on it in production.

Mailgun logoTwilio logo

Reverse Integration Available

Also connect Mailgun to Twilio for bidirectional automation

View Integration
Twilio logo

All Twilio Integrations

Explore all available Twilio connections

View All Integrations
Mailgun logo

All Mailgun Integrations

Explore all available Mailgun connections

View All Integrations

Ready to Connect Twilio & Mailgun?

Build this supported workflow in Mazaal AI and test it with your own provider accounts.

Get Started Free