Skip to main content

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.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

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:

  1. Webhook level (events): set on POST /webhooks and updated with PUT /webhooks/{webhook_id}.
  2. Company level (companies_id[].events): set per company on POST .../authorize and updated with PUT .../events.

For an event to fire in production, all of these must hold at delivery time:

  • Webhook status is active
  • The event is in both the webhook's events and the company's events
  • 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}:

FieldTypeNotes
idintegerLog ID (pass as {log_id}; integer, not UUID)
webhook_iduuidWebhook ID
event_typestringEvent name
company_iduuidCompany ID
payloadobjectExact JSON envelope sent
http_status_codeinteger / nullStatus returned by your endpoint
response_bodystring / nullYour endpoint's response body (truncated to 8,000 chars)
response_time_msinteger / nullDelivery duration in ms
statusstring"success", "failed", or "retrying"
retry_countintegerRetries attempted so far
error_messagestring / nullError details on failure
next_retry_atdate-time / nullNext scheduled retry, if any
created_at / updated_atdate-timeTimestamps

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