Delivery & retries

How to reply to a webhook, what Prembly does when a delivery fails, and how to find and resend deliveries you missed.

Respond quickly

Reply as soon as the signature checks out, and do the real work in a background job. Prembly waits 10 seconds for a reply.

ProductCounts as deliveredRedirects
Workflow runsAny 2xxNot followed: a 3xx is a failure
Everything else200 onlyFollowed

A body in your reply is optional and ignored, apart from being stored in the delivery log (first 1,000 characters).

Retries

What happens when a delivery fails depends on the product.

ProductAutomatic retries
SDK sessionsUp to 5 attempts in total within 24 hours of the session finishing. After a failure Prembly waits about 30 minutes, then 1 hour, 3 hours and 6 hours. A session is never retried once a delivery has succeeded.
Workflow runsUp to 5 attempts: right away, then after 1 minute, 5 minutes, 30 minutes and 2 hours. Retried only when your server times out, can't be reached, or replies 5xx, 408, 425 or 429. Any other 4xx stops retries.
Everything elseNone. Each event is sent once.

For events that are sent only once, don't rely on the webhook alone. Have a scheduled job that fetches any results you're still waiting for from the API.

Handle duplicates

You can receive the same event more than once: from a retry, from a resend in the dashboard, or from someone replaying a captured request. Make processing idempotent by recording a key for each event you've handled and skipping repeats.

EventUse as the key
Workflow runevent_id
SDK sessiondata.widget_info.session_id
Transaction monitoringdata.event + screening_result.transaction_id
Creditevent + data.application_id
Everything elseprembly-reference header

Events can also arrive out of order, for example transaction.released before case.resolved. Use the status in each payload, and when you confirm with the API, use that state instead of the order of arrival.


Delivery logs and resending

Webhook Logs

Open Integration Logs (/dashboard/integrations/api-logs?tab=webhook-logs) and select the Webhook Logs tab. You'll see each delivery from the last 7 days with Sent At, Reference ID, Status, HTTP status and Retries.

  • View Details shows the URL, response time, error message, the payload sent and your endpoint's response.
  • Resend Webhook sends the same payload to the same URL again, immediately.

Logs cover SDK sessions and workflow runs that have an SDK session. Other events don't appear here and can't be resent from the dashboard.

To resend an SDK session from its report instead, go to SDK → Reports, open the row's menu on a completed session, and choose Retrigger Webhook.

Find and resend undelivered SDK sessions by API

If your server was down, you can fetch the SDK sessions whose webhook never arrived and resend them. Authenticate with your secret key in X-API-Key. Results are limited to the environment of the key you use.

List undelivered sessions

GET /api/v1/checker-widget/sdk/sessions/undelivered/?page=1&page_size=20 HTTP/1.1
Host: api.prembly.com
X-API-Key: your_secret_api_key

Each session has webhook.reason:

  • never_sent: no delivery was attempted;
  • delivery_failed: every attempt failed, timed out or couldn't connect.

Add include_payload=true to get the body that was sent. page_size is capped at 100. To get one session, call GET /api/v1/checker-widget/sdk/sessions/undelivered/{session_id}/.

Resend one session

POST /api/v1/checker-widget/sdk/sessions/{session_id}/resend-webhook/ HTTP/1.1
Host: api.prembly.com
X-API-Key: your_secret_api_key
{
  "session_id": "550e8400-e29b-41d4-a716-446655440000",
  "session_status": "completed",
  "webhook_url": "https://api.yourcompany.com/webhooks/prembly/…",
  "delivery": {
    "status": "success",
    "http_status_code": 200,
    "sent_at": "2026-11-19T12:00:00+00:00",
    "error_message": null
  }
}

You can resend the same session once every 30 seconds.

HTTP statusMeaning
404No such session in this environment.
400The session hasn't finished, or no webhook URL is configured.
429You resent this session less than 30 seconds ago.
502The session report couldn't be loaded, or your endpoint didn't accept the delivery.

Troubleshooting

SymptomLikely cause
Signatures never matchYou're hashing a parsed and re-serialised body. Hash the raw bytes. Also check you're using the public key, not the secret key, and the right environment's key (see Check the signature).
Signatures stopped matchingSomeone regenerated the public key. Update it on your webhook server.
SDK webhooks keep being retried even though you received themYour endpoint replies 201, 202 or 204. Reply 200.
Nothing arrivesNo webhook URL is saved, the URL isn't publicly reachable over HTTPS, or (for workflows) the address resolves to a private network. Check Webhook Logs for errors.
Requests time outYour endpoint does the work before replying. Reply 200 first and process in the background.
Workflow webhooks fail but other events workYour URL redirects (for example http → https or a missing trailing slash). Workflow deliveries don't follow redirects; save the final URL.

On this page

Prembly Slack Community

Join our developer Slack channel for real-time integration support, engineering updates, and direct Q&A with the Prembly team.

Join Slack Channel