> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.mitu.ai/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.mitu.ai/_mcp/server.

# Configure webhooks

Webhooks let Mitu notify your systems as soon as something happens on your account, such as a payment completing, an invoice being paid or a customer's wallet being funded. Rather than repeatedly asking the API whether anything has changed, your application receives each event as it occurs and can act on it straight away.

Because webhooks often trigger important actions, such as fulfilling an order, your endpoint should confirm that every delivery genuinely came from Mitu and make sure that no event is acted on twice.

#### Create an endpoint in your application

Add an HTTPS endpoint to your application that accepts POST requests from Mitu. It should be publicly reachable and respond with a 2xx status as soon as it has accepted an event, leaving any slow work to run afterwards.

#### Register the endpoint in the dashboard

In the [Mitu dashboard](https://app.mitu.ai), select **Webhooks** under **Developer** and then **New webhook**. Enter the URL of your endpoint, give it a name you will recognise later and choose the events it should receive.

Subscribe only to the events your application acts on. A store that fulfils orders after payment, for example, may need nothing more than `payment.completed`. The [events reference](/platform/webhooks/events) describes every event and the data it carries.

#### Verify every delivery

Each endpoint has its own signing secret. Store it alongside your other secrets, and use it to check the signature Mitu sends in the X-Mitu-Signature header of every delivery before you trust its contents.

Verify against the raw request body exactly as it was received, check that the timestamp in the signature is recent, and compare signatures with a constant time comparison. [Verify signatures](/guides/get-started/webhooks/verify-signatures) walks through the process step by step, with code you can use.

#### Process each event once

Every event shares the same structure. The event field names what happened, and event_data contains the details of the payment, invoice or other record involved.

```json
{
  "event": "payment.completed",
  "event_id": "evt_a8f1zq5xkm2lcn6f",
  "event_created_at": "2026-09-09T14:22:57.003Z",
  "event_data": {}
}
```

If your endpoint does not return a 2xx response, Mitu retries the delivery up to five times with increasing delays, so the same event can arrive more than once. Record the event_id of each event you process, and acknowledge any repeat without acting on it again.

#### Monitor your deliveries

Every delivery Mitu makes is recorded under **Logs** in the dashboard, with the payload that was sent and whether it was delivered, is being retried or was abandoned after its final attempt. To test your endpoint end to end, complete a payment in the sandbox and confirm that the event arrives, passes verification and is processed once.

Your systems now hear about activity on your account as it happens. The [events reference](/platform/webhooks/events) lists every event Mitu sends, grouped by payments, invoices, subscriptions, customers and wallets.