Skip to navigation

Add webhook

Create a new webhook for a specific list.

Authentication

AuthorizationBearer

Authorization using a Mailchimp API key (a.k.a. Bearer token)

OR
AuthorizationBearer
Authorization using OAuth

Path parameters

list_idstringRequired
The unique ID for the list.

Request

This endpoint expects an object.
eventsobjectOptional
The events that can trigger the webhook and whether they are enabled.
sourcesobjectOptional
The possible sources of any events that can trigger the webhook and whether they are enabled.
urlstringOptional
A valid URL for the Webhook.

Response

This endpoint returns an object.
eventsobjectOptionalRead-only
The events that can trigger the webhook and whether they are enabled.
idstringOptionalRead-only
An string that uniquely identifies this webhook.
list_idstringOptionalRead-only
The unique id for the list.
signing_enabledbooleanOptionalRead-only

Whether outbound deliveries are HMAC-signed.

sourcesobjectOptionalRead-only
The possible sources of any events that can trigger the webhook and whether they are enabled.
urlstringOptionalRead-only
A valid URL for the Webhook.
signing_secretstringOptionalRead-only

The HMAC signing secret. Returned exactly once at creation. This should be stored securely; if lost, delete and recreate the webhook to obtain a new secret.