{"templateId":"markdown","sharedDataIds":{},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Mailgun Webhooks","siteUrl":"https://documentation.mailgun.com","llmstxt":{"title":"Mailgun Documentation","description":"LLMS.txt containing a map of all the documentation files for Mailgun.","sections":[{"title":"Mailgun Send Documentation","description":"All of the Mailgun Send documentation.","includeFiles":["docs/mailgun/**/*.md"],"excludeFiles":["docs/mailgun/index.md"]},{"title":"Mailgun Send OAS","description":"All of the Mailgun Send API specifications.","includeFiles":["docs/mailgun/**/mailgun.yaml"]},{"title":"Mailgun Optimize Documentation","description":"All of the Mailgun Optimize documentation.","includeFiles":["docs/inboxready/**/*.md"],"excludeFiles":["docs/inboxready/index.md"]},{"title":"Mailgun Optimize OAS","description":"All of the Mailgun Optimize API specifications","includeFiles":["docs/inboxready/**/inboxready.yaml"]},{"title":"Mailgun Validate Documentation","description":"All of the Mailgun Validate documentation.","includeFiles":["docs/validate/**/*.md"],"excludeFiles":["docs/validate/index.md"]},{"title":"Mailgun Validate OAS","description":"All of the Mailgun Validate API specifications.","includeFiles":["docs/validate/**/*.yaml"]},{"title":"Mailgun Inspect Documentation","description":"All of the Mailgun Inspect documentation.","includeFiles":["docs/inspect/**/overview.md"]},{"title":"Mailgun Inspect OAS","description":"All of the Mailgun Inspect API specifications.","includeFiles":["docs/inspect/**/*.yaml"]}]},"description":"Mailgun Webhooks integration with Mailgun"},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"mailgun-webhooks","__idx":0},"children":["Mailgun Webhooks"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"about-mailgun-webhooks","__idx":1},"children":["About Mailgun Webhooks"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Get real-time email event data sent directly to your application. Automate responses and analytics without API polling."," ","Webhooks allow your application to programmatically receive information in near real-time whenever an event happens on your Mailgun account. This allows your application to stay up to date on everything that happens with the email messages you send."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Use cases for webhooks can include:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Storing events in your own or 3rd party application for reporting purposes"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Removing recipient addresses that bounce, complain or unsubscribe (good email hygiene!)"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Triggering fallback channels like SMS or push notifications when critical transactional emails fail to deliver"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Building engagement profiles from open and click data to optimize send frequency and audience segmentation"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Maintaining compliance and audit trails for industries with regulatory requirements around email delivery records"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Surfacing delivery status to end users on platforms that send email on behalf of their customers"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Syncing engagement data with CRM tools so sales teams can see if prospects opened their emails"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Go ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://help.mailgun.com/hc/en-us/articles/202236504-Webhooks?_gl=1*f6e37g*_gcl_au*OTQ1NTA4MDA2LjE3Njc5MDA3Njk.*_ga*MTY2NDk5NTk0MC4xNjgyMDk3MjE5*_ga_PZB2JSMCGC*czE3NzM0MjY0MzEkbzMzMyRnMSR0MTc3MzQyNjcwMCRqNjAkbDAkaDEwNTIyNjIzNzE."},"children":["here"]}," to learn how to integrate Mailgun Webhooks."]}]},"headings":[{"value":"Mailgun Webhooks","id":"mailgun-webhooks","depth":1},{"value":"About Mailgun Webhooks","id":"about-mailgun-webhooks","depth":2}],"frontmatter":{"seo":{"title":"Mailgun Webhooks","description":"Mailgun Webhooks integration with Mailgun"}},"lastModified":"2026-10-28T19:46:32.468Z","pagePropGetterError":{"message":"","name":""}},"slug":"/docs/mailgun/api-reference/analytics/mg-webhooks","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}