Linking Mailjet as a source
Let AI connect your sources for you
Skip the manual setup — run this in your project and the wizard auto-detects your databases and APIs and connects them to PostHog.

Enter your Mailjet API key and secret key to pull your Mailjet data into the PostHog data warehouse.
Adding a data source
- Go to the sources tab of the data pipeline section in PostHog.
- Click + New source and then click Link next to Mailjet.
- Find your API key and Secret key on your Mailjet API key management page.
- Back in PostHog, enter the API key and secret key, then click Next.
- Select the tables you want to sync, set the sync method and frequency, then click Import.
Once the syncs are complete, you can start using Mailjet data in PostHog.
Available tables
| Table | Description | Sync method |
|---|---|---|
contact | Contacts | Full refresh |
contactslist | Contact lists | Full refresh |
listrecipient | Contact-to-list membership records | Full refresh |
campaign | Campaigns | Full refresh |
campaigndraft | Campaign drafts | Full refresh |
message | Messages | Full refresh |
contactmetadata | Contact metadata definitions | Full refresh |
contactdata | Contact property values per contact | Full refresh |
template | Templates | Full refresh |
messageinformation | Message sending, size, and spam information | Incremental |
openinformation | Email open statistics | Incremental |
clickstatistics | Email click statistics | Incremental |
bouncestatistics | Email bounce statistics | Incremental |
statcounters | Daily delivery and engagement counters | Incremental |
messageevent | Delivery and engagement events from webhooks | Webhook only |
Incremental tables sync only new or updated records on each run. Full refresh tables reload all data on each sync. Webhook only tables get rows only from webhook deliveries.
Sync limitations
The statistics and message information tables support incremental syncing on these fields:
messageinformation:CreatedAtopeninformation:OpenedAtclickstatistics:ClickedAtbouncestatistics:BouncedAtstatcounters:Timeslice
The list resources have no reliable server-side time filter and are full refresh only.
Webhooks for message events
The messageevent table has no list endpoint in Mailjet. Only webhook deliveries add rows to it. When you turn on the webhook sync method for this table, PostHog uses your API key to register Mailjet event callback URLs. It registers one URL for each of these event types: sent, open, click, bounce, blocked, spam, and unsub.
Mailjet does not sign its deliveries. Thus, PostHog puts generated basic-auth credentials in the callback URL. Mailjet sends them back in the Authorization header of each delivery, and PostHog rejects deliveries that do not match.
If the API key cannot manage webhooks, PostHog cannot register the callback URLs and the messageevent table stays empty. The other tables are not affected. The sent event occurs for each message that you send, so this table can grow quickly on accounts with high volume.
Configuration
| Option | Type | Required |
|---|---|---|
API key | password | Yes |
Secret key | password | Yes |
Supported tables
| Table | Description | Sync method | Incremental field | Primary key |
|---|---|---|---|---|
contact | A contact (recipient) stored in the Mailjet account. | Full refresh | — | — |
contactslist | A contact list in Mailjet that groups contacts for sending campaigns. | Full refresh | — | — |
listrecipient | The relationship linking a contact to a contact list, with its subscription status. | Full refresh | — | — |
campaign | A sent campaign in Mailjet representing a batch of messages. | Full refresh | — | — |
campaigndraft | A draft campaign in Mailjet, including its content and recipient configuration. | Full refresh | — | — |
message | An individual message (email) processed by Mailjet, with its delivery status. | Full refresh | — | — |
contactmetadata | A custom contact property (metadata field) definition in Mailjet. | Full refresh | — | — |
template | A reusable email template stored in the Mailjet account. | Full refresh | — | — |
contactdata | The custom contact property values stored for each contact in Mailjet. | Full refresh | — | — |
messageinformation | Sending, size and spam information for each message processed by Mailjet. | Incremental, Full refresh | CreatedAt | — |
openinformation | An open event recording that a recipient opened a message in Mailjet. | Incremental, Full refresh | OpenedAt | — |
clickstatistics | A click event recording that a recipient clicked a link in a message in Mailjet. | Incremental, Full refresh | ClickedAt | — |
bouncestatistics | A bounce event recording that a message could not be delivered to a recipient in Mailjet. | Incremental, Full refresh | BouncedAt | — |
statcounters | Daily delivery and engagement counters for the whole Mailjet API key, counted by the day each event happened. | Incremental, Full refresh | Timeslice | — |
messageevent | A delivery or engagement event pushed by the Mailjet Event API: sent, open, click, bounce, blocked, spam or unsub. Mailjet has no list endpoint for this stream, so the table is populated by webhook deliveries only. | Webhook only | — | — |





