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.
Webhook Events
Event envelope
All webhook events use a JSON envelope:| Field | Type | Description |
|---|---|---|
id | string | Stable event identifier (the event ID). Use this for deduplication. This is not the same as data.id. |
type | string | Event type, such as transfer.completed. |
created | string | UTC timestamp when the event was created. |
data | object | Event-specific payload. data.id is the resource ID (e.g., transfer ID or payment ID), which may differ from the event id. |
type.
transfer.completed
Emitted when a Brale transfer reaches complete status.
Use this event to replace polling transfer status.
Example:
- Treat
data.idas the transfer ID. - Treat
data.statusas the completed transfer state. - Additional fields may be present as the transfer schema evolves.
- Your integration should ignore unknown fields.
payment.completed
Emitted when a payment reaches complete status.
Example:
Handling future event types
Brale may add new event types over time. Best practices:- Use
GET /webhooks/event_typesto discover supported events. - Branch on
event.type. - Acknowledge unknown event types safely.
- Ignore unknown fields in
data. - Do not assume event ordering.