What is Zapier?
Mailjet integrates with Zapier to help teams automate common workflows and keep contact data in sync across the tools they already use. Depending on your setup, Mailjet can either trigger a workflow or perform actions like adding contacts, updating lists, or managing subscriptions automatically, reducing manual work and making campaign operations easier to maintain. These automated workflows are called Zaps.
A Zap is a workflow that connects your apps to automate repetitive tasks. It consists of a trigger, an event that starts a Zap, and one or more actions, which are the events that the Zap performs after it’s triggered.
For example:
- Trigger: A new row is added to Google Sheets.
- Action: Zapier subscribes the contact from that row to a Mailjet contact list.
Before you start
Before creating your Zap, make sure you have:
- A Mailjet account
- A Zapier account
- Access to the app you want to connect with Mailjet
- Your Mailjet API Key and Secret Key
- A Mailjet contact list, if your Zap will subscribe or unsubscribe contacts
Common Mailjet triggers and actions in Zapier
Depending on your workflow, Mailjet can be used as the app that starts the Zap, as an app that performs an action, or both within the same Zap. You can also add multiple actions to a single Zap, including one or more Mailjet actions.
Mailjet trigger
Use Mailjet as the trigger app when you want an event in Mailjet to start a workflow in another app.
| Trigger | Use case |
|---|---|
| New Subscribe | Starts a Zap when a contact subscribes to a Mailjet contact list. |
| New Unsubscribe | Starts a Zap when a contact unsubscribes from a Mailjet contact list. |
| New Email Event | Starts a Zap when an email event occurs, such as sent, opened, clicked, bounced, blocked, or marked as spam. |
| New Parse API Inbound Email | Starts a Zap when a new inbound email is received through Mailjet Parse API. |
Example: Use Mailjet as the trigger app
In this example, we will create a Zap that adds a new row to Google Sheets every time someone subscribes to a Mailjet contact list.
The example below uses Google Sheets as the destination app, but you can follow the same general process with other apps, such as HubSpot, Slack, Airtable, your CRM, or any other app supported by Zapier.
Step 1: Choose Mailjet as the trigger app
The trigger is the event that starts your Zap. In this case, the Zap will start when an event happens in Mailjet.
- In Zapier, create a new Zap.
- Choose Mailjet as the trigger app.
- Select the Mailjet trigger you want to use.
Example: New Subscribe.
Step 2: Connect your Mailjet account
Zapier will ask you to connect your Mailjet account before it can access the selected Mailjet trigger.
- Click Sign in or Connect a new account.
- Enter your Mailjet API Key and Secret Key.
- Confirm the connection.
Important: Make sure you use the API Key and Secret Key from the Mailjet account where the trigger event should be detected.
Step 3: Configure the Mailjet trigger
The fields you need to configure depend on the Mailjet trigger you selected.
For the New Subscribe trigger, you will usually need to:
- Select the Mailjet contact list you want Zapier to monitor.
- Confirm any additional trigger settings requested by Zapier.
- Click Test trigger to make sure Zapier can find sample data from Mailjet.
Step 4: Choose the action app
After setting up the Mailjet trigger, choose what should happen in the destination app.
- In the action step, search for the app you want to send the Mailjet data to.
Example: Google Sheets. - Select the action you want Zapier to perform.
Example: Create Spreadsheet Row. - Connect your account for the selected app.
Step 5: Map the Mailjet data to the destination app
Next, choose which Mailjet data should be sent to the destination app.
- Select the destination file, list, record, channel, or object, depending on the app you selected.
- Map the Mailjet email address to the relevant field in the destination app.
- Optionally map additional Mailjet data, such as contact properties, event type, list information, or timestamp, if available for the selected trigger.
Step 6: Test the action
Before turning on the Zap, test the action to confirm that Zapier can successfully send the Mailjet data to the destination app.
- Click Test step or Test action in Zapier.
- Check the result returned by Zapier.
- Open the destination app and verify that the expected information was added.
Step 7: Turn on the Zap
Once the test is successful, publish your Zap to turn it on.
From that moment, Zapier will automatically run the workflow whenever the selected Mailjet trigger happens.
Mailjet action
Use Mailjet as the action app when you want Zapier to perform a task in Mailjet after something happens in another app.
| Action | Use case |
|---|---|
| Subscribe Contact to Mailjet List | Adds a contact to your Mailjet account and subscribes them to a specific contact list. |
| Unsubscribe Contact From Mailjet List | Unsubscribes a contact from a specific Mailjet contact list. |
| Remove a Contact From a Contact List | Removes a contact from a selected Mailjet contact list. |
| Update Contact Properties | Updates the contact properties of an existing Mailjet contact. |
| Send Plain Text Email | Sends a plain text email through your Mailjet account. |
| Send HTML Email | Sends an HTML email through your Mailjet account. |
| Send Email Using a Mailjet Template | Sends an email using one of your saved Mailjet templates. |
| Send an Email Campaign to a List | Sends an email campaign to a selected Mailjet contact list. |
| Get Contact List Subscribed by a User | Returns all Mailjet contact lists that the provider email address is currently subscribed to. |
| Get Contact Properties by an Email Address | Retrieves Mailjet contact properties for the given email. |
Example: Add new contacts to Mailjet from another app
In this example, we will create a Zap that subscribes a new contact to a Mailjet contact list when a new record is created in another app.
The example below uses Google Sheets, but you can follow the same general process with other apps, such as Typeform, HubSpot, Shopify, Facebook Lead Ads, Airtable, Webflow, or any other app supported by Zapier.
Step 1: Choose the app you want to connect with Mailjet and set up the trigger
The trigger is the event that starts your Zap.
- In Zapier, create a new Zap (either start from an existing Zap template).
- Choose Google Sheets as the trigger app.
Example: New Spreadsheet Row if you are using Google Sheets. - Follow the instructions in Zapier to select the spreadsheet.
- Click Test trigger to make sure Zapier can find sample data from the selected app.
Step 2: Choose Mailjet as the action app
After setting up the trigger, choose what should happen in Mailjet.
- In the action step, search for Mailjet.
- Select Mailjet as the action app.
- Choose the action you want Zapier to perform.
Example: Subscribe Contact to Mailjet List.
Step 3: Connect your Mailjet account
Zapier will ask you to connect your Mailjet account before it can perform the selected action.
- Click Sign in or Connect a new account.
- Enter your Mailjet API Key and Secret Key.
- Confirm the connection.
Important: Make sure you use the API Key and Secret Key from the Mailjet account where you want the Zap to create, update, subscribe, or unsubscribe contacts.
Step 4: Configure the Mailjet action
The fields you need to configure depend on the Mailjet action you selected.
For the Subscribe Contact to Mailjet List action, you will usually need to:
- Select the Mailjet contact list where the contact should be added.
- Map the email address from the trigger app to the Mailjet Email field.
- Optionally map additional fields to Mailjet contact properties, such as first name, last name, country, company, or any custom contact property available in your account.
Step 5: Test the Mailjet action
Before turning on the Zap, test the action to confirm that Zapier can successfully send data to Mailjet.
- Click Test step or Test action in Zapier.
- Check the result returned by Zapier.
- Go to your Mailjet account and verify that the expected change happened.
Step 6: Turn on the Zap
Once the test is successful, publish your Zap to turn it on.
From that moment, Zapier will automatically run the workflow whenever the selected trigger happens.
Use Mailjet as both the trigger and action app
In this example, we will create a Zap that starts when a Mailjet email event occurs and then performs another action in Mailjet.
More specifically, the Zap will detect a selected email event in Mailjet and then remove the contact from a Mailjet contact list.
Example: This type of workflow can be useful if you want to automatically manage contacts based on their email activity, such as removing a contact from a specific list after a selected event occurs.
Step 1: Choose Mailjet as the trigger app
The trigger is the event that starts your Zap. In this case, the Zap will start when an email event is detected in Mailjet.
- In Zapier, create a new Zap.
- Search for Mailjet.
- Choose Mailjet as the trigger app.
- Select New Email Event as the trigger event. You can also use the search bar if it is not displayed.
- Connect your Mailjet account using your API Key and Secret Key.
- Click Continue.
Step 2: Configure the Mailjet trigger
After connecting your Mailjet account, Zapier will ask you to configure the trigger.
- Select the Mailjet contact list you want Zapier to monitor.
- Click Continue.
Step 3: Copy the Zapier webhook URL
To receive Mailjet email events, Zapier will provide a webhook URL. This URL must be added to your Mailjet Event API settings.
- In the Zapier trigger test step, copy the webhook URL provided by Zapier.
- Keep the Zapier tab open. You will need to return to it after configuring the event in Mailjet.
Step 4: Add the webhook URL in Mailjet
Next, configure Mailjet to send the selected email event data to Zapier.
- In your Mailjet account, go to your Event API or Event notifications/webhooks settings.
- Select the email event you want to track.
Example: Click or Open. - Paste the Zapier webhook URL into the Endpoint URL field for the selected event.
- If needed, select Group events to group multiple events and reduce the number of calls sent to the endpoint.
- Click Send a test to check that the endpoint responds correctly.
- Click Save.
Step 5: Test the Mailjet trigger in Zapier
After configuring the webhook URL in Mailjet, return to Zapier and test the trigger.
- In Zapier, click Test trigger.
- Zapier will check for recent Mailjet events matching your configuration.
- Select one of the records found by Zapier.
- Click Continue with selected record.
If Zapier cannot find a record, make sure that the selected Mailjet event has happened recently. For example, if you selected the Click event, make sure a contact has recently clicked a link in one of your emails.
Step 6: Choose Mailjet as the action app
After setting up the Mailjet trigger, choose the action that Zapier should perform in Mailjet.
- In the action step, search for Mailjet.
- Select Mailjet as the action app.
- Select Remove a Contact From a Contact List as the action event.
- Connect your Mailjet account, or select an existing Mailjet connection.
- Click Continue.
Step 7: Configure the Mailjet action
Next, configure which contact to remove and from which Mailjet list.
- In the Email field, map the email address from the Mailjet trigger data.
- In the List ID field, select the Mailjet contact list from which the contact should be removed.
- Click Continue.
Important: Make sure the email field is mapped from the trigger data. If the wrong field is selected, Zapier may not be able to find and remove the correct contact.
Step 8: Test the Mailjet action
Before publishing the Zap, test the action to confirm that Zapier can successfully send the request to Mailjet.
- Click Test step or Test action in Zapier.
- Check the result returned by Zapier.
- Open the selected contact list in Mailjet and verify that the test contact was removed from the list.
Example: If the test uses user@example.com, check the selected Mailjet contact list and confirm that this contact is no longer subscribed to that list.
Step 9: Publish the Zap
Once the trigger and action tests are successful, publish the Zap.
From that moment, Zapier will automatically run the workflow whenever the selected Mailjet email event occurs.
Example workflow: A contact clicks a link in a Mailjet email. Mailjet sends the event to Zapier. Zapier then removes the contact from the selected Mailjet contact list.
Testing your Zap
Testing is an important part of creating a Zap. It helps confirm that:
- Zapier can access the trigger app
- The correct test data is available
- Your Mailjet account is connected correctly
- The right Mailjet contact list, template, sender, or campaign is selected
- The fields are mapped correctly between the two apps
After testing the Zap in Zapier, always check the destination app to confirm that the expected result occurred.
For example:
- If your Zap adds contacts to Mailjet, check the selected Mailjet contact list.
- If your Zap sends an email through Mailjet, check the test recipient inbox and your Mailjet statistics.
- If your Zap sends Mailjet data to another app, check that the destination app received the correct information.
Troubleshooting
👉Zapier cannot connect to Mailjet
- Check that your Mailjet API Key and Secret Key are correct.
- Make sure there are no extra spaces before or after the API Key or Secret Key.
- Confirm that you are using the API Key from the correct Mailjet account or sub-account.
👉The test trigger does not find any data
- Create a new test record in the trigger app.
- Make sure the record contains the required fields, such as an email address.
- Run the Zapier trigger test again.
👉The contact is not added to Mailjet
- Check that the email field is mapped correctly.
- Make sure the selected Mailjet contact list exists in your Mailjet account by searching for it on the My contact lists page.
- Check whether the contact already exists in your Mailjet account by searching for their email address on the All Contacts page.
- Confirm that the Zap is turned on.
👉The email is not sent
- Check that the sender address is valid and authorized in your Mailjet account.
- Make sure all required fields are completed in the Zapier action step.
- If you are using a Mailjet template, confirm that the correct template is selected.
- Check your Mailjet statistics or event logs for more details about the message status.
👉Fields are missing or incorrect
- Check the field mapping in the Zapier action step.
- Make sure the trigger app is sending the expected data.
- If you are using Mailjet contact properties, confirm that the properties already exist in your Mailjet account.
Need more help?
If the issue is related to creating, editing, or running the Zap, please check Zapier's Help Center.
If the issue is related to your Mailjet account, API keys, contact lists, templates, sending, or email statistics, please contact Mailjet Support.