Troubleshoot failed Dosya webhook deliveries
Diagnose webhook reachability, signatures, timeouts, HTTP responses, retries, auto-disablement, duplicates, redelivery, and secret rotation.
Last reviewed
Use the endpoint’s Deliveries table and the receiver log for the same delivery. The table identifies event, creation time, status, response, attempts and next retry; the receiver should log the nonsecret event and delivery IDs. Never diagnose a signature failure by turning verification off on a production endpoint.

Steps
- Open Integrations → Webhooks in the workspace that owns the endpoint.
- Confirm the card is Active and includes the expected event:
file.uploaded,file.deleted, orshare.accessed. - Expand Deliveries, open the failed row and record its event type, delivery/event identifiers, response status, attempts, next retry, error and sanitized response snippet.
- Compare the row’s attempt time with your receiver and edge/proxy logs. No incoming request points to URL/DNS/SSRF validation, connectivity or an upstream proxy; an incoming request with rejection points to receiver verification or processing.
Webhook administration requires workspace membership plus manage_settings. Built-in owners and administrators qualify. A missing Webhooks control or 403 You don’t have permission to manage webhooks must be fixed through the workspace role; rotating a key does not widen that member permission.
Match the failure to the receiver boundary
| Symptom | Recovery |
|---|---|
| URL creation/edit returns Endpoint URL not allowed: … | Use a public HTTPS receiver. Localhost, private-network and disallowed DNS/address targets are rejected at registration and delivery. |
| Receiver gets no POST | Verify the saved URL, public DNS and TLS, proxy route, firewall and whether the endpoint is Active. Check for a recorded URL-validation error in the delivery. |
| Receiver returns 3xx | Configure the final stable HTTPS URL. Dosya follows at most one allowed redirect; a second redirect is recorded as failure. |
| Delivery times out | Acknowledge after authentication and durable queueing. The receiver has 10 seconds; perform long work asynchronously. |
| Response is 4xx/5xx | Read receiver logs for X-Dosya-Delivery-Id; correct that route and return any 2xx only after acceptance. Every non-2xx is a failed attempt. |
| Signature mismatch | Verify the untouched request bytes with the endpoint’s current whsec_… secret. Do not parse/reformat JSON before computing HMAC. |
| Endpoint says Auto-disabled after repeated failures | Fix and test the receiver, then choose Re-enable. Re-enabling clears the consecutive-failure counter but does not repair old failed work. |
| Event processed twice | Deduplicate on the envelope event id. Retries keep that event identity; a manual redelivery creates a new delivery row for the same event/payload. |
Dosya signs timestamp + "." + raw_body with HMAC-SHA256. The header is X-Dosya-Signature: t=TIMESTAMP,v1=LOWERCASE_HEX_HMAC. Compare the digest in constant time and reject timestamps more than 300 seconds from your receiver clock. Also record X-Dosya-Event-Id, X-Dosya-Event-Type, and X-Dosya-Delivery-Id; none of those headers is a replacement for signature verification.
If Roll secret was used, the old secret stopped working immediately. Update the receiver with the newly revealed value; there is no overlap period. A lost reveal requires another rotation. Keep signatures and secrets out of request logs.
Understand retry timing
A delivery has six total attempts: the first runs immediately, followed after failures by 30 seconds, 2 minutes, 10 minutes, 1 hour and 6 hours. Scheduling/network work can add delay. After the sixth failed attempt the delivery stays failed.
Fifteen consecutive failed attempts across events auto-disable the endpoint. Any successful attempt resets that consecutive run. Re-enable only after a controlled test can succeed, or the endpoint will begin failing again.
The receiver response body retained in Dosya is limited to 500 characters. Return a short neutral acknowledgement; credentials, stack traces and private content should not be copied into that response.
Send a controlled test
Select Send test event. This creates a synthetic file.uploaded event whose data includes test: true, file ID test_file, name test.txt, and size 12. It is sent even if the endpoint subscribes only to another event, so the receiver should recognize the test flag rather than treating it as production content.
The toast Test event sent confirms only that the test was queued. Refresh Deliveries and wait for success, then verify the receiver stored exactly one authenticated event. Test and manual-redelivery routes each allow 20 calls per user per 300 seconds; a 429 response supplies a Retry-After to honor.
After the synthetic test, trigger one harmless event that the endpoint actually subscribes to. Confirm the event’s workspace and payload metadata, then check that downstream work happened once.
Redeliver safely
Use Redeliver only after checking whether the original request already changed downstream state. A timeout or lost response can leave the receiver successful while Dosya recorded failure. Search by event ID first, make the handler idempotent, and then queue one redelivery. The UI message Redelivery queued — A new delivery attempt has been scheduled. is not the final delivery result; inspect the new row.
Deleting the endpoint permanently removes its delivery history and cannot recall payloads already received. Preserve nonsecret evidence before deletion. Secret rotation is also immediate and irreversible for the old secret.

Expected result
A fresh test delivery reaches the intended HTTPS endpoint, passes raw-body signature verification once, returns a successful response before the timeout, and does not create a duplicate side effect.
Escalate with correlated evidence
Provide the endpoint ID, event and delivery IDs, event type, UTC/local attempt time, response status, attempt count, sanitized snippet/error, receiver framework, and whether the request reached your edge and application. Do not include the signing secret, full signature, authorization headers, private payload fields or credentials.
Related guides
Was this helpful?
Loading helpfulness results…
Voting saves a necessary ballot cookie for up to 180 days so you can change your answer.
Questions and replies
Ask about the steps in this guide. Questions are reviewed before publication.
Keep account details, credentials and private files out of public questions. Use private support for those.
Loading questions…
Sign in to your Dosya account to ask a question.