Reference · Tools
Mailjet trigger
Receives webhook notifications from Mailjet when email delivery events occur, such as messages sent, opened, clicked, bounced, or unsubscribed.
The Mailjet Trigger fires on the email event type you select — blocked, bounce, open, sent, spam or unsub — splitting Mailjet's batched event array so each event becomes its own item with type, timestamp, message ID and email address. A typical build is suppressing an address after a hard bounce or spam complaint.
- Works as
- Webhook trigger
- Tool name
mailjet_trigger- Parameters
- 1
- Outputs
- Output
- Credentials
- Mailjet Email
- Official docs
- Mailjet docs dev.mailjet.com
What you can build with Mailjet
- Start a workflow when an email is opened by a recipient.
- Trigger an alert when an email bounces in Mailjet.
- When automate unsubscribe handling when a recipient opts out.
- When log email delivery events for analytics and reporting.
Overview
Receives webhook notifications from Mailjet when email delivery events occur, such as messages sent, opened, clicked, bounced, marked as spam, blocked, or unsubscribed. Mailjet sends POST requests to the registered callback URL with an array of event objects containing the event type, timestamp, message ID, and recipient email. The trigger registers itself with Mailjet’s Event Callback URL API (POST /v3/rest/eventcallbackurl) for the selected event type. Useful for tracking email delivery, monitoring bounces and spam reports, automating re-engagement workflows on opens/clicks, and handling unsubscribe events. Authenticates via HTTP Basic Auth using the Mailjet API Key and Secret Key. WARNING: Mailjet does not sign webhook payloads. Security relies on the secrecy of the registered callback URL. Do not commit it to public repos or share publicly.
Node Type
Trigger — webhook (receives incoming HTTP callbacks)
Input / Output
| Direction | Port(s) |
|---|---|
| Input | None (trigger node) |
| Output | Output |
Credentials
This tool requires Mailjet Email credentials. See the Credentials Guide for setup instructions.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| Event | options | Yes | open | Which email event type to listen for. Determines which Mailjet event callback is registered. |
Options: blocked (email.blocked), bounce (email.bounce), open (email.open), sent (email.sent), spam (email.spam), unsub (email.unsub) |
Output Data
Mailjet posts an array of event objects, and each entry becomes its own output item. Every item carries three metadata fields plus the event’s own fields:
_trigger— alwaysmailjet_webhook_timestamp— ISO 8601 timestamp of when the request arrived_webhookEvent— the Mailjet event name taken from the payloadevent— the Mailjet event nametime— the Unix timestamp Mailjet recorded for the eventMessageID,Message_GUID— identifiers for the message the event belongs toemail— the recipient addressmj_campaign_id,mj_contact_id,customcampaign,CustomID,Payload— Mailjet campaign, contact and custom-tracking identifiersip,geo,agent,url— client and link details recorded for open and click eventsblocked,hard_bounce,error_related_to,error— delivery failure detailssource— the source Mailjet attributes the event to
Any other field Mailjet includes in the event is merged in alongside these. Reference the result downstream by expression, e.g. {{ $json.email }}.
Example Configuration
Listen for message opens:
{
"type": "mailjet_trigger",
"parameters": {
"event": "open"
}
}
Listen for bounces so you can clean your list:
{
"type": "mailjet_trigger",
"parameters": {
"event": "bounce"
}
}
Listen for unsubscribes:
{
"type": "mailjet_trigger",
"parameters": {
"event": "unsub"
}
}
Trigger Behavior
- Activation: When the workflow is activated, a webhook endpoint is registered with the service.
- Deactivation: The webhook is automatically unregistered when the workflow is deactivated.
- Payload: The incoming webhook payload is parsed and output as workflow items.
- Verification: Supports signature verification where applicable.
Tips
This tool detects Mailjet email events like opens, clicks, or bounces. It is the right tool when you need to start a workflow based on specific email delivery statuses from Mailjet. It produces an event object for each detected email event, containing details like the event type, timestamp, message ID, and recipient email.
Frequently asked questions
Are the webhook payloads signed?
No. Mailjet does not sign webhook payloads, so security rests entirely on the secrecy of the registered callback URL. Do not commit it to a public repository or share it publicly.
How are batched events handled?
Mailjet sends an array of event objects and each becomes a separate output item, so the next node runs once per event rather than once per delivery.
What is on each item?
Event type, timestamp, message ID and the email address — enough to act on the event without an immediate follow-up lookup.
Can one trigger watch several event types?
It is configured with the event type to listen for, so use a separate trigger per event you need to handle differently.
Build with Mailjet
Drop it into a workflow, wire it to an agent, or call it on a schedule. You'll need Mailjet Email credentials first.
Open BusyBotLast reviewed . Spotted something wrong? Tell us.