Skip to main content
Every webhook Nudj sends — successful or not — is persisted to a dedicated log collection. You can query the log via the Admin API, or inspect it in the admin panel and re-trigger failed deliveries with one click.
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 2xx or 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:
Filters: 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 same id, 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.
Manual retries do not count against your configured maxRetries. Don’t loop retries programmatically — fix the root cause first, then retry.

Use cases

  • Debugging a broken handler: compare requestPayload with 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:
    1. 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 (attempts is 1 on every automatic row; a manual retry’s row has 2 or more and does not count), or when its first attempt answered something other than 429, 500, 502, 503 or 504. 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.
    2. Look at every attempt with the same requestPayload.id and webhookUrl, without the status filter: one delivery can have several failed rows, and a later attempt may have succeeded.
    3. 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 504 with the errorMessage “Webhook failed: Webhook dispatch timed out after 15000ms”, a manual retry as 500 with “Request timeout after 10000ms”. Check your own records for that id first, and keep done ids for as long as you might replay.
  • Auditing: prove to internal stakeholders that a specific event was delivered with the exact payload and response.

Retry semantics

If your endpoint answers 429, 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.

Troubleshooting

Diagnose common delivery failures.

Implementation Guide

Build a compliant handler from scratch.