Webhooks
Subscribe a webhook
/webhooksSubscribes an address to events (REST hooks, for Zapier, Make and n8n triggers). The signing secret is in this answer. Sending the same address, events and campaigns again with the same key returns that webhook and its secret instead of making a second one, so a retry never doubles deliveries.
Try itSend a real request with your API key
Headers
Idempotency-KeystringAny unique value up to 255 characters, like a UUID. The request runs once; repeats within 24 hours get the first answer, with Idempotent-Replayed: true. Up to 255 characters.
Body
urlstring or nullPublic https address to call. Up to 2,000 characters.
target_urlstring or nullAnother name for url (Zapier REST hooks). Up to 2,000 characters.
eventsarray of EventType or nullThe events to send. A comma-separated string also works.
eventone ofOne event, instead of events.
Inside it
One of these shapes:
Option 1: An event type
Option 2
campaignIdsarray of string or nullOnly events from these campaigns. Left out, null, an empty string or an empty list: every campaign. A comma-separated string of IDs also works. Up to 50.
namestring or nullUp to 60 characters.
Answer
201 Created The new webhook and its secret.
dataanyRequired
Errors
- 400 Bad request
invalid_requestinvalid_jsonduplicate_in_request - 401 Unauthorized
unauthorized - 404 Not found
not_foundnot_in_campaign - 409 Conflict
conflictidempotency_in_progressworkspace_busycampaign_finishedcampaign_without_listtag_limitlead_has_historycampaign_not_launchedcampaign_cannot_resumeambiguous_email - 422 Can’t process
idempotency_key_reused - 429 Too many requests
rate_limited - 500 Server error
server_error
Every error has the same shape. See Errors.