# Mautic webhooks

Mautic webhooks are signed HTTP POST requests that a Mautic instance sends to your URL about contact activity, either as it happens or in batches from a cron job.

Agent skill: `npx skills add hookdeck/webhook-skills --skill mautic-webhooks` ([details](https://hookdeck.com/webhooks/mautic/skill))

> Independent reference generated from hookdeck/webhook-registry (commit ff7f882, 20 Nov 2026). [Mautic's official docs](https://devdocs.mautic.org/en/5.x/webhooks/getting_started.html#securing-a-webhook).

[Overview](https://hookdeck.com/webhooks/mautic) · [Webhook events (14)](https://hookdeck.com/webhooks/mautic/events) · [MCP events](https://hookdeck.com/webhooks/mautic/mcp-events) · [Verify signatures](https://hookdeck.com/webhooks/mautic/verify) · [Production guide](https://hookdeck.com/webhooks/mautic/guide-duplicates-ordering-retries-timeouts) · [Agent skill](https://hookdeck.com/webhooks/mautic/skill)

## Key facts

| Fact | Value | Source |
|---|---|---|
| Signature header | `Webhook-Signature` Format: <base64>, with no prefix | [Mautic docs](https://devdocs.mautic.org/en/5.x/webhooks/getting_started.html#securing-a-webhook) |
| Scheme | `HMAC-SHA256` | [Mautic docs](https://devdocs.mautic.org/en/5.x/webhooks/getting_started.html#securing-a-webhook) |
| Signed material | `{raw body}` The JSON body exactly as sent, with no timestamp or other prefix. | [Mautic docs](https://devdocs.mautic.org/en/5.x/webhooks/getting_started.html#securing-a-webhook) |
| How events are identified | `Each top-level body key is an event type, holding an array` | [Mautic docs](https://devdocs.mautic.org/en/5.x/webhooks/getting_started.html) |
| Body format | `JSON` Content type: application/json. | [Mautic source](https://github.com/mautic/mautic/blob/7.x/app/bundles/WebhookBundle/Http/Client.php) |
| Other headers | `content-type, user-agent, x-origin-base-url` | [Mautic source](https://devdocs.mautic.org/en/5.x/webhooks/getting_started.html#securing-a-webhook) |
| Agent skill | `npx skills add hookdeck/webhook-skills --skill mautic-webhooks` | [Agent skill →](https://hookdeck.com/webhooks/mautic/skill) |

[Verify Mautic webhooks](https://hookdeck.com/webhooks/mautic/verify)

## How Mautic webhooks work

Webhooks push contact, company, email, form, page and text message activity to your server, so you don't have to poll Mautic's API. Each webhook has a POST URL, a set of events and a secret. Queue Mode applies to the whole instance: Process Events Immediately sends one event per request as it happens, and Queue Events Only stores events for the Webhooks cron job to send in batches.

The body has no event type field. Each top-level key names an event type, such as `mautic.form_on_submit`, and holds an array of items, so a queued request can carry several types and several items of each. Every item has its own `timestamp`, and Mautic sends no event ID or payload version. Mautic's webhook docs carry a banner saying they need a major update, so check field names against a real delivery from your own version.

## Setting up Mautic webhooks

- Open Webhooks from the cog menu and click New. Enter a name and Webhook POST URL, select the events, and keep or replace the generated secret.
- Choose real-time or queued delivery under Configuration > Webhook Settings. Queued delivery needs `php bin/console mautic:webhooks:process` running on a schedule.
- Click Send Test Payload on the webhook form. It posts fixture files from Mautic's source rather than your data, and some have a different shape from real deliveries. Mautic's docs describe no way to resend a delivery.
- Test locally with `npx hookdeck-cli listen 3000 mautic --path /webhooks/mautic`, then use its URL as the Webhook POST URL. Mautic 7 rejects private addresses unless they're listed in `webhook_allowed_private_addresses`.

## Delivery behaviour

- **Timeout:** not documented. Mautic's docs give no value, so keep handlers fast. [Guide](https://hookdeck.com/webhooks/mautic/guide-duplicates-ordering-retries-timeouts#timeouts)
- **Retries:** queued mode only. later cron runs retry failures after an hour by default, per Mautic's source. [Guide](https://hookdeck.com/webhooks/mautic/guide-duplicates-ordering-retries-timeouts#retries)
- **Webhook unpublished:** on a 410 or no successes. a `410` does it at once; otherwise it checks the last 100 log entries. [Guide](https://hookdeck.com/webhooks/mautic/guide-duplicates-ordering-retries-timeouts#retries)
- **Duplicates:** no event ID. failed queued items are sent again, so build your own key. [Guide](https://hookdeck.com/webhooks/mautic/guide-duplicates-ordering-retries-timeouts#duplicates)

## Known failure modes

1. **Real-time events are lost during an outage.** In real-time mode, Mautic's source sends each event once and doesn't store it, so an event sent while your endpoint is down doesn't come back. Use queued mode, or put a queue in front of your service. [Retries and failures](https://hookdeck.com/webhooks/mautic/guide-duplicates-ordering-retries-timeouts#retries)
2. **The webhook unpublishes itself.** A `410` response unpublishes a Mautic webhook at once. So does a log with no successes in its last 100 entries, unless auto-unpublish is disabled or the webhook was edited in the last two days. [Retries and failures](https://hookdeck.com/webhooks/mautic/guide-duplicates-ordering-retries-timeouts#retries)
3. **A batch is treated as one event.** In queued mode one request can hold several event types, each with an array of items. Loop over every key and every item, and return a 2xx only once all of them are stored. [Other Mautic limits](https://hookdeck.com/webhooks/mautic/guide-duplicates-ordering-retries-timeouts#other-limits)
4. **Retried items are processed twice.** Mautic sends no event ID, and a failed queued request's items are sent again. Deduplicate on the event type, the object's ID and the item's `timestamp`. [Handle duplicates](https://hookdeck.com/webhooks/mautic/guide-duplicates-ordering-retries-timeouts#duplicates)

From [Hookdeck's Mautic guide](https://hookdeck.com/webhooks/mautic/guide-duplicates-ordering-retries-timeouts).

## Mautic webhook best practices

- **[Verify every signature](https://hookdeck.com/webhooks/mautic/verify).** Mautic's docs say to ignore any request whose signature doesn't match. Compute it over the raw body, before parsing.
- **[Loop over every key and item](https://hookdeck.com/webhooks/mautic/guide-duplicates-ordering-retries-timeouts#other-limits).** A queued request can hold several event types, each with several items, and a handler that reads only the first drops the rest.
- **[Return a 2xx quickly](https://hookdeck.com/webhooks/mautic/guide-duplicates-ordering-retries-timeouts#timeouts).** In real-time mode Mautic sends the request while it handles the action that caused it, so a slow endpoint slows Mautic too.
- **[Choose the delivery mode deliberately](https://hookdeck.com/webhooks/mautic/guide-duplicates-ordering-retries-timeouts#retries).** Real-time delivery is immediate but isn't retried. Queued delivery is retried but waits for the cron job.
- **[Build your own idempotency key](https://hookdeck.com/webhooks/mautic/guide-duplicates-ordering-retries-timeouts#duplicates).** Items carry no event ID, so combine the event type, the object's ID and the item's `timestamp`.
- **[Keep 410 out of your webhook route](https://hookdeck.com/webhooks/mautic/guide-duplicates-ordering-retries-timeouts#retries).** Mautic reads a `410` as a request to stop and unpublishes the webhook straight away.

## Common Mautic webhook events

### Contacts

- [mautic.lead_post_save_new](https://hookdeck.com/webhooks/mautic/events#mautic.lead_post_save_new): Contact is identified for the first time
- [mautic.lead_post_save_update](https://hookdeck.com/webhooks/mautic/events#mautic.lead_post_save_update): Identified contact record changes
- [mautic.lead_channel_subscription_changed](https://hookdeck.com/webhooks/mautic/events#mautic.lead_channel_subscription_changed): Contact's status on a channel changes

### Forms and pages

- [mautic.form_on_submit](https://hookdeck.com/webhooks/mautic/events#mautic.form_on_submit): Contact submits a form
- [mautic.page_on_hit](https://hookdeck.com/webhooks/mautic/events#mautic.page_on_hit): Contact views a landing page or tracked page

### Email

- [mautic.email_on_send](https://hookdeck.com/webhooks/mautic/events#mautic.email_on_send): Email goes out to a contact
- [mautic.email_on_open](https://hookdeck.com/webhooks/mautic/events#mautic.email_on_open): Tracking pixel suggests a contact opened an email

## Events by resource

| Resource | Events | Payloads |
|---|---|---|
| [contact](https://hookdeck.com/webhooks/mautic/events#resource-contact) | 7 | 4 |
| [mautic](https://hookdeck.com/webhooks/mautic/events#resource-mautic) | 4 | 2 |
| [messaging](https://hookdeck.com/webhooks/mautic/events#resource-messaging) | 3 | 1 |

[All 14 events](https://hookdeck.com/webhooks/mautic/events)

## In this hub

- [Webhook events](https://hookdeck.com/webhooks/mautic/events): Every covered Mautic event, with payloads where the registry has them.
- [MCP events](https://hookdeck.com/webhooks/mautic/mcp-events): How an agent subscribes to Mautic events as MCP events.
- [Verify signatures](https://hookdeck.com/webhooks/mautic/verify): Signature facts, verification code and common failures.
- [Production guide](https://hookdeck.com/webhooks/mautic/guide-duplicates-ordering-retries-timeouts): Production problems, such as timeouts and retries, and how to handle them.
- [Agent skill](https://hookdeck.com/webhooks/mautic/skill): Install the webhook skill in your coding agent. `npx skills add hookdeck/webhook-skills --skill mautic-webhooks`
---

Not affiliated with Mautic. Facts are compiled from public sources and linked inline. [View as JSON](https://hookdeck.com/webhooks/mautic.json) · [Report a correction](https://hookdeck.com/contact)
