Skip to main content

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.
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

  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.