> ## Documentation Index
> Fetch the complete documentation index at: https://docs.artery.money/llms.txt
> Use this file to discover all available pages before exploring further.

# Webhooks

> Events Artery sends as money moves, how to verify them, and how retries work.

> [!NOTE]
>
> The Artery API is in draft and may change before launch. Build against the sandbox, and check back here for changes.

Artery sends a `POST` to your webhook endpoint for each event you subscribe to. You set up endpoints and choose events in your dashboard.

## The envelope

```json theme={null}
{
  "id": "evt_3f9c…",
  "type": "deposit.confirmed",
  "created_at": "2026-09-16T11:42:07.000Z",
  "data": { }
}
```

The event type is also in the `X-Artery-Event` header.

## Events

| Event | Sent when |
| - | - |
| `pin.created` | A PIN was created. |
| `pin.paid` | Easypay reported a PIN paid. |
| `deposit.confirmed` | The collection is booked. The net amount is in Pending, with its settlement due date. |
| `deposit.expired` | An unpaid PIN passed its 24-hour expiry. |
| `deposit.settled` | A collection settled into Available. |
| `funding.received` | A stablecoin deposit was credited to Available. |
| `withdrawal_destination.activated` | A wallet passed review and cooling-off, and can receive withdrawals. |
| `withdrawal_destination.revoked` | A wallet was removed. |
| `withdrawal.instructed` | A withdrawal was accepted and its total reserved. |
| `withdrawal.sent` | A withdrawal is on chain. |
| `withdrawal.failed` | A withdrawal failed and its total was released. |

The payload of each event is in the pages below.

## Verifying the signature

Every request carries an `X-Artery-Signature` header:

```
X-Artery-Signature: t=1795377989,v1=5257a869e7…
```

To verify it:

1. Take `t` (a Unix timestamp) and `v1` from the header.
2. Compute HMAC-SHA256 of `t + "." + raw request body`, using your endpoint's secret.
3. Compare the hex result with `v1` using a constant-time comparison.
4. Reject requests whose `t` is more than a few minutes old.

## Acknowledging and retries

Reply with any 2xx status within 15 seconds. Otherwise Artery retries up to 8 attempts in total, starting 30 seconds apart and doubling each time.

One endpoint never receives the same event twice, but de-duplicate on `id` anyway.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.