Skip to main content

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
Webhook status
2. Receiver response
3
Outcomestatus: "retrying"
Server error, eligible for automatic retry. DeePsy schedules 3 automatic retries over 14 minutes (reusing the same X-Webhook-Delivery ID).
Attempt 1 (now)→Retry 1 (+2m)→Retry 2 (+4m)→Retry 3 (+8m)

Not receiving any events​

Check these in order:

  1. Inspect the webhook (GET /webhooks/{webhook_id}):
    • Is status set to "active"? (If not, update it with PUT /webhooks/{webhook_id}.)
    • Is the event in both the top-level events list and the target company's companies_id[].events?
    • Does the target company have authorized: true?
  2. Fix company authorization or events (with an ADMINISTRATOR key):
    • Re-authorize: POST /companies/{company_id}/webhooks/{webhook_id}/authorize with { "events": [...] }
    • Update events on an authorized company: PUT /companies/{company_id}/webhooks/{webhook_id}/events
  3. Check logs & API key: Look at GET /webhooks/logs/list?webhook_id={webhook_id} for failed attempts, and call GET /user/companies to confirm your key is still active and authorized for the company.
  4. Verify: Run POST /webhooks/{webhook_id}/test and confirm a 200 and a "success" log entry.

URL rejected (422 or 403)​

  • 422 on create/update: URL isn't https://, is over 500 characters, or fails validation.
  • 403 on POST /webhooks/{webhook_id}/test: either the webhook isn't authorized for company_id, or the hostname resolves to a private, loopback, or reserved IP. Point to a public https:// 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 2xx within 30 seconds (redirects aren't followed, so 3xx counts as failed).
  • Automatic retries only fire for network errors, 408, 425, 429, and 5xx (backoff: 2, 4, 8, 16, 32 min, up to max_retries). Other 4xx responses fail immediately.
  • Once your receiver is fixed, replay the delivery with POST /webhooks/logs/{log_id}/retry. (Retrying an already-success log returns 400.)

Can't regenerate secret (400) or secret is missing​

  • Suspended webhooks can't rotate secrets (400). Set status back to "active" via PUT /webhooks/{webhook_id} first, then call POST /webhooks/{webhook_id}/regenerate-secret.
  • secret is only ever returned once at creation (signature_enabled: true) or regeneration, never on GET or PUT.

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​

StatusWhereMeaning
400regenerate-secret, test, PUT .../events, logs/{log_id}/retrySuspended webhook, inactive or unsubscribed event, unauthorized company, or trying to retry a success log
401All routesBad or missing API key (error + error_code 4010–4013; see Authentication errors)
403POST /webhooks, /companies/{company_id}/webhooks*, POST .../testerror_code 4015 (key not authorized for company) or 4032 (missing ADMINISTRATOR). On test, can also mean URL blocked or webhook unauthorized for company_id
404Single-resource routesWebhook/log doesn't exist or belongs to another API key
422Create/update/authorize/testValidation error (non-HTTPS URL, unknown event, invalid max_retries, empty arrays, etc.)
502POST /webhooks/logs/{log_id}/retryRedelivery 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.