mailchimp-webhooks
Installation
SKILL.md
Mailchimp Webhooks
When to Use This Skill
- Setting up Mailchimp webhook handlers
- How do I respond to Mailchimp's webhook URL validation (the GET request)?
- How do I secure Mailchimp webhooks (they are not HMAC-signed)?
- Handling audience events: subscribe, unsubscribe, profile, upemail, cleaned, campaign
- Parsing Mailchimp's
application/x-www-form-urlencodedpayloads
Verification (core)
Mailchimp does NOT sign its webhooks — there is no HMAC and no signature header. You secure the endpoint two ways, both described in Mailchimp's sync audience data with webhooks guide:
- URL validation (GET): When you save a webhook, Mailchimp sends a
GETto the URL to confirm it is reachable. Respond200— do not require the secret on GET. - Shared secret (POST): Put an unguessable secret in the webhook URL's query string (e.g.
https://your.app/webhooks/mailchimp?secret=…) and compare it on everyPOSTwith a timing-safe comparison. Always serve the endpoint over HTTPS.
Payloads are application/x-www-form-urlencoded with a top-level type field and data[...] fields.