Skip to main content

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
  1. An API key authorized for every company you want to subscribe to (Authentication).
  2. The ADMINISTRATOR permission on each of those companies (Permissions).
  3. A public https:// endpoint (no private/loopback IPs; use a tunnel like ngrok for local dev).

How they work​

  • HTTP delivery: DeePsy sends a POST with Content-Type: application/json and headers X-Webhook-Event, X-Webhook-ID, X-Webhook-Delivery, User-Agent: DeePsy-Webhooks/1.0, plus X-Webhook-Signature when signatures are enabled. Any 2xx response 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 authorized and which events it 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_retries between 0 and 5 (default 0). Every attempt is saved as a WebhookLog, and you can replay any failed log manually via POST /webhooks/logs/{log_id}/retry.

The 16 supported events​

CategoryEvents
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 WebhookLog fields
  • 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 502 retries