Toggle Webhook
PATCHhttps://public.leadpattern.com/v2/webhook/:webhookId/toggle
Pause an active webhook, or re-activate an inactive one. Re-activating resets the failure counter — use it after fixing an endpoint that was auto-disabled (disabledReason: failing). Returns 402 if re-activating would exceed your plan's webhook limit.
- Enabling sends a signed test event first — the endpoint must answer with a 2xx or the webhook stays disabled (422). Disabling never checks.
- Re-enabling a webhook resets its failure counter, including one auto-disabled after repeated failures (disabledReason: failing).
Headers
1 fieldAuthorizationstringrequired
Your API key. Sent raw (e.g. 'lp_...'). No Bearer prefix required.
Path Parameters
1 fieldwebhookIdstringrequired
Webhook ID.
Responses
JSON Response
{
"type": "success",
"data": {
"id": "664abc123def456789012345",
"name": "My Webhook",
"isActive": true,
"disabledReason": null,
"failureCount": 0
}
}Sample Request Body
{
"webhookId": "664abc123def456789012345 (path parameter)"
}
