Webhook troubleshooting
Quick fixes for the most common webhook issues. All calls use https://deepsy.fr/api/v1 with Authorization: Bearer deepsy-dev-{your-api-key}.
Simulate delivery & retries
Delivery & retry simulator
Toggle webhook state and receiver responses to see whether DeePsy dispatches, drops, or schedules retries.
1. Dispatch gate
2. Receiver response
Not receiving any events
Check these in order:
- Inspect the webhook (
GET /webhooks/{webhook_id}):- Is
statusset to"active"? (If not, update it withPUT /webhooks/{webhook_id}.) - Is the event in both the top-level
eventslist and the target company'scompanies_id[].events? - Does the target company have
authorized: true?
- Is
- Fix company authorization or events (with an
ADMINISTRATORkey):- Re-authorize:
POST /companies/{company_id}/webhooks/{webhook_id}/authorizewith{ "events": [...] } - Update events on an authorized company:
PUT /companies/{company_id}/webhooks/{webhook_id}/events
- Re-authorize:
- Check logs & API key: Look at
GET /webhooks/logs/list?webhook_id={webhook_id}for failed attempts, and callGET /user/companiesto confirm your key is still active and authorized for the company. - Verify: Run
POST /webhooks/{webhook_id}/testand confirm a200and a"success"log entry.
URL rejected (422 or 403)
422on create/update: URL isn'thttps://, is over 500 characters, or fails validation.403onPOST /webhooks/{webhook_id}/test: either the webhook isn't authorized forcompany_id, or the hostname resolves to a private, loopback, or reserved IP. Point to a publichttps://endpoint (or an HTTPS tunnel like ngrok for local testing).
Deliveries failing or 502 on manual retry
Fetch the log with GET /webhooks/logs/{log_id} (integer log_id) and check http_status_code, error_message, response_body, and response_time_ms.
A few things to keep in mind:
- Your endpoint must return a
2xxwithin 30 seconds (redirects aren't followed, so3xxcounts as failed). - Automatic retries only fire for network errors,
408,425,429, and5xx(backoff: 2, 4, 8, 16, 32 min, up tomax_retries). Other4xxresponses fail immediately. - Once your receiver is fixed, replay the delivery with
POST /webhooks/logs/{log_id}/retry. (Retrying an already-successlog returns400.)
Can't regenerate secret (400) or secret is missing
- Suspended webhooks can't rotate secrets (
400). Setstatusback to"active"viaPUT /webhooks/{webhook_id}first, then callPOST /webhooks/{webhook_id}/regenerate-secret. secretis only ever returned once at creation (signature_enabled: true) or regeneration, never onGETorPUT.
Webhook suddenly returns 404
Calling DELETE /companies/{company_id}/webhooks/{webhook_id}/deny removes the company and automatically deletes the webhook if no authorized company remains. Also check you're using the owning API key. To pause a company without deleting the webhook, use /revoke instead of /deny.
Common HTTP errors
| Status | Where | Meaning |
|---|---|---|
400 | regenerate-secret, test, PUT .../events, logs/{log_id}/retry | Suspended webhook, inactive or unsubscribed event, unauthorized company, or trying to retry a success log |
401 | All routes | Bad or missing API key (error + error_code 4010–4013; see Authentication errors) |
403 | POST /webhooks, /companies/{company_id}/webhooks*, POST .../test | error_code 4015 (key not authorized for company) or 4032 (missing ADMINISTRATOR). On test, can also mean URL blocked or webhook unauthorized for company_id |
404 | Single-resource routes | Webhook/log doesn't exist or belongs to another API key |
422 | Create/update/authorize/test | Validation error (non-HTTPS URL, unknown event, invalid max_retries, empty arrays, etc.) |
502 | POST /webhooks/logs/{log_id}/retry | Redelivery attempted, receiver didn't return 2xx |
Full API error reference: Error handling.
Still stuck? Email dev@deepsy.fr (or use deepsy.fr/contact) with the webhook_id, the integer log id, and the failing response body.