Delivery logs are organisation-scoped. Reading them needs an Admin API token whose role can read platform settings; retrying a delivery needs permission to update them.
When are logs written?
Nudj writes a log record each time it attempts to deliver a webhook:- On the first attempt, whether the endpoint returns
2xxor not. - On each automatic retry (see Retry semantics).
- On each manual retry, from the admin or through
POST /webhooks/logs/{id}/retry.
Log record shape
requestPayload is the exact body Nudj sent, including its id; responseData is your response body, or null. Request and response headers are not stored, so a secret sent only in a header stays out of the log. The URL and your response body are stored, so keep secrets out of the webhook URL and out of what your endpoint sends back.
Query logs via the API
Use the Admin API endpoint to page through recent delivery attempts:status (success or failure), eventSubCategory, startDate and endDate (ISO date-times), plus limit (1-100, default 10) and skip. Newest first. See GET /webhooks/logs.
Retry a failed delivery
In the admin, open Settings → Developer → Webhooks, find the row in Webhook Logs, open it and press Retry Webhook (shown on failed rows only). Nudj resends the stored payload, with the sameid, to the URL it was first sent to. It adds the webhook’s current custom headers only if a webhook on that event still points at that URL, waits up to 10 seconds, and writes a new log row whose attempts is the original’s plus one.
Use cases
- Debugging a broken handler: compare
requestPayloadwith what your handler received. Check if a reverse proxy, payload size limit, or JSON parser is stripping fields. - Replaying events after downtime: your endpoint was down for 10 minutes? Filter logs with
status=failure(Failed in the admin) for that window, then for each delivery:- Wait until Nudj’s automatic retries for it are done. A queued retry has no log row until it runs, and a manual retry does not cancel it, so replaying earlier can deliver the event twice. They are done once an attempt succeeded, once the delivery has
maxRetries+ 1 automatic rows (attemptsis1on every automatic row; a manual retry’s row has2or more and does not count), or when its first attempt answered something other than429,500,502,503or504. A queued retry skipped because the webhook was switched off or the monthly quota ran out writes no row, so step 3’s check of your own records still matters. - Look at every attempt with the same
requestPayload.idandwebhookUrl, without the status filter: one delivery can have several failed rows, and a later attempt may have succeeded. - Retry it once, and only if none of its attempts succeeded. A timeout only means Nudj stopped waiting, so your handler may still have finished: an automatic attempt logs it as
504with theerrorMessage“Webhook failed: Webhook dispatch timed out after 15000ms”, a manual retry as500with “Request timeout after 10000ms”. Check your own records for thatidfirst, and keep done ids for as long as you might replay.
- Wait until Nudj’s automatic retries for it are done. A queued retry has no log row until it runs, and a manual retry does not cancel it, so replaying earlier can deliver the event twice. They are done once an attempt succeeded, once the delivery has
- Auditing: prove to internal stakeholders that a specific event was delivered with the exact payload and response.
Retry semantics
If your endpoint answers429, 500, 502, 503 or 504, does not answer within 15 seconds (logged as 504), or cannot be reached (logged as 500), Nudj queues the delivery and tries again up to maxRetries more times (3 by default). Nudj sets no delay of its own; the gaps follow the queue’s default retry backoff. Any other answer to the first attempt is not retried.
Every attempt, automatic or manual, gets its own log row, so you can trace the delivery timeline per event.
Related
Troubleshooting
Diagnose common delivery failures.
Implementation Guide
Build a compliant handler from scratch.

