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

# Receive webhooks

> Subscribe to report and alert events and verify incoming signatures.

| Event | Trigger |
| - | - |
| [`report.ready`](https://docs.brello.app/sdk/api-reference/report-ready) | A weekly report snapshot is ready |
| [`alert.abuse`](https://docs.brello.app/sdk/api-reference/alert-abuse) | Usage matches an abuse alert rule |
| [`alert.model_change`](https://docs.brello.app/sdk/api-reference/alert-model-change) | A published model change matches recent live usage |

## Set up a destination

1. In your organization's **Notifications** settings, add a webhook destination under **Email and webhooks**. Enter your receiver's HTTPS URL on port 443. It must resolve to a public IPv4 address.
2. Save the signing secret when Brello displays it. It is shown once. Store it on your receiver as a server-side secret.
3. The destination must be enabled and have an active subscription to the selected events for the project. Creating the destination alone does not subscribe it to those events.

Delivery starts for new matching events after the subscription is activated.

## How Brello sends a webhook

When a subscribed event occurs, Brello sends a `POST` directly to your destination URL with `Content-Type: application/json`. The body contains `event`, `eventId`, `occurredAt`, and `data`. The `data` shape depends on the event listed above. Brello does not follow redirects.

```http theme={null}
POST /hooks/brello HTTP/1.1
Host: example.com
Content-Type: application/json
Brello-Event-Id: 7efe3c76-3a95-4da3-98d5-b0e70026b6b7
Brello-Timestamp: <Unix seconds at delivery>
Brello-Signature: v1=<64-character lowercase hex digest>

{
  "event": "alert.abuse",
  "eventId": "7efe3c76-3a95-4da3-98d5-b0e70026b6b7",
  "occurredAt": "2026-11-21T03:15:00Z",
  "data": {
    "projectId": "81660914-6c64-4e4e-81ba-39a8f344d68f",
    "alertId": "bded491d-7fee-4337-bf06-e3363fbb1e5b",
    "endUserId": "74b63c80-50cb-40ff-8497-bd0d706a3218",
    "externalUserId": "user_123",
    "rule": "limit",
    "currency": "USD",
    "amountMicros": "2400000",
    "thresholdMicros": "1000000",
    "period": {
      "from": "2026-11-21",
      "to": "2026-11-22",
      "timeZone": "UTC",
      "endExclusive": true
    }
  }
}
```

The timestamp and signature above are placeholders. In a real delivery, Brello signs the exact bytes it sends, which may have different whitespace from this example.

## Verify incoming requests

| Header | Value |
| - | - |
| `Brello-Event-Id` | UUID that stays the same across delivery attempts |
| `Brello-Timestamp` | Delivery timestamp as Unix seconds |
| `Brello-Signature` | `v1=` followed by 64 lowercase hexadecimal characters |

1. Read the raw request body before parsing JSON. Reject timestamps more than 300 seconds ahead of or behind your clock.
2. Compute HMAC-SHA256 over the timestamp header, a literal period, and the exact raw UTF-8 body bytes. Use the `signingSecret` string as the HMAC key without Base64URL decoding it.
3. Compare the lowercase hex digest to the value after `v1=` using a constant-time comparison. Reject requests if the signature fails verification.
4. Parse the verified body and check that its `eventId` matches `Brello-Event-Id`. Deduplicate using `eventId`. Return `2xx` after durably accepting the event and when you receive the same event again.

## Handle retries

Brello retries network failures, `429`, and `5xx` responses with exponential backoff, up to eight attempts within 23 hours. Other non-`2xx` statuses terminate delivery. The timestamp and signature change for each attempt. The event ID and JSON body stay the same. Your receiver may get duplicate or out-of-order deliveries.


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