2Chat and Mailgun Integration
Keep 2Chat and Mailgun matched by integrating their events and actions. When communication events happen in 2Chat, update the Mailgun automatically - without any line of code in visual workflow builder.
- 3-day trial
- Cancel anytime
- Up to 10 minutes quick set up
- GDPR
- Data Encryption
- 2FA
- Local Data Region
Learn about 2Chat and Mailgun
Detailed info you need to know about 2Chat and Mailgun integrations in WEXTL. Explore which modules apps support and how you connect them.
How to connect 2Chat to Mailgun
Set up your 2Chat and Mailgun integration in 3 simple steps[2]. No coding required. Up to 10 minutes setup.
STEP 1
Connect 2Chat and Mailgun
Save credentials in WEXTL once. We store them encrypted and reuse the authorization across every workflow[3]. No coding or API skills required.
STEP 2
Build a workflow
Paste selected 2Chat and Mailgun nodes onto the canvas[4], or describe what you want and WEXTL wires the flow together with AI Builder.
STEP 3
Map your data
Choose which fields need to sync between 2Chat and Mailgun. Use filters or a JS custom code step in between. Everything is on the canvas.
How does the integration between 2Chat and Mailgun work in WEXTL?
WEXTL exposes actions and triggers for 2Chat and Mailgun that help you connect apps and automate repetitive tasks[1]. A trigger is an event that happens, and an action is a step that performs when the event has occurred.
2Chat triggersMailgun actions
2Chat modules
- Watch Events Starts the workflow the moment a chosen 2Chat event happens, delivered by webhook. Each event includes its Event name and Created At time.
- Add a Catalog Collection Sets up a collection in a WhatsApp catalog. The collection Name cannot be changed later, and you may place items in it from the start with Products.
- Add a Catalog Product Lists a product in a WhatsApp catalog with a Name and an Image URL. Add a Price and Currency, a Retailer ID such as a SKU, a Product Link to your shop, or turn on Hidden to keep it from customers.
- Add a Tag to a Conversation Applies a saved tag to a chat, found by the Conversation Key from a webhook or a conversation list. The output describes the tag, including its Color.
- Add Catalog Product Images Attaches one or two extra pictures to a catalog product through Image URLs, next to the main image.
- Add Group Participants Adds up to 10 people to a WhatsApp group by their Phone Numbers. The output lists the Participants of the group.
- Cancel a Number Reservation Releases a phone number you were holding before buying it.
- Connect a WhatsApp Number Brings a disconnected WhatsApp number online again in 2Chat.
- Create a Contact Adds a person to the 2Chat directory from a First Name, with an optional Last Name and Profile Picture URL. Store phone numbers, emails or addresses with Contact Details, and set WhatsApp Number to also create the contact on that number.
- Create a Tag Creates a tag with a Name up to 100 characters long, or returns the tag that already has that name. Give a Conversation Key to put the tag on that conversation right away.
- Create a WABA Template Writes a WhatsApp Business message template and submits it to WhatsApp for review, under a lowercase Name with a Language and a Category. Fill Body, Header, Footer and Buttons for the content, and read the Template and its Required Params in the result.
- Create a WhatsApp Connection Starts connecting a new WhatsApp number to 2Chat by QR code. Use Friendly Name to give the number an alias.
- Create a WhatsApp Group Creates a group named Group Name with up to 10 first members from Phone Numbers. Add a Description if you like, and the output separates Accepted Numbers from Unaccepted Numbers.
- Delete a Catalog Collection Removes a product collection from a WhatsApp catalog.
- Delete a Catalog Product Deletes a product listing from a WhatsApp catalog.
- Delete a Catalog Product Image Removes one extra picture from a catalog product, found by its Image Position counted from 0.
- Delete a Contact Removes a contact from the 2Chat directory, which cannot be undone.
- Delete a Tag Deletes a tag and removes it from every conversation, which cannot be undone.
- Delete a Virtual Number Deletes one of your virtual phone numbers from the 2Chat account. This is final.
- Delete a WABA Template Deletes a WhatsApp Business template in every language version it has.
- Delete a WhatsApp Message Deletes a message from a conversation. The result includes the Message UUID and WhatsApp Message ID of the removed message.
- Delete a WhatsApp Number Removes a connected WhatsApp number from 2Chat, which is final.
- Demote Group Participants Takes admin rights from up to 10 group admins, listed by Phone Numbers.
- Disconnect a WhatsApp Number Disconnects a WhatsApp number from your 2Chat account. Connect a WhatsApp Number brings it online again.
- Edit a Catalog Collection Changes the membership of a catalog collection. Add items with Products to Add and take them out with Products to Remove. The collection ID changes after every edit.
- Edit a Catalog Product Updates a catalog product through a new Name, Image URL, Description, Price or Retailer ID. Turn Hidden on or off to hide or show the product.
- Find a Number on WhatsApp Looks up whether a phone number is registered, answering with Is Valid and On WhatsApp. Turn on Include Extra Details to add profile picture, business details and status text.
- Get a Call Price Estimates what a call to a phone number would cost, as Price Per Minute for the matching Prefix and Location Name.
- Get a Contact Reads one directory contact along with the Last Updated time of its record.
- Get a WABA Conversation Window Reports if you may still reply freely to a contact, based on the 24-hour reply window. The result shows Window Open, Seconds Left and Allowed Message Types.
- Get a WABA Message Reads one WhatsApp Business message together with its delivery state. Use its Message ID, which begins with MSG, and the Conversation Key of the chat.
- Get a WABA Number Reads one WhatsApp Business number, including its Verified Name, Business ID and Connection Status.
- Get a WABA Template Loads a template with its approval state and required values. Take the Template ID, starting with TMP, from List WABA Templates.
- Get a WhatsApp Group Returns a group with its Group Name, Size and members. Its Group ID begins with WAG and appears in List WhatsApp Groups.
- Get a WhatsApp Message Fetches one WhatsApp message and its delivery state. Take the Message ID from Send a WhatsApp Message or a message list, and the Conversation Key from a webhook.
- Get a WhatsApp Number Reads one connected WhatsApp number, including Friendly Name, Push Name, Platform and Connection Status.
- Get Account Usage Reports the plan of the account with its rate limits and consumed credits, under Limits and Usage.
- Get an Ads Report Reports conversations that began from Click-to-WhatsApp ads, with Totals and Ads. Set Days for how far back to look, today included, and WABA Number to see one number only.
- Get an SMS Channel Reads one SMS number of the account, including Supports SMS In, Supports SMS Out and Enabled.
- Get an SMS Message Reads one SMS by its Message ID, which starts with SMI for received and SMO for sent messages. The result has Text, Direction and Price.
- Get Call Details Fetches the cost and agent of a single call, whose Call ID starts with CDR and is listed in List Call History.
- Get Conversation Tags Lists the tags put on one conversation, found by its Conversation Key. Use Limit to read only part of them.
- Get Number Cities Shows the cities that sell phone numbers in one country. Use Region to limit them to one region, which exists for US, CA and GB.
- Get Number Regions Shows the regions of a country where numbers can be bought. Only US, CA and GB have regions, and each entry has an ID and a Region Name.
- Get Number Requirements Lists the requirements a country has for buying a number. Use Number Type to see the requirements for one kind of number.
- Get WhatsApp Number Status Returns the Connection Status of a number plus the QR Code to scan when it needs pairing.
- List Available Numbers Lists numbers you can buy inside a number group, each with an ID and Number. Set Number Contains to keep only numbers with a given digit sequence.
- List Call History Lists phone calls, filtered by Direction or by To Number and From Number. Each call has a Status, a Duration and a Call ID.
- List Caller IDs Shows the numbers displayed to the people you call, with Verified and Expires At for each.
- List Catalog Collections Returns collections found in a WhatsApp catalog with their Approval Status and Products. Fill Business Number to read the catalog of another Business account.
Mailgun modules
- Activate a Domain Key Marks a domain key as active for one of your domains. Use Authority Name for the domain and Selector for the key. The response confirms the Active flag.
- Add a Mailgun Account IP Allowlist Entry Permits an Address to reach your Mailgun account, with an optional Description. The response lists the Addresses now permitted.
- Add a New Dedicated IP to the Account Requests one more dedicated IP address from Mailgun for your sending account.
- Add a New DIPP to the Account Creates a dedicated IP pool from a Name and a Description. Use Ip to place an address into the pool right away.
- Add an Alert Creates an alert for one Event Type, delivered through the Channel. Use Url for a webhook, Emails for email or Channel Ids for Slack.
- Add an Allowlist Record Allowlists an Address or domain for a sending domain. The response returns the stored Type and Value.
- Add an Authorized Email Recipient for a Sandbox Domain Authorizes an Email address to receive messages from your sandbox domain. The response includes the Recipient.
- Add an IP to a DIPP Places a single IP address into a dedicated IP pool, using Pool ID for the pool and Ip for the address.
- Add an IP to a Dynamic IP Pool Attaches an address to a dynamic IP pool. Use Pool Name for the pool and Ip for the address to add.
- Add Bounces Puts bounced addresses on the bounce list for a domain you send from.
- Add Complaints Registers spam complainers on the complaint entries of a sending domain.
- Add Multiple IPs to the DIPP Moves several addresses into a dedicated IP pool in one call, using Ips and the Pool ID. Returns a Result.
- Add Unsubscribes Logs recipients who opted out of mail from a sending domain.
- Aggregate Counts by Country Counts the events of a sending domain for each country, with the Countries list in the result.
- Aggregate Counts by Devices Triggering Events Groups the events of a sending domain by the kind of Devices that triggered them.
- Aggregate Counts by ESP Sums up the events of a sending domain for each mailbox provider and returns them as Providers.
- Assign an IP to All Account Domains Attaches an Ip to every domain on your account. The response gives a Message and a Reference ID.
- Bulk Upload Members to a Mailing List (CSV) Imports many members into a mailing list from a CSV file. Use Members to supply the file by its absolute path. Output includes a Task ID for the import.
- Bulk Upload Members to a Mailing List (JSON) Imports many members into a mailing list from a JSON array, using Members for the data. Use Upsert to update members who already exist. Output includes a Task ID.
- Cancel the Warmup Plan for an IP Address Stops the gradual warmup running on one IP address.
- Clear All Bounces Empties the bounce list of a sending domain.
- Clear All Complaints Deletes all spam complaint entries from a sending domain.
- Clear All Unsubscribes Clears the unsubscribe list of a sending domain.
- Clear Allowlist Removes every allowlist entry of a sending domain.
- Copy a Template (v3) Copies a template to another account through the older v3 endpoint, using Requests for each Template Name, Account ID and Name. Leave Source Versions empty to copy all versions. The response reports any Failed Copies.
- Copy a Template (v4) Copies a template to another account through the v4 endpoint. Use Requests to list each Template Name, Account ID and new Name, and Source Versions to copy only some versions. Output lists any Failed Copies.
- Copy a Version Duplicates a version of a domain template under a New Version Name. Use Comment to describe the copy.
- Copy an Account-level Template Version Clones a version of an account template as a New Version Name. Use Comment to describe the new version.
- Create a Domain Registers a new sending domain by its Name. Use Spam Action for disabled, block or tag filtering, Wildcard to accept inbound messages on subdomains and Require Tls to demand TLS. Output includes the Sending Dns Records and Receiving Dns Records.
- Create a Domain Key Generates a key for a Signing Domain under a chosen Selector. Use Bits to set the key length and Pem to bring your own private key. The response includes the Dns Record to publish.
- Create a Domain Webhook Registers a webhook on a domain, using ID for the event and Url for the address to call. The response returns a Message and the Webhook.
- Create a Forward Rule Sets up a rule for inbound messages whose recipient matches Match, a wildcard expression. Use Forward.Url and Forward.Recipient to pass matching mail to web addresses or email addresses. Use Forward.Store to get a notification when the email arrives.
- Create a Limit Threshold for an Account Sets a threshold on one Metric for the account, compared to a Limit with a Comparator and split by a Dimension. Use Period such as 1h or 1d to set how long the metric is aggregated, and Filters to narrow it.
- Create a Mailgun API Key Issues a Mailgun API key for a Role. Use Kind to choose a domain, user or web key, Expiration to set the lifetime in seconds, and User ID, User Name or Email for the user. Output includes the Key.
- Create a Mailing List Makes a mailing list at an Address. Use Access Level to set readonly, members or everyone access and Reply Preference to send replies to the list or the sender. Add a Name and Description to label it.
- Create a Mailing List Member Subscribes one person to a mailing list. Use Address and Name for who they are, Vars for custom data and Subscribed for their status. Turn on Upsert to update a member who exists.
- Create a Route Creates a route that acts on inbound mail matching an Expression. Use Priority to order it against other routes and Action to decide what happens to each match.
- Create a Send Alert for an Account Adds an alert on a Metric that compares it to a Limit with a Comparator, split by a Dimension. Use Alert Channels for who to notify and Period or Filters to narrow what it watches.
- Create a Subaccount Adds a subaccount under your Mailgun account. Use Name to label it.
- Create a Template Stores a new template in a domain under a Name. Include Template content to create a first version, named by Tag. Use Headers to store key and value headers with the template.
- Create a Template Version Adds a version to an existing template in a domain, with Template content under a Tag. Use Comment to annotate the version, and Headers to send custom headers with it.
- Create a Warmup Plan for an IP Address Starts a warmup plan for one IP address, given as Addr, so the address builds up sending volume over time.
- Create an Account-level Template Stores a template shared across your account under a Name. Include Template content to create a first version, named by Tag. Use Headers to store key and value headers with the template.
- Create an Account-level Template Version Saves a version for an account template, with Template content under a Tag. Use Comment to annotate the version and Headers to send custom headers with it.
- Create an Account-level Webhook Registers an account webhook that calls a Url for the chosen Event Types, with an optional Description. Returns the Webhook ID.
- Create Mailgun SMTP Credentials for a Domain Adds SMTP credentials to a domain from a Login. Use Password to supply your own instead of a generated one.
- Create or Regenerate Webhook Signing Key on an Account Generates the key that signs webhook requests, or replaces it with a new one. You get the Http Signing Key.
- Deactivate a Domain Key Marks a domain key as inactive for one of your domains. Use Authority Name for the domain and Selector for the key. The response confirms the Active flag.
- Delegate a DIPP to a Subaccount Hands a dedicated IP pool over to a subaccount, using Pool ID for the pool and Subaccount ID for the receiver.
- Delete a Custom Sending Limit for a Subaccount Deletes the custom monthly sending limit of a subaccount, matched on Subaccount ID.
Explore alternative integrations
There are other apps[9] supported by WEXTL that can be paired with 2Chat and Mailgun integrations. Pick any from the list below if the current combination isn't the one you need.
Frequently asked questions
Common questions about connecting 2Chat and Mailgun.
References
List of sources used to gather information about the 2Chat and Mailgun integration.
- 2Chat and Mailgun integration source code, module specs and credentials implementation.
- Our 2Chat and Mailgun integration documentation, structured input and output parameters, scopes, and authentication methods.
- Official vendor API documentation for 2Chat and Mailgun, used to verify field meanings, authentication flows, and anything our own specs don't fully capture.
- WEXTL® visual workflow builder, anonymized data from our technical support team.
- 2Chat integration information
- Mailgun integration information
- WEXTL® Scheduling
- WEXTL® Pricing and Trial
- WEXTL® Apps Library
How we write our apps documentation
Explore how WEXTL® crafted 2Chat and Mailgun integration page documentation. Used sources, the role of AI, and how the team validates the result.

