PATCH
cURL
Changes a webhook’s URL, description, events or domains, pauses it or turns it back on (status), or makes a new signing secret (rotateSecret). The secret is in the response only when you rotate or set it.
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.

Path Parameters

webhookId
string
required
Minimum string length: 1
Example:

"clx1234567890"

Body

application/json
url
string<uri>
description
string | null
Maximum string length: 500
eventTypes
enum<string>[]

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
domainIds
string[]
Maximum array length: 500
Required string length: 1 - 64
rotateSecret
boolean

Make a new signing secret, returned in the response

secret
string
Minimum string length: 16
status
enum<string>

Pause it, or turn it back on

Available options:
ACTIVE,
PAUSED

Response

The updated webhook. The signing secret is included only when rotateSecret or secret was sent.

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