Webhook events
DeePsy supports 16 webhook events across four categories. Call GET /webhooks/events with any valid API key to fetch the current list programmatically.
Event list
Email (6)
email.sentemail.deliveredemail.bouncedemail.droppedemail.openedemail.clicked
Campaign (3)
campaign.createdcampaign.updatedcampaign.archived
Candidate (5)
candidate.createdcandidate.questionnaire_completedcandidate.test_startedcandidate.test_completedcandidate.evaluation_completed
User (2)
user.createduser.invited
Payload envelope
Every outbound delivery (and every WebhookLog.payload) uses the same JSON envelope:
{
"event_id": "UUID per event occurrence",
"delivery_id": "UUID per webhook per occurrence",
"event": "candidate.evaluation_completed",
"webhook_id": "webhook UUID",
"timestamp": "2026-01-10T10:00:00+00:00",
"company_id": "company UUID",
"data": {}
}
The data object varies by event. The fastest way to inspect the exact fields for a given event is to fire a test call with POST /webhooks/{webhook_id}/test and read data_sent in the response (or payload in GET /webhooks/logs/{log_id}). See Testing.
How event subscriptions work
Subscriptions are checked at two levels:
- Webhook level (
events): set onPOST /webhooksand updated withPUT /webhooks/{webhook_id}. - Company level (
companies_id[].events): set per company onPOST .../authorizeand updated withPUT .../events.
For an event to fire in production, all of these must hold at delivery time:
- Webhook
statusisactive - The event is in both the webhook's
eventsand the company'sevents - The owning API key is still active and authorized for that company
If any of those stops being true, deliveries stop immediately and the log records Webhook authorization is no longer active.
Delivery log fields (WebhookLog)
Returned by GET /webhooks/logs/list and GET /webhooks/logs/{log_id}:
| Field | Type | Notes |
|---|---|---|
id | integer | Log ID (pass as {log_id}; integer, not UUID) |
webhook_id | uuid | Webhook ID |
event_type | string | Event name |
company_id | uuid | Company ID |
payload | object | Exact JSON envelope sent |
http_status_code | integer / null | Status returned by your endpoint |
response_body | string / null | Your endpoint's response body (truncated to 8,000 chars) |
response_time_ms | integer / null | Delivery duration in ms |
status | string | "success", "failed", or "retrying" |
retry_count | integer | Retries attempted so far |
error_message | string / null | Error details on failure |
next_retry_at | date-time / null | Next scheduled retry, if any |
created_at / updated_at | date-time | Timestamps |
Next steps
- Setup - Create webhooks and manage company subscriptions
- Security - Verify
X-Webhook-Signature - Testing - Send test events and inspect
data_sent - Troubleshooting - Debug missing or failing deliveries