Webhook for Mailgun does not exist on my blog

curl https://blog.my-domain.net/ghost/api/admin/mailgun/events/ sends back 404

So I assume that Ghost did not set up this endpoint. I should at least see something like

401 Unauthorized
or 405 Method Not Allowed

I’m using my own mailserver for transactional mails and mailgun for newsletters.
Both working great.

At my colleague’s blog webhooks work fine. The only difference with his setup is that he’s using Mailgun
for both transactional and newsletter mail.

So does that webhook only exist when Mailgun is fully integrated? Couldn’t find anything aobout that in the docs.

best regards

Michael

1 Like

I figured it out. There’s no webhook for Mailgun anymore. Somehow, the “create webhook” option in the Mailgun configuration misled me.
What used to be done via the webhook is now handled by Ghost’s active polling. That’s the analytics part of Ghost.

The data is retrieved from Mailgun by Ghost like this, for example:

curl -u “api:YOUR_API_KEY”
“``https://api.eu.mailgun.net/v3/your.blog.com/events?event=failed&event=complained&event=delivered&event=opened&event=clicked&limit=10”

Some old web posts and AI-hallucination led me astray.