> For the complete documentation index, see [llms.txt](https://docs.growsurf.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.growsurf.com/integrations/mailjet.md).

# Mailjet

Update Mailjet contacts with their unique share link and referrer information.

## Sync with your Mailjet List <a href="#sync-with-your-mailerlite-group" id="sync-with-your-mailerlite-group"></a>

**Step 1:** In *Program Editor > 4. Options > Integrations*, open the Mailjet integration card and enter your Mailjet API and secret key ([click here to get your Mailjet API and secret key](https://app.mailjet.com/account/api_keys)).

{% hint style="info" %}
Connect Mailjet before importing participants. If participants are already in your program, follow [these ESP sync options](https://support.growsurf.com/article/385-how-can-i-sync-my-growsurf-participants-to-my-esp) to send their GrowSurf data to Mailjet.
{% endhint %}

![](https://2794996218-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LeklWo0yn03AhWro2Ux%2F-MSR8eO14p-GLUCt_7AC%2F-MSR8ujsjsTXae1_6HGG%2FScreen%20Shot%202021-02-01%20at%202.08.10%20AM.png?alt=media\&token=f2941696-0d29-4c3d-bbaa-67f8896b4eb0)

**Step 2:** Once connected, choose the Mailjet list that you want to automatically sync to. GrowSurf will add/update your Mailjet contacts every time a new participant is added or referred to your referral or affiliate program.

**Step 3:** Save changes. You should now see a screen that looks like the one below:

![](https://2794996218-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LeklWo0yn03AhWro2Ux%2F-MSR9CfwotOsRhtzFQLx%2F-MSRBmZD3kPXHqvrMkh-%2FScreen%20Shot%202021-02-01%20at%203.05.07%20AM.png?alt=media\&token=b83f360b-4e08-4f3b-99e7-a216b9ca485f)

## Examples

[View our Mailjet tutorials](https://docs.growsurf.com/additional-integrations/mailjet/tutorials) to see different kinds of examples that you can copy/paste into your email templates.

## **Contact Properties** <a href="#subscriber-fields" id="subscriber-fields"></a>

GrowSurf will automatically create these new contact properties for your Mailjet contacts.

| **Fields**                               | **Name**                                    | **Data Type** | **Description**                                                                                                                                                                                           | **Example**                                                |
| ---------------------------------------- | ------------------------------------------- | ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------- |
| **GrowSurf Share URL**                   | `[[data:grsf_share_url]]`                   | String        | The participant's unique referral link                                                                                                                                                                    | <https://growsurf.com?grsf=absc123>                        |
| **GrowSurf Participant ID**              | `[[data:grsf_participant_id]]`              | String        | The participant's unique GrowSurf ID                                                                                                                                                                      | abc123                                                     |
| **GrowSurf Referral Status**             | `[[data:grsf_referral_status]]`             | String        | The referral status of the participant\*                                                                                                                                                                  | CREDIT\_PENDING                                            |
| **GrowSurf Participant First Name**      | `[[data:grsf_participant_first_name]]`      | String        | The participant's first name                                                                                                                                                                              | Bob                                                        |
| **GrowSurf Participant Last Name**       | `[[data:grsf_participant_last_name]]`       | String        | The participant's last name                                                                                                                                                                               | Loblaw                                                     |
| **GrowSurf Referrer First Name**         | `[[data:grsf_referrer_first_name]]`         | String        | The first name of the participant's referrer (if applicable)                                                                                                                                              | Gavin                                                      |
| **GrowSurf Referrer Last Name**          | `[[data:grsf_referrer_last_name]]`          | String        | The last name of the participant's referrer (if applicable)                                                                                                                                               | Belson                                                     |
| **GrowSurf Referrer Email**              | `[[data:grsf_referrer_email]]`              | String        | The email address of the participant's referrer (if applicable)                                                                                                                                           | <gavin.belson@hoolie.io>                                   |
| **GrowSurf Total Referral Count**        | `[[data:grsf_total_referral_count]]`        | Integer       | The participant's all-time referral count                                                                                                                                                                 | 0                                                          |
| **GrowSurf Lead Count**                  | `[[data:grsf_lead_count]]`                  | Integer       | The participant's current lead count (pending referrals that have not converted yet)                                                                                                                      | 0                                                          |
| **GrowSurf Monthly Referral Count**      | `[[data:grsf_monthly_referral_count]]`      | Integer       | The participant's current month referral count                                                                                                                                                            | 19                                                         |
| **GrowSurf Prev Monthly Referral Count** | `[[data:grsf_prev_monthly_referral_count]]` | Integer       | The participant's previous month referral count                                                                                                                                                           | 20                                                         |
| **GrowSurf Next Milestone**              | `[[data:grsf_next_milestone]]`              | String        | The text for the next/upcoming milestone reward (only applies to milestone rewards. [See an example here](https://docs.growsurf.com/developer-tools/embeddable-elements#embedded-next-milestone))         | You are only 2 referrals away from winning a free t-shirt! |
| **GrowSurf Next Monthly Milestone**      | `[[data:grsf_next_monthly_milestone]]`      | String        | The text for the next/upcoming monthly milestone reward (only applies to milestone rewards. [See an example here](https://docs.growsurf.com/developer-tools/embeddable-elements#embedded-next-milestone)) | You are only 2 referrals away from winning a free t-shirt! |
| **GrowSurf Total Invite Count**          | `[[data:grsf_total_invite_count]]`          | Integer       | The participant's all-time invite count                                                                                                                                                                   | 112                                                        |
| **GrowSurf Total Impression Count**      | `[[data:grsf_total_impression_count]]`      | Integer       | The participant's all-time impression count                                                                                                                                                               | 150                                                        |
| **GrowSurf Language**                    | `[[data:grsf_language]]`                    | String        | The participant's program language (ISO code such as es or pt-BR)                                                                                                                                         | es                                                         |

\**GrowSurf Referral Status* can have one of these values:

* `CREDIT_PENDING`: The participant must trigger a referral before their referrer receives credit.
* `CREDIT_AWARDED`: The participant triggered a referral, and their referrer received credit.
* `CREDIT_EXPIRED`: The participant did not trigger a referral before the referral credit expired.

You can use these new contact properties in your Mailjet email templates. For example, use `[[data:grsf_share_url]]` to add each participant's unique referral link.

​[Learn how to create contact properties in Mailjet here.](https://documentation.mailjet.com/hc/en-us/articles/360043176353-How-to-create-manage-contact-properties-)

## **Troubleshooting Tips** <a href="#troubleshooting-tips" id="troubleshooting-tips"></a>

* Check the participant's activity logs if they do not sync. GrowSurf retries failed syncs for up to 7 days.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.growsurf.com/integrations/mailjet.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
