create_webhook
Create a webhook to send HTTP POST notifications to an external URL on Mailchimp audience events such as subscribe, unsubscribe, or profile updates.
Instructions
Create a webhook that sends HTTP POST notifications to an external URL on audience events.
Side effect: Mailchimp sends a validation GET request during creation; the URL must be publicly accessible and return HTTP 200. All events and sources enabled by default if omitted. Do not use for polling or batch data retrieval; use list_audience_members or campaign reports instead.
Authenticated via API key. Max 10 concurrent requests. Respects read-only and dry-run modes.
Args: list_id: Audience/list ID (10-char alphanumeric, e.g. 'abc123def4'). Obtain from list_audiences. url: Public HTTPS URL to receive POST requests. Must return HTTP 200 on GET validation. events: Comma-separated events: 'subscribe', 'unsubscribe', 'profile', 'cleaned', 'upemail', 'campaign'. All enabled if omitted. sources: Comma-separated sources: 'user', 'admin', 'api'. All enabled if omitted.
Returns: JSON with id, url, events (boolean flags), sources (boolean flags). Error if URL validation fails.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| list_id | Yes | ||
| url | Yes | ||
| events | No | ||
| sources | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |