Webhooks
Webhooks push events from DeePsy to your HTTPS endpoint as they happen, so you don't have to poll the API. Creating webhooks, managing company authorizations, sending test events, reading delivery logs, and replaying failures all run through the public API at https://deepsy.fr/api/v1 using your normal bearer API key.
What you need first
- An API key authorized for every company you want to subscribe to (Authentication).
- The
ADMINISTRATORpermission on each of those companies (Permissions). - A public
https://endpoint (no private/loopback IPs; use a tunnel like ngrok for local dev).
How they work
- HTTP delivery: DeePsy sends a
POSTwithContent-Type: application/jsonand headersX-Webhook-Event,X-Webhook-ID,X-Webhook-Delivery,User-Agent: DeePsy-Webhooks/1.0, plusX-Webhook-Signaturewhen signatures are enabled. Any2xxresponse counts as delivered. Deliveries time out after 30 seconds and don't follow redirects. - Multi-company: One webhook can listen to one or more companies. Each company entry tracks whether it's
authorizedand whicheventsit receives. Company admins can add, change, revoke, or deny their company later. - Ownership: Webhooks belong to the API key that created them, and actions are attributed to the key's creator (see creator attribution). Reading, updating, deleting, testing, rotating secrets, and viewing/retrying logs all require the owning key.
- Retries & logs: Set
max_retriesbetween0and5(default0). Every attempt is saved as aWebhookLog, and you can replay any failed log manually viaPOST /webhooks/logs/{log_id}/retry.
The 16 supported events
| Category | Events |
|---|---|
| Email (6) | email.sent, email.delivered, email.bounced, email.dropped, email.opened, email.clicked |
| Campaign (3) | campaign.created, campaign.updated, campaign.archived |
| Candidate (5) | candidate.created, candidate.questionnaire_completed, candidate.test_started, candidate.test_completed, candidate.evaluation_completed |
| User (2) | user.created, user.invited |
Next steps
- Setup - Create, update, and authorize webhooks
- Events - Event catalogue, payload envelope, and
WebhookLogfields - Security - HMAC-SHA256 signatures, secret rotation, and URL rules
- Testing - Fire test events, read delivery logs, and replay failures
- Troubleshooting - Fix missing events, blocked URLs, and
502retries