Skip to main content
POST
Signs every delivery of a webhook (first send and retries) with the Standard Webhooks scheme. Works for user, client and campaign webhooks. The webhook id is the one from Create Webhook or Get Campaign Webhooks.
  • POST turns signing on. SmartLead generates the secret, or stores yours if you send signing_secret.
  • POST ?rotate=true replaces an existing secret straight away (the old secret stops working at once).
  • DELETE turns signing off.
The secret is returned in the response. Store it: it is also shown on Get Campaign Webhooks, but never in logs. Who can manage signing: the account owner, team members with admin or full member access, and clients with full access. Others get 403.

Path Parameters

integer
required
Webhook id (positive integer)

Query Parameters

string
required
Your SmartLead API key
boolean
POST only. true replaces a secret that is already set. Without it, a webhook that already has a secret returns 409.

Request Body

All fields are optional. Any other field returns 400.
string
Your own secret instead of a generated one. Must be whsec_ followed by standard base64 that decodes to 24 to 64 bytes.
boolean
A webhook uses either a signing secret or JWT, never both. If JWT is on, true turns JWT off and the secret on in one step; without it you get 409 AUTH_METHOD_CONFLICT.

Turn off signing

DELETE https://server.smartlead.ai/api/v1/webhook/{webhook_id}/signing-secret takes no body and no rotate. It returns {"ok": true}, or 404 when the webhook is not yours.

Verify a delivery

Signed deliveries carry three headers: The signed text is {webhook-id}.{webhook-timestamp}.{raw request body}. The HMAC key is the secret after whsec_, base64-decoded. Any Standard Webhooks library verifies this for you:
Python
Node.js
Verify against the raw body bytes you received, before any JSON parsing, and reject old timestamps to stop replays.