Register a webhook
Webhooks
Register a webhook
Registers a webhook URL for lead.created events. The URL is SSRF-validated (must be public HTTPS). The signing secret is returned EXACTLY ONCE — store it. Requires the public_api:webhooks:manage scope.
POST
Register a webhook
Authorizations
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
The customer this request acts on. Must match the customer your key is locked to.
Body
application/json
Public HTTPS URL. Validated against SSRF before it is stored.
Available options:
lead.created Required range:
1 <= x <= 60Required range:
0 <= x <= 10