Lead webhooks
Webhooks tell your systems when a lead reaches a terminal status, so you do not need to poll the API.
Set up
Section titled “Set up”- Open Settings in the dashboard and find the webhook configuration. See Account webhooks.
- Enter an HTTPS URL for your endpoint.
- Enter a secret of at least 32 characters. Pingdex uses it to sign each request.
- Save the configuration.
Events
Section titled “Events”| Event | Sent when |
|---|---|
lead.delivered |
The lead reaches the delivered status. |
lead.failed |
The lead reaches the failed status. |
lead.indeterminate |
The lead reaches the indeterminate status. |
Request
Section titled “Request”Pingdex sends a POST request with a JSON body to your URL. The Signature header lets you check the request came from Pingdex.
Payload
Section titled “Payload”| Field | Description |
|---|---|
event_id |
Unique identifier of this event. |
event |
The event name, for example lead.delivered. |
lead_id |
The Pingdex lead ID. |
external_id |
Your external_id, if you supplied one. |
status |
The lead status. |
campaign_id |
The campaign the lead belongs to. |
commercial_status |
accepted, rejected, unknown or null. |
sale_amount |
The confirmed sale amount, if there is one. |
reporting_currency |
The currency of sale_amount. |
provider_id |
The provider the lead was sent to. |
occurred_at |
When the event occurred. |
{ "event_id": "e7b2c9d4-1f36-4a58-8c0d-3b5a6e7f8091", "event": "lead.delivered", "lead_id": "a91d3f6e-2b7c-4c85-8e10-d4f5a6b7c8d9", "external_id": "web-2026-000123", "status": "delivered", "campaign_id": "3e1a7c52-9b04-4d68-a2f1-6c8d0e5b7a93", "commercial_status": "accepted", "sale_amount": "18.50", "reporting_currency": "GBP", "provider_id": "0b6f1e2a-3c4d-4e5f-8a9b-1c2d3e4f5a6b", "occurred_at": "2026-12-04T14:32:07Z"}Verify the signature
Section titled “Verify the signature”The Signature header is the lowercase hexadecimal HMAC-SHA256 digest of the raw request body, calculated with your webhook secret. There is no prefix.
- Read the raw body exactly as received, before any JSON parsing.
- Calculate the HMAC-SHA256 of that body using your secret, as a hex digest.
- Compare the result with the
Signatureheader using a constant-time comparison. - Reject the request if they do not match.
See Account webhooks for the header format and Security for guidance on secrets.
Delivery and retries
Section titled “Delivery and retries”Pingdex makes up to three delivery attempts for each event. Make your endpoint respond quickly, and process events idempotently. Use event_id to recognise an event you have already handled.