Mailjet

The Mailjet modules allow you to monitor, create, update, send, retrieve, list, and delete the contacts, events, draft campaigns, messages, send SMS, and sent campaigns in your Mailjet account.

Getting Started with Mailjet 

Prerequisites

The module dialog fields that are displayed in bold (in the Integromat scenario, not in this documentation article) are mandatory!

Connecting Mailjet to Integromat

To connect your Mailjet account to Integromat you need to obtain the API Key, and Secret Key from your Mailjet account and insert them in the Create a connection dialog in the Integromat module.

1. Log in to your Mailjet account.

2. From the Dashboard, click Your Account Name > Account Settings > Master API Key & Sub API key management

3. Copy the API Key and Secret Key values to a safe place.

4. Go to Integromat and open the Mailjet module's Create a connection dialog.

5. In the Connection name field, enter a name for the connection. 

6. In the API Key and Secret Key fields, enter the details copied in step 3 respectively, and click Continue.

The connection has been established.

Event

Watch Events

Triggers when an event given in its type parameter occurs.

Please Note: You do not have to add the webhooks in the Mailjet as it is automatically done for you once you add and save an instant trigger module to your scenario.

Webhook NameEnter a name for the webhook.
ConnectionEstablish a connection to your Mailjet account.
EventsSelect or map the events you want to watch. For example, sent email.

Draft Campaign

List Draft Campaigns

Retrieves a list of all draft campaigns.

ConnectionEstablish a connection to your Mailjet account.
Contact List IDSelect or map the Contact List ID whose campaign you want to list.
Delivered atEnter (map) the date to list the draft campaigns that were delivered on the specified date.
Edit ModeSelect or map the edit mode of the campaign:
  • Passport drag-and-drop template editor
  • HTML editor in Passport
  • MJML editor in Passport
Select One of Boolean ParametersSelect or map the parameter with which you want to mark the campaign:
  • Is Archived
  • Is Campaign
  • Is Deleted
  • Is Handled
  • Is Modified
  • Is Starred
StatusSelect or map the status of the campaigns you want to list.
SubjectSelect the subject line of the campaign you want to list.
Template IDSelect or map the Campaign Template ID to list the campaigns that match the specified ID.
LimitSet a maximum number of draft campaigns Integromat should return during one execution cycle.

Get a Draft Campaign

Retrieves a specified draft campaign.

ConnectionEstablish a connection to your Mailjet account.
Campaign IDSelect or map the Campaign ID whose details you want to retrieve.

Create a Draft Campaign

Creates a new draft campaign.

ConnectionEstablish a connection to your Mailjet account.
Sender's EmailSelect or map the email address from which the campaign will be sent.
Sender's NameSelect or map the name that appears in the campaign email.
Reply EmailEnter (map) the email address to which the recipient can reply to the campaign email.
Contact List IDSelect or map the Contact List ID to whose contacts you want to send the campaign.
TitleEnter (map) the campaign name.
SubjectEnter (map) the subject line of the campaign email.
Message Content TypeSelect or map the option to enter the message text for the campaign email:
  • HTML Body
  • Plain Text
HTM BodyEnter (map) the email body message.
Plain TextEnter (map) the email body message.

Update a Draft Campaign

Update an existing draft campaign.

ConnectionEstablish a connection to your Mailjet account.
Campaign IDSelect or map the Campaign ID whose draft campaign you want to update.
Sender's EmailSelect or map the email address from which the campaign will be sent.
Sender's NameSelect or map the name that appears in the campaign email.
Reply EmailEnter (map) the email address to which the recipient can reply to the campaign email.
Contact List IDSelect or map the Contact List ID to whose contacts you want to send the campaign.
TitleEnter (map) the campaign name.
SubjectEnter (map) the subject line of the campaign email.
Message Content TypeSelect or map the option to enter the message text for the campaign email:
  • HTML Body
  • Plain Text
HTM BodyEnter (map) the email body message.
Plain TextEnter (map) the email body message.

Sent Campaign

List Sent Campaigns

Retrieves a list of all sent campaigns.

ConnectionEstablish a connection to your Mailjet account.
Contact List IDSelect or map the Contact List-ID whose sent campaigns you want to list.
FromEnter (map) the email address to list the sent campaigns from the specified email address.
From TypeSelect or map the type of sent campaigns that you want to list:
  • Transactional
  • Marketing
  • Unknown
Campaign Sent SinceEnter (map) the date to list the campaigns that were sent on or after the specified date. See the list of supported date and time formats.
Campaigns Sent Until Enter (map) the date to list the campaigns that were sent on or before the specified date. See the list of supported date and time formats.
Is DeletedSelect whether you want to list only the deleted sent campaigns.
Is Newsletter ToolSelect whether you want to list only the sent campaign created by the Newsletter tool.
Is StarredSelect whether you want to list only the sent campaigns that were marked as starred.
PeriodSelect or map the duration to list the sent campaign from the specified period.
SortSelect or map the option to sort the campaigns.

Get a Sent Campaign

Retrieves a specified sent campaign.

ConnectionEstablish a connection to your Mailjet account.
Campaign IDSelect or map the Campaign ID whose details you want to retrieve.

Contacts

Watch Contacts

Triggers when a contact is created or updated.

ConnectionEstablish a connection to your Mailjet account.
Watch ContactsSelect or map the option to watch the contacts:
  • By Created Time
  • By Last Updated Time
Campaign IDSelect or map the Campaign ID you want to watch.
Contact List IDSelect or map the Contact List ID whose contacts you want to watch.
Is Excluded from CampaignsSelect whether you want to watch contacts that are added to excluding list for campaigns.
LimitSet the maximum number of contacts Integromat should return during one execution cycle.

List Contacts

Retrieves a list of all contacts.

ConnectionEstablish a connection to your Mailjet account.
Campaign IDSelect or map the Campaign ID whose associated contacts you want to search.
Contact List IDSelect or map the Contact List ID whose contacts you want to search.
Is Excluded from CampaignsSelect whether you want to list the contacts that were added to teh excluding list for campaigns.
LimitSet the maximum number of contacts Integromat should return during one execution cycle.

Get a Contact

Gets the data of a specified contact. 

Retrieves a list of all contacts.

ConnectionEstablish a connection to your Mailjet account.
Contact IDSelect or map the Contact ID whose details you want to retrieve.

Create a Contact

Creates a new contact.

ConnectionEstablish a connection to your Mailjet account.
EmailEnter (map) the email address of the contact.
NameEnter (map) the contact's name.
Is Excluded from CampaignsSelect whether the contact is added to the excluded list for campaigns.

Update Contact Properties

Updates the existing contact properties.

ConnectionEstablish a connection to your Mailjet account.
EmailEnter (map) the email address of the contact.
NameEnter (map) the contact's name.
Is Excluded from CampaignsSelect whether the contact is added to the excluded list for campaigns.

Subscribe/Unsubscribe a Contact

Subscribes/Unsubscribes a contact into a specified contact list.

ConnectionEstablish a connection to your Mailjet account.
Contact List IDSelect or map the Contact List ID whose contact you want to subscribe to or unsubscribe.
Contact's EmailEnter (map) the email address of the contact.
ActionSelect or map the action you want to perform:
  • Add the contact to this list and subscribe all of them
  • Add the contact to this list and subscribe them to it
  •  Remove the contact from the list
  • Unsubscribe the contact from this list
NameEnter (map) the contact's name
PropertiesAdd the details of the properties of the contact.

Message 

List Messages

Retrieves a list of all messages.

ConnectionEstablish a connection to your Mailjet account.
Campaign IDSelect or map the Campaign ID whose messages you want to list.
Contact IDSelect or map the Contact ID whose messages you want to list.
FromEnter (map) the date to list the messages created on or after the specified date.
ToEnter (map) the date to list the messages created on or before the specified date.
From TypeSelect the message sent type:
  • Transactional
  • Marketing
  • Unknown
Message StateSelect or map the state of the message you want to list. For example, Policy Issue (spam).
Message StatusSelect or map the status of the messages you want to list:
  • Processed
  • Queued
  • Sent
  • Opened
  • Clicked
  • Bounce
  • Spam
  • Unsubscribed
  • Blocked
  • Soft Bounce
  • Hard Bounce
  • Deferred
LimitSet the maximum number of messages Integromat should return during one execution cycle.

Send a Message

Sends a new message.

ConnectionEstablish a connection to your Mailjet account.
Sender's EmailSelect or map the Campaign ID whose messages you want to list.
Sender's NameEnter (map) the sender's name.
RecipientsAdd the recipients to whom you want to send the message:
Recipient's Email
Enter (map) the recipient's email address.
Recipient's Name
Enter (map) the name of the recipient.

CCsAdd the email addresses of the contacts to whom you want to add in the CC field of the message:
BCCsAdd the email addresses of the contacts to whom you want to add in the BCC field of the message:
Message Content TypeSelect or map the message content-type:
  • Text
  • HTML
  • Template
SubjectEnter (map) the subject line of the message.
Text ContentEnter (map) the message text.
AttachmentAdd the attachments to the message:
File Name
Enter (map) the file including the extension. For example, invoice.xml.
Data
Enter (map) the file data.

Other

Make an API Call

Performs an arbitrary authorized API call.

ConnectionEstablish a connection to your Mailjet account.
URL

Enter a path relative to https://api.mailjet.com For example: /v3/REST/contact

For the list of available endpoints, refer to the Mailjet API Documentation.

Method

Select the HTTP method you want to use:

GET
to retrieve information for an entry.

POST
to create a new entry.

PUT
to update/replace an existing entry.

PATCH
to make a partial entry update.

DELETE
to delete an entry.

HeadersEnter the desired request headers. You don't have to add authorization headers; we already did that for you.
Query StringEnter the request query string.
BodyEnter the body content for your API call.

Example of Use - List Draft 

The following API call returns all the draft campaigns from your Mailjet account:

URL:
/v3/REST/campaigndraft

Method:
GET

Matches of the search can be found in the module's Output under Bundle > Body > data
In our example, 2 campaigns were returned:

Send an SMS

Sends a new SMS.

Note: To send an SMS, you need to establish a new connection with Integromat using SMS API Token from your Mailjet account.

Connecting Mailjet to Integromat using SMS API Token

1. Log in to your Mailjet account, click SMS > Generate API Token > Enter a name for the API > Generate

2. Copy the API Token to your clipboard.

3. Go to Integromat and open the Send an SMS module's Create a connection dialog.

4. In the Connection name field, enter a name for the connection.

5. In the SMS API Token field, enter the token copied in step 2 and click Continue.

The connection has been established. You can now set up the scenario.

ConnectionEstablish a connection to your Mailjet account.
FromEnter (map) an alphanumeric Sender ID that can be customized for your convenience. For example, InfoSMS.
Note: Depending on the local mobile carrier policy it may be converted to a shortcode. For more information, see Country Specific Limitations.
ToEnter (map) the phone number of the recipient. The phone number must comply with the E.164 international telephone numbering standard. The phone number should start with a +, followed by the country code, and then followed by the phone number itself. For example, +33600000000.
TextEnter (map) the content of the SMS message.
For more information on the allowed length and message encoding, see the Concatenation & Encoding.


Popular use cases from our blog

automated-data-collection-crm-illustration

How to Automate Data Collection - Part 5: CRM Systems

automated-data-collection-chatbot-marketing-illustration

How to Automate Data Collection - Part 4: Chatbot Marketing

automated-data-collection-paid-ads-illustration

How to Automate Data Collection - Part 3: Paid Ads

automated-data-collection-email-illustration

How to Automate Data Collection - Part 2: Email Marketing Segmentation

personalized-customer-experience-illustration-integromat

5 Automated Solutions to Personalize Customer Experience

data-collection-automation-forms-pt-1

How to Automate Data Collection - Part 1: Online Forms

Didn’t find what you were looking for?

Expert

Find an expert

We feature a network of 450+ certified partners across the globe who are ready to help

Find an expert

Automate any workflow in your business

Sign up for a free account today. No credit card required, no time limits on free plan.