Documentation Index
Fetch the complete documentation index at: https://docs.brale.xyz/llms.txt
Use this file to discover all available pages before exploring further.
Brale webhooks
Brale webhooks let your application receive real-time notifications when important events happen in Brale. Instead of polling Brale APIs to check whether a transfer or payment has completed, you can register an HTTPS endpoint and Brale willPOST a signed event to your application as soon as the event occurs.
Use webhooks to:
- Update your internal ledger when a transfer completes
- Notify your users when money movement settles
- Reconcile completed transfers or payments
- Trigger downstream workflows without polling
- Build real-time dashboards for operations and treasury teams
How webhooks work
At a high level:- You create a webhook subscription for your Brale account.
- Brale returns a
sharedSecretone time. - You store the
sharedSecretsecurely. - When a subscribed event occurs, Brale sends an HTTPS
POSTto your endpoint. - Your application verifies the HMAC signature using the exact raw request body.
- Your application processes the event idempotently.
- Your endpoint returns a
2xxresponse to acknowledge delivery.
Supported events
Use the event type discovery endpoint to see currently available events:| Event type | When it fires | Recommended use |
|---|---|---|
transfer.completed | A transfer reaches complete status | Replace polling transfer status; update ledgers, balances, and customer-facing status |
payment.completed | A payment reaches complete status | React to completed payment events, including supported fiat payment flows |
transfer.completed when your integration is tracking Brale Transfer objects and wants to know when a transfer has completed.
Requirements
Your webhook endpoint must:- Be publicly reachable over HTTPS
- Accept
POSTrequests - Accept
Content-Type: application/json - Read the raw request body before parsing JSON
- Verify the
x-request-signature-sha-256header - Return a
2xxresponse quickly - Deduplicate events by event
idand/oridempotency-key