---
title: Testing webhooks
description: Send a real delivery to your endpoint on demand, then read what happened in the delivery log.
progress: in-progress
---

You do not have to place an order to find out whether your endpoint works.

## Send a test event

Pick an event type in [the console](https://partner.btcdirect.eu/console) and we POST it to that endpoint straight
away. The payload is built the same way a live one is, from the event type's
own field examples and your endpoint's contract, and it is signed with your
endpoint's own live key.

That last part is what makes the test worth running. Accepting it means your
signature check, your parser and your handler all worked on the real thing, not
on a fixture with a different shape or a test key you never use in anger.

You get the result inline: what your endpoint answered, how long it took, and
the exact payload we sent.

> **A test send is not a delivery**
>
> It is one attempt and it is never retried, so a timeout tells you your handler
> is slow rather than starting a schedule. It is not recorded either: a test send
> does not appear in the delivery log below, and it changes no order.

## Read the delivery log

Every real delivery is recorded per endpoint, over the last 7, 30 or 90 days.

- **pending** — Queued or waiting on its next retry. A delivery sits here between attempts.
- **sent** — You answered 2xx.
- **failed** — The schedule ran out without a 2xx. The last error is on the row.

Each row carries the attempt count, how long your endpoint took to answer and
the last error we saw, so a handler that is failing intermittently looks
different from one that has never worked.

Alongside it you get the totals for the window: how many were sent and failed,
the average response time and the 95th percentile. The percentile is the useful
one when you are chasing timeouts, because a handler that is usually fast and
occasionally not shows up there and nowhere else.

## Resend one

Any delivery that reached `sent` or `failed` can be resent from the log. It
goes back in the queue as if it were new, the retry counter resets, and it
arrives as an ordinary delivery.

That is the repair for an outage on your side: rather than reconciling by hand
against the API, resend the ones you missed.

> **A resend is a duplicate**
>
> The payload is the one we built originally, so it carries the same timestamp
> and identifies the same event. If your handling is idempotent this is a no-op
> where it already succeeded, which is exactly why it is safe to resend a range
> without checking each one first.

## Test the whole flow

The console tells you your endpoint accepts what we send. It does not tell you
your integration is right, because nothing has moved through the platform.

A [sandbox](https://partner.btcdirect.eu/v2/sandbox.md) that runs a full order against simulators is coming soon.
Until then, ask your account manager how to test a full flow.
