Set up a destination
- 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.
- Save the signing secret when Brello displays it. It is shown once. Store it on your receiver as a server-side secret.
- 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.
How Brello sends a webhook
When a subscribed event occurs, Brello sends aPOST 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.
Verify incoming requests
- Read the raw request body before parsing JSON. Reject timestamps more than 300 seconds ahead of or behind your clock.
- Compute HMAC-SHA256 over the timestamp header, a literal period, and the exact raw UTF-8 body bytes. Use the
signingSecretstring as the HMAC key without Base64URL decoding it. - Compare the lowercase hex digest to the value after
v1=using a constant-time comparison. Reject requests if the signature fails verification. - Parse the verified body and check that its
eventIdmatchesBrello-Event-Id. Deduplicate usingeventId. Return2xxafter 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.