Webhooks let you register a callback URL once and receive a POST with the full job results the moment an asynchronous job finishes — no polling. The delivery is self-contained: everything the bulk status endpoint would return is in the payload.
Events
Each delivery is an HTTP POST to your URL with a JSON body:
The payload uses the same data / meta envelope as every other endpoint, plus the webhook’s own event and timestamp on top. data is the results array — exactly what the matching bulk status endpoint (email / phone) returns under its data key, so you never have to poll. meta is the job summary: job_id, status, counts (total / processed / found / not_found), amount_charged in USD, and error when status is error. The bulk status endpoint stays available to re-fetch by job_id — results are retained for 24 hours.
data is present on both success and failure deliveries. When status is error it is an empty array and meta.error describes what went wrong.
Headers sent with every delivery:
Verifying signatures
Every webhook is signed with your webhook’s secret. If you don’t provide one at registration, a cryptographically strong secret is generated for you — it is returned by the create and get endpoints.
The signature is base64(HMAC_SHA256(secret, raw_body)). Always compute it over the raw request bytes, before any JSON parsing, and compare in constant time:
Reject deliveries with a missing or invalid signature. The signature is your only guarantee the payload came from Generect.
Retries and timeouts
Respond 2xx immediately and process the payload asynchronously — a handler slower than 30 seconds counts as a failed attempt.
Testing
Send a test delivery to any registered webhook with POST /webhooks/{id}/test/ — it fires a webhook.test event through the same delivery pipeline, signature included.