POST
cURL
Creates a webhook. The response includes its signing secret. An empty eventTypes sends every event, and an empty or missing domainIds covers every domain.
Needs an API key with full access. Not available to a key limited to one domain.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
url
string<uri>
required
eventTypes
enum<string>[]
required

The events sent to the URL. Empty means every email, contact and domain event. Mailbox, campaign and automation events are only sent when chosen by name.

Available options:
contact.created,
contact.updated,
contact.deleted,
domain.created,
domain.verified,
domain.updated,
domain.deleted,
email.queued,
email.sent,
email.delivery_delayed,
email.delivered,
email.bounced,
email.rejected,
email.rendering_failure,
email.complained,
email.failed,
email.cancelled,
email.suppressed,
email.opened,
email.clicked,
mailbox.message.received,
mailbox.message.sent,
mailbox.thread.assigned,
mailbox.thread.status_changed,
campaign.scheduled,
campaign.sent,
automation.run.started,
automation.run.completed,
automation.run.failed,
webhook.test
description
string
Maximum string length: 500
domainIds
string[]
Maximum array length: 500
Required string length: 1 - 64
secret
string

Your own signing secret. Made for you when left out.

Minimum string length: 16

Response

The new webhook, with its signing secret

id
string
required
url
string
required
description
string | null
required
status
enum<string>
required
Available options:
ACTIVE,
PAUSED,
AUTO_DISABLED
eventTypes
string[]
required
domainIds
string[]
required

Domain ids it is limited to; empty means every domain

deletedDomainCount
number
required

Domains it was limited to that have since been deleted

apiVersion
string | null
required
consecutiveFailures
number
required
lastFailureAt
string | null
required
lastSuccessAt
string | null
required
suspendedForPlanAt
string | null
required
createdAt
string
required
updatedAt
string
required
secret
string
required

The signing secret, whsec_...