Webhooks
Webhooks notify your server in real time when events occur in Verifa. Configure a webhook URL in your organization settings to start receiving events.
Event types
Payload format
Signature verification
Every webhook request includes an X-Verifa-Signature header containing an
HMAC-SHA256 signature of the raw request body, signed with your webhook secret.
Always verify the signature before processing the event.
Node.js
Python
Retry behavior
If your endpoint returns a non-2xx status code or does not respond within 30 seconds, Verifa retries the delivery with exponential backoff:
After 5 failed retries, the event is marked as failed. Failed events can be viewed in the dashboard.
Testing webhooks
Use the test endpoint to send a test event to your configured URL:
Best practices
- Respond quickly. Return a
200status code as soon as you receive the event. Process the event asynchronously. - Handle duplicates. In rare cases (network issues, retries), you may
receive the same event more than once. Use the
session_idto deduplicate. - Verify signatures. Always validate the
X-Verifa-Signatureheader to prevent spoofed events.
Related
- Webhooks Guide — Comprehensive setup guide with code examples in 7 languages
- Errors — Error codes returned by webhook API endpoints
- Sessions — Session events and lifecycle