# Set up Mailjet Integration

Before you begin, you will need the following:

* Mailjet Account
* CrossEngage Account
* User data (including an email address)

## **Creating a New API Key**

A Mailjet API key allows CrossEngage to connect to your Mailjet account. To create the API key:

* [*Log in*](https://app.mailjet.com/signin) to your Mailjet account.
* Click on your profile drop-down menu and select `Account Settings`.

<figure><img src="/files/EiYCdefbRcMIwKJ2Iuzd" alt=""><figcaption></figcaption></figure>

* In the “REST API” box, click on `API Key Management`.

<figure><img src="/files/sPmlJTTgio6nvlhQGUbS" alt=""><figcaption></figcaption></figure>

* You can choose between two types of API keys: The Primary API Key and the Sub-Account API Key. More information regarding the difference between these two options can be found [here](https://documentation.mailjet.com/hc/en-us/articles/360042561854-What-are-sub-accounts-and-how-does-it-help-me-).&#x20;
* By default, all Mailjet accounts come with a Primary API Key that grants full access to your account, including but not limited to sending emails, statistics, and information.
* Using the Sub-account API Keys, you can separate your mailings across different API Keys. Find out how to proceed with creating a Sub-account API key [here](https://documentation.mailjet.com/hc/en-us/articles/360042561974-How-to-create-a-sub-account-or-additional-API-Key-).

## Configure Mailjet Integration in CrossEngage

* In the CrossEngage app, navigate to `Settings` > `Integrations`.
* Click the `Add new integration` button in the top right corner of the page.

<figure><img src="/files/zfWLFaM1kVBGbSAJoguR" alt=""><figcaption></figcaption></figure>

* Search for Mailjet, then click `Set up`. An integration set-up form will open.

<figure><img src="/files/VejdvplMsg7SXbw2i56m" alt=""><figcaption></figcaption></figure>

* Enter a clear, descriptive name for your integration in the "Account name" field.
* Insert your Primary API Key and Secret Key into the "API key" and "Secret key" fields respectively.
* Paste the API key that you copied from your Mailjet account during the previous steps into the "Account name" field.
* Click `Connect` and then `Apply` to save your integration.

<figure><img src="/files/qsagHIvHU6HRqjyFB4Jo" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.crossengage.io/data-and-engagement-platform/messages/integrations/channels/email/mailjet/set-up-mailjet-integration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
