Skip to main content
PATCH
Update / rotate a webhook

Authorizations

Authorization
string
header
required

Admin-issued Personal Access Token, e.g. Authorization: Bearer mega_<64 hex>. The key carries scopes (public_api:leads:read, public_api:leads:write, public_api:webhooks:manage) and is locked to one customer.

Headers

x-customer-id
string<uuid>
required

The customer this request acts on. Must match the customer your key is locked to.

Path Parameters

id
string<uuid>
required

Body

application/json
url
string<uri>
event_types
enum<string>[]
Available options:
lead.created
timeout_seconds
integer
Required range: 1 <= x <= 60
retry_attempts
integer
Required range: 0 <= x <= 10
description
string | null
is_active
boolean
rotate_secret
boolean

When true, a fresh signing secret is minted and returned once.

Response

The updated webhook (with secret only when rotated).

webhook
object
required
secret
string