# Webhooks.

> We post an event to your endpoint when a transaction changes. Set endpoints and choose their events in the dashboard, under Webhooks.

## Events

- `rebate.paid`: A rebate payment was sent on-chain.
- `transaction.protected`: A transaction was included privately.
- `transaction.reverted`: A transaction was included and its own execution failed.
- `transaction.dropped`: A transaction would have reverted, so revert protection kept it out of the block.

**See also**: [Transaction](https://www.mevlabs.xyz/docs/transaction.md)

## What is posted

A JSON body with the event's name, when it happened as a Unix timestamp in milliseconds, and the transaction object as it is after the change.

POST to your endpoint

```
{
  "id": "evt_2b7c…",
  "event": "rebate.paid",
  "createdAt": 1763286123082,
  "data": { "hash": "0x9fc3…c8e0", "status": "rebated", … }
}
```

**See also**: [Transaction](https://www.mevlabs.xyz/docs/transaction.md)

## Checking the signature

Each request carries four headers: the event's name in `MEVLabs-Event`, its id in `MEVLabs-Event-Id` (the same as `id` in the body, and the same on every endpoint and on a retry), when it was sent in `MEVLabs-Timestamp` (a Unix timestamp in seconds), and its signature in `MEVLabs-Signature`. The request is signed with the endpoint's signing secret, shown once when the endpoint is created. Compute an HMAC-SHA256, with that secret as the key, of the `MEVLabs-Timestamp` header, a dot and the raw body, write it in hex, and compare it with what follows `v1=` in `MEVLabs-Signature`.

Headers

```
MEVLabs-Event: rebate.paid
MEVLabs-Event-Id: evt_2b7c…
MEVLabs-Timestamp: 1763286123
MEVLabs-Signature: v1=5d41…c2a9
```

## Answering

Answer with any 2xx within ten seconds. Anything else, or no answer, counts as failed and is tried again later. The dashboard lists every delivery with what your endpoint answered, and a failed one can be sent again from there. Use the event's id to ignore one you have already handled.

---

Page: https://www.mevlabs.xyz/docs/webhooks · [All pages](https://www.mevlabs.xyz/llms.txt)
