# Obtain Response Data via Webhook

Webhooks are used to obtain response data from Mailjet, such as whether your customer has opened or clicked your mailing. These data will be processed by CrossEngage and displayed in each campaign’s statistics. The generated data can be used to build [user segments](/data-and-engagement-platform/user-segmentation.md).

Your CrossEngage "Web tracking and response data API key" is needed for this Webhook configuration.

## Preparing a Webhook URL

To fetch the "Web tracking and response data API key":

* Log in to your CrossEngage account.
* Navigate to `Settings` > `System setup`.

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

* &#x20;In the `API keys` section, copy the “Web tracking and response data API key”.

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

* Paste your copied API key into the following URL instead of the placeholder "{webapikey}."
  * ​[https://api.crossengage.io/mailjet/inbound/message/{webapikey](https://api.crossengage.io/mailjet/inbound/message/%7Bwebapikey)}
* When finished, copy the adjusted URL.&#x20;

## Adding a Webhook to Mailjet

Webhook URLs must be added to Mailjet to allow response data to be sent to the CrossEngage System. This is done via the following steps:

* [Log in](https://app.mailjet.com/signin) to your Mailjet Account.
* Select `Account Settings` from the dropdown menu next to your username.

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

* In the “REST API” box select `Event notifications (webhooks)`. We will now specify where the event data will be sent.&#x20;

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

* Click on the checkboxes of events for which you wish to receive response data.
* Paste the copied URL from the previous steps into the “Endpoint URL” cells of all chosen events to be sent to CrossEngage.
* &#x20;Click `Save` when finished.

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

{% hint style="info" %}
To include all events, click the`Select all`checkbox in the "Event" column, paste your adjusted URL into the first Endpoint URL cell and click `Apply to all`.
{% endhint %}

You will now be able to view response data in your CrossEngage dashboard and use the information to build segments.


---

# 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/obtain-response-data-via-webhook.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.
