# Brale Issuance and Orchestration API Source: https://docs.brale.xyz/api-reference/brale-introduction Stablecoin issuance, orchestration, onramps, offramps, and swaps via the Brale API. Brale supports stablecoin issuance and orchestration so you can create, move, and manage stablecoins across chains. Use this API for: * Stablecoin onramps and offramps (fiat ↔ stablecoin) * Stablecoin swaps across supported chains * Custody and payouts * Programmatic issuance for your own stablecoins **ID format**: All resource IDs (account\_id, address\_id, financial\_institution\_id, automation\_id, etc.) are KSUIDs (27-character alphanumeric, time-sortable). **Version**: 2.3.1 ## Base URLs * Auth: `https://auth.brale.xyz` * API: `https://api.brale.xyz` These hosts serve both testnet and mainnet. Your credentials determine the environment. See [Environments](/overview/sandbox-and-testnet). ## Authentication Use OAuth2 Client Credentials to obtain a bearer token, then include it in the `Authorization` header for all requests. ```bash theme={null} curl --request POST \\ --url https://auth.brale.xyz/oauth2/token \\ --header 'Authorization: Basic ${BASE_64_OF(client_id:client_secret)}' \\ --header 'Content-Type: application/x-www-form-urlencoded' \\ --data grant_type=client_credentials ``` ## Next steps * Try endpoints in the API reference using the built-in playground. * Review key concepts (accounts, addresses, transfers, automations) to understand how resources relate. * See coverage for supported payment methods and blockchains. * Use [Webhooks](/webhooks/overview) to receive signed, real-time notifications when transfers or payments complete, instead of continuously polling for status. # Archive an Automation Source: https://docs.brale.xyz/api-reference/brale/archive-automation PATCH /accounts/{account_id}/automations/{automation_id} Archives an automation, permanently stopping it from processing deposits. The underlying virtual account is closed and billing is released. Archive an automation when it is no longer needed. Archiving permanently closes the automation's virtual account — no further deposits will be processed for the automation. > [!WARNING] > > Archived is a terminal state. An archived automation cannot be re-enabled. **PATCH** `https://api.brale.xyz/accounts/{account_id}/automations/{automation_id}` Required scope: `automations:write` ## Path parameters | Parameter | Type | Required | Description | | :- | :- | :- | :- | | `account_id` | string (KSUID) | Yes | The account that owns the automation. | | `automation_id` | string (KSUID) | Yes | The automation to archive. | ## Request body | Field | Type | Required | Description | | :- | :- | :- | :- | | `status` | string | Yes | Must be `"archived"`. | ```json Request theme={null} { "status": "archived" } ``` ## Responses ### 200 OK Returns the full `Automation` object with `status: "archived"`. ```json Response theme={null} { "id": "3D8pEQwvYY7cJXmQkojpZZ9vdr3", "name": "ACE Corp 5", "status": "archived", "source": { "transfer_type": null, "value_type": "USD", "funding_instructions": { "account_number": "488255579773", "beneficiary_name": "Brand Account 2", "bank_address": "8700 Perry Highway Pittsburgh, PA 15237", "beneficiary_address": "7834 pipe drive San Diego, CA 92115", "routing_number": "043087080", "bank_name": "SSB Bank" } }, "destination": { "address_id": "3D8odPs57kcf4kErbi8snLOQg0H", "transfer_type": "base", "value_type": "ACE" }, "updated_at": "2026-06-04T21:13:53.122105Z", "created_at": "2026-05-01T22:10:38.297457Z", "brand": { "account_id": "3D8occi363tmBYDByo0Rr292kBO" } } ``` ### 404 Not Found Automation not found or not owned by the account. ### 422 Unprocessable Entity Invalid status transition (for example, the automation is already archived). # Archive Webhook Subscription Source: https://docs.brale.xyz/api-reference/brale/archive-webhook-subscription DELETE /accounts/{account_id}/webhooks/subscriptions/{subscription_id} Archive a webhook subscription. Future events will not be delivered to this subscription. ``` DELETE /accounts/{account_id}/webhooks/subscriptions/{subscription_id} ``` Required scope: `webhooks:write`. Archiving stops future deliveries. Delivery history is retained. ## Path parameters | Name | Type | Description | | - | - | - | | `account_id` | string | The Brale account that owns the subscription. | | `subscription_id` | string | The ID of the webhook subscription to archive. | ## Example request ```bash theme={null} curl -X DELETE https://api.brale.xyz/accounts/{account_id}/webhooks/subscriptions/{subscription_id} \ -H "Authorization: Bearer {access_token}" ``` See the [Webhooks overview](/webhooks/overview) for how subscriptions, delivery, and account scope work. # Create a customer account Source: https://docs.brale.xyz/api-reference/brale/create-account POST /accounts Creates a new customer (account) with the required KYC/KYB details. Use the playground below to try this endpoint directly, or review the OpenAPI details in the right panel. > [!NOTE] > > **Verification documents:** [Stage KYB documents](/api-reference/brale/stage-verification-document) first, then either pass the returned `doc_submission_ids` on this request or [link them afterward](/api-reference/brale/link-verification-documents). If Brale's review later requires more documents, subscribe to `account.verification.documents_required` (see [Webhook Events](/webhooks/webhook-events#accountverificationdocuments_required)) or [poll required documents](/api-reference/brale/list-verification-documents) — stage and link those documents the same way. When verification passes, Brale sends `account.verification.completed` and the account `status` becomes `complete`. ## Linking documents at creation Include optional `doc_submission_ids` in the request body to link staged document submissions when the account is created. Each ID must come from a prior [Stage a Verification Document](/api-reference/brale/stage-verification-document) call (`POST /documents`). Omit the field to create the account without documents and [link them later](/api-reference/brale/link-verification-documents). | Field | Type | Required | Description | | - | - | - | - | | `doc_submission_ids` | array of strings (KSUID) | No | Staged submission IDs to link and upload as part of account creation. | `doc_submission_ids` is not supported for testnet-only clients or self-attested accounts. In those cases, omit the field or link documents after creation if supported for your account type. For the full account creation payload (business details, controller, beneficial owners, TOS attestation), see [Accounts](/key-concepts/accounts#creating-a-business-account). The example below is a US controller and owner; for parties outside the US, see [Non-US controllers and beneficial owners](/key-concepts/accounts#non-us-controllers-and-beneficial-owners). For a business outside the US, see [Creating a non-US business account](/key-concepts/accounts#creating-a-non-us-business-account). For the individual (KYC) path, see [Accounts — Creating an individual account](/key-concepts/accounts#creating-an-individual-account). ## Choosing between a business and an individual account `POST /accounts` accepts three optional dimension fields — `entity_type`, `account_type`, and `verification_mode` — that select the account shape. All eight combinations are supported: business or individual, custodial or transactional, `standard` or `reliance`. Reliance is enabled per managing account by Brale and is not self-serve; `verification_mode: "bypass"` is not supported for any combination. Omitting all three fields preserves the default business custodial behavior. See [Account types](/key-concepts/account-types) for the full matrix and [Account availability](/coverage/account-availability) for the U.S. states and approved countries where each combination can be created. Brale does not onboard the business types listed in [Prohibited businesses](/coverage/prohibited-businesses). ## Example request with documents (business) ```json theme={null} { "business_name": "Acme Corp", "ein": "12-3456789", "address": { "street_line_1": "123 Main St", "city": "Des Moines", "state": "IA", "zip": "50309" }, "phone_number": "2134678902", "email": "mark@example.com", "website": "https://acme.example.com", "business_controller": { "first_name": "John", "last_name": "Doe", "ssn": "222-22-2222", "dob": "1981-01-25", "email": "john@acme.example.com", "phone_number": "2154688987", "ownership_percentage": "50", "address": { "street_line_1": "456 Elm St", "city": "Chicago", "state": "IL", "zip": "60601" } }, "beneficial_owners": [], "tos_attestation": { "version": "2025-04-01", "accepted_at": "2026-06-09T10:00:00Z" }, "doc_submission_ids": [ "3Ar9BnQCKIrB3SYjKGBzCtFs6XL", "3Ar9BnQCKIrB3SYjKGBzCtFs6XM" ] } ``` ## Example response (201) ```json theme={null} { "id": "3Ar9BnQCKIrB3SYjKGBzCtFs6XL", "name": "Acme Corp", "status": "pending", "created": "2026-06-09T10:00:00Z", "updated": "2026-06-09T10:00:00Z" } ``` Linked documents are uploaded asynchronously after the account is created. The account `status` remains `pending` while Brale reviews the submission. ## Example request (individual) Create a KYC-verified individual account. Set `account_type` to `transactional` (shown below) or `custodial` — the request shape is identical for both. The `individual` object and `tos_attestation` are required. Business-only fields (`business_name`, `ein`, `website`, `business_controller`, `beneficial_owners`, `regulatory_profile`) must not be sent on this path; they are rejected with `400 unexpected_business_fields`. ```json theme={null} { "entity_type": "individual", "account_type": "transactional", "verification_mode": "standard", "individual": { "first_name": "Jane", "last_name": "Doe", "date_of_birth": "1990-01-01", "email": "jane@example.com", "phone_number": "2125550182", "country": "US", "address": { "street_line_1": "123 Main St", "street_line_2": "Apt 4", "city": "Des Moines", "state": "IA", "zip": "50309" }, "identity": { "number": "222-22-2222", "type": "SSN9" } }, "tos_attestation": { "version": "2025-04-01", "accepted_at": "2026-05-13T20:45:15Z", "ip": "203.0.113.42", "user_agent": "Mozilla/5.0 ..." } } ``` ## Example response, individual (201) ```json theme={null} { "id": "3Ar9BnQCKIrB3SYjKGBzCtFs6XL", "name": "Jane Doe", "status": "pending", "created": "2026-05-13T20:45:16Z", "updated": "2026-05-13T20:45:16Z" } ``` The account's `name` is derived from the individual's first and last name. `status` transitions to `complete` when KYC succeeds and `account.verification.completed` fires. See [Individual accounts](/guides/individual-accounts) for the end-to-end workflow, including the receive-only constraints on transactional accounts. ## Required scope `accounts:write` # Create a new external address Source: https://docs.brale.xyz/api-reference/brale/create-address POST /accounts/{account_id}/addresses/external Creates a non-custodial address (EOA) for the specified account using the Direct bank entry path. This endpoint is the **Direct bank entry** path for creating external off-chain bank addresses. Use it when you already have the bank account details (account number, routing number) and need `wire`, `ach_credit`, `same_day_ach_credit`, or `fednow_credit` (on accounts with FedNow enabled). > [!WARNING] > > RTP payouts (`rtp_credit`) ended on October 30, 2026. FedNow (`fednow_credit`) replaces RTP for instant USD payouts. Requests that still send `rtp_credit` return `400 invalid_transfer_types` on address creation or `400 invalid_transfer_type` on transfer creation. To switch, follow [Migrate from `rtp_credit` to `fednow_credit`](/guides/fednow-outbound#migrate-from-rtp_credit-to-fednow_credit). For recipient banks that do not participate in FedNow, use `same_day_ach_credit` or `wire`. > [!NOTE] > > This endpoint does **not** support `ach_debit`. If you need ACH debit, use the [Plaid-linked bank account flow](/api-reference/brale/create-plaid-link-token) instead. > [!WARNING] > > Address fields are conditional. `bank_address` and `beneficiary_address` are **required when `transfer_types` includes `wire`**. They are **optional** for `ach_credit`, `same_day_ach_credit`, and `fednow_credit`. For addresses without `wire`, do not provide placeholder or generic bank addresses. Omit these fields unless you have accurate values. For a full comparison of both external bank address creation paths, see [External bank addresses](/key-concepts/external-bank-addresses). ### Direct bank entry field requirements For Direct bank entry, required fields depend on the transfer types you request. | Field | ACH Credit | Same Day ACH Credit | FedNow Credit | Wire | | - | - | - | - | - | | `owner` | Required | Required | Required | Required | | `account_number` | Required | Required | Required | Required | | `routing_number` | Required | Required | Required | Required | | `account_type` | Required | Required | Required | Required | | `transfer_types` | Required | Required | Required | Required | | `bank_address` | Optional | Optional | Optional | Required | | `beneficiary_address` | Optional | Optional | Optional | Required | If `transfer_types` includes `wire`, wire requirements apply. For addresses without `wire`, omit `bank_address` and `beneficiary_address` unless you have accurate values. Send `account_number` and `routing_number` as strings so leading zeros are preserved. ### Direct bank entry examples #### ACH Credit (`ach_credit`, `same_day_ach_credit`) Omit `bank_address` and `beneficiary_address` for ACH-only addresses. ```json Request theme={null} { "owner": "Jane Doe", "transfer_types": ["ach_credit", "same_day_ach_credit"], "account_number": "1234567890", "routing_number": "063108680", "account_type": "checking", "name": "Example Bank" } ``` #### FedNow Credit (`fednow_credit`) Omit `bank_address` and `beneficiary_address` for FedNow-only addresses. ```json Request theme={null} { "owner": "Jane Doe", "transfer_types": ["fednow_credit"], "account_number": "0012345678", "routing_number": "063108680", "account_type": "checking", "name": "Example Bank" } ``` Do not assume `fednow_credit` is added asynchronously. [Retrieve the address](/api-reference/brale/get-address) and confirm `status` is `active` and `transfer_types` includes `fednow_credit` before you send a payout. See [Send FedNow payouts](/guides/fednow-outbound). #### FedNow errors Brale returns these errors with the standard error envelope: | Status | `type` | Meaning | Retry | | - | - | - | - | | `422` | `fednow_routing_number_not_supported` | The routing number does not participate in FedNow. | No. Use another rail. | | `422` | `fednow_provider_registration_failed` | FedNow registration failed. This can be temporary. | Yes. Retry with the same `Idempotency-Key` and body after a backoff. | | `400` | `invalid_transfer_types` | `transfer_types` includes a value the address cannot use, most often `rtp_credit`. The `detail` reads `Invalid transfer types; Address transfer types must be compatible chains`. | No. Replace `rtp_credit` with `fednow_credit`. See [Migrate from `rtp_credit`](/guides/fednow-outbound#migrate-from-rtp_credit-to-fednow_credit). | ```json Response (422) theme={null} { "type": "fednow_routing_number_not_supported", "detail": "The routing number does not support FedNow.", "status": 422 } ``` #### Disabled bank accounts If the bank account matches an external address that Brale disabled after a return, Brale returns `422` `external_address_disabled` and does not create a new address. Contact support to re-enable the existing address. See [Troubleshooting](/documentation/troubleshooting#422-external_address_disabled). #### Wire (`wire`) Wire-capable addresses require both `bank_address` and `beneficiary_address`. ```json Request theme={null} { "owner": "Jane Doe", "transfer_types": ["wire"], "account_number": "1234567890", "routing_number": "063108680", "account_type": "checking", "name": "Example Bank", "bank_address": { "street_line_1": "100 Example St", "street_line_2": "Suite 500", "city": "Springfield", "state": "CA", "zip": "90001" }, "beneficiary_address": { "street_line_1": "100 Example St", "street_line_2": "Suite 500", "city": "Springfield", "state": "CA", "zip": "90001" } } ``` > [!NOTE] > > If you include `wire` in `transfer_types`, both `bank_address` and `beneficiary_address` are required, even if the same address also includes ACH or FedNow rails. Use the playground below to try this endpoint directly, or review the OpenAPI details in the right panel. # Create an Automation Source: https://docs.brale.xyz/api-reference/brale/create-automations POST /accounts/{account_id}/automations Creates an Automation, a virtual account with its own bank account number. Deposits are minted as stablecoins and sent to the destination address. Add brand to show a verified customer identity as the beneficiary on the funding instructions. Use the playground below to try this endpoint directly, or review the OpenAPI details in the right panel. ## Source configuration Set `source.value_type` to `USD` and omit `source.transfer_type`. A USD Automation is not tied to a single deposit rail. Its virtual account accepts the inbound rails enabled for it, such as wire, ACH, and FedNow (on accounts with FedNow enabled). Responses may return `source.transfer_type: null`. The rail used for each deposit appears on the resulting Transfer in `source.transfer_type`, for example `fednow_credit`. This is a Transfer response value, not an Automation setting. See [Receive FedNow deposits](/guides/fednow-inbound). ## Branded Automations You can optionally include a `brand` object in the request body to select the verified identity (business or individual) that appears as the beneficiary on the automation's funding instructions. Both custodial and transactional business or individual accounts can be used as `brand.account_id`, subject to applicable verification and program eligibility. See [Branded Automations](/key-concepts/automations#branded-automations) for the account-type matrix and ownership rules. | Field | Type | Required | Description | | :- | :- | :- | :- | | `brand` | object | No | Controls the beneficiary shown on the Automation's funding instructions. | | `brand.account_id` | string | Yes (if `brand` is provided) | The account whose verified identity appears as the beneficiary. Can be the caller's own account or a managed account. If the account is a business, its business name and address are used. If the account is an individual, the individual's legal name and address are used. | > [!NOTE] > > **Default behavior is unchanged.** If you omit `brand`, the beneficiary on funding instructions defaults to Brale. If you include `brand.account_id`, the beneficiary reflects that account's verified business or individual identity instead. The automation is still created under the account in the request path (`/accounts/{account_id}/automations`). `brand.account_id` does not change which account owns the automation — it only selects the identity shown on the funding instructions. > [!NOTE] > > **Testnet branding.** With testnet credentials, you can create branded Automations using a business or individual account you have access to, without completing mainnet KYB/KYC or enabling that account for mainnet. Testnet funding instructions contain placeholder banking details and cannot receive real deposits. To fund a testnet Automation, use [Simulate an Automation deposit](/api-reference/brale/simulate-automation-deposit). Mainnet verification requirements are unchanged. ### Example: branded automation request (business account) ```json theme={null} { "name": "XYZ Onramp", "source": { "value_type": "USD" }, "destination": { "address_id": "2VcUIIsgARwVbEGlIYbhg6fGG57", "value_type": "SBC", "transfer_type": "solana" }, "brand": { "account_id": "34lCJZ2bxbPAzB3ou67Md01veUo" } } ``` ### Example: branded automation request (individual account) Pass the `account_id` of an individual account to render that person's legal name and address as the beneficiary. On mainnet, the individual account must be KYC-verified. See [Individual accounts](/guides/individual-accounts) for how to create one. ```json theme={null} { "name": "Jane Doe Onramp", "source": { "value_type": "USD" }, "destination": { "address_id": "2VcUIIsgARwVbEGlIYbhg6fGG57", "value_type": "SBC", "transfer_type": "solana" }, "brand": { "account_id": "3Ar9BnQCKIrB3SYjKGBzCtFs6XL" } } ``` #### Excerpt from retrieving the Automation after it becomes active This partial response shows only the branded fields. It is not the immediate create response, and it does not contain usable banking instructions. Brale populates the full `source.funding_instructions` once the Automation becomes active. ```json theme={null} { "status": "active", "source": { "funding_instructions": { "beneficiary_name": "Jane Doe", "beneficiary_address": "123 Main St, Des Moines, IA 50309" } } } ``` Once the Automation becomes active, `source.funding_instructions.beneficiary_name` and `beneficiary_address` in the response reflect the branded account's verified identity (business name and address, or individual legal name and address). For more details on how branded Automations work, see the [Automations concept page](/key-concepts/automations#branded-automations). # Create a new external financial institution Source: https://docs.brale.xyz/api-reference/brale/create-financial-institution POST /accounts/{account_id}/financial-institutions/external Links an external bank account to the specified account (ACH, wire, etc.). Use the playground below to try this endpoint directly, or review the OpenAPI details in the right panel. # Create a new internal address Source: https://docs.brale.xyz/api-reference/brale/create-internal-address POST /accounts/{account_id}/addresses/internal Provision an additional custodial (internal) address for the specified account. Use this endpoint to provision an **additional** custodial (internal) address on an account beyond the wallets Brale creates automatically at onboarding. This is useful when you want to segment funds within a single account (per end-user, per-purpose, or per-business-unit) and distinguish wallets by `name`. > [!NOTE] > > Requires the `addresses:write` scope and a unique `Idempotency-Key` header on every request. All values in `transfer_types` must resolve to the **same chain environment** (for example `["ethereum", "polygon"]` for EVM, or `["stellar"]` for Stellar). ### Request ```json Request (EVM) theme={null} { "name": "My EVM Wallet", "transfer_types": ["ethereum", "polygon"] } ``` ```json Request (Stellar) theme={null} { "name": "Stellar Custodial Wallet", "transfer_types": ["stellar"] } ``` ### Responses Deterministic-address chains (Solana, Stellar, Ethereum, Base, Polygon) return synchronously with `status: "active"` and a non-null `address`. ```json 201 (synchronous) theme={null} { "id": "3EdBHmAtfm7tct7varYqgAz6iYW", "status": "active", "name": "My EVM Wallet", "address": "0xc109f7016aF02fBF21E9f0d7d50a6A48f5F644Ad", "transfer_types": ["ethereum", "polygon"] } ``` Non-deterministic chains (Spark, Canton, Hedera) return `status: "pending"` and `address: null` until the chain confirms. The address transitions to `active` once provisioning completes — see [Address lifecycle](/key-concepts/addresses#address-lifecycle). ```json 201 (asynchronous) theme={null} { "id": "3EdBHmAtfm7tct7varYqgAz6iYW", "status": "pending", "name": "Hedera Custodial Wallet", "address": null, "transfer_types": ["hedera"] } ``` Use the playground below to try this endpoint directly, or review the OpenAPI details in the right panel. # Create Plaid link token Source: https://docs.brale.xyz/api-reference/brale/create-plaid-link-token POST /accounts/{account_id}/plaid/link_token Step 1 of the Plaid-linked bank account flow. Generates a Plaid Link token to launch the Plaid UI for connecting a bank account. This endpoint is **step 1** of the **Plaid-linked bank account** flow for creating external off-chain bank addresses. The Plaid-linked path supports `ach_debit`, `ach_credit`, and `rtp_credit` (no longer available). This is the **only** path that enables `ach_debit`. **Native mobile apps:** If you are integrating Plaid Link in a native iOS or Android app, you must submit your iOS redirect URI or Android package name to Brale for whitelisting before mobile Plaid OAuth will work. See the [ACH on-ramp guide](/guides/ach-on-ramp#create-plaid-link-token) for platform-specific setup details. **Application name:** Use the optional `client_name` field (maximum 30 characters) to set the application name displayed in Plaid Link. It defaults to `Brale` and does not change logos, colors, or ACH bank statement descriptors. See [Customize the application name](/guides/ach-on-ramp#customize-the-application-name). **Next step:** After the user completes the Plaid Link flow, exchange the `public_token` using [Register financial institution account via Plaid](/api-reference/brale/register-financial-institution-account-via-plaid-and-return-address-id) to create the `address_id`. For a full comparison of both external bank address creation paths, see [External bank addresses](/key-concepts/external-bank-addresses). Use the playground below to try this endpoint directly, or review the OpenAPI details in the right panel. # Create Token Burn Source: https://docs.brale.xyz/api-reference/brale/create-token-burn POST /accounts/{account_id}/tokens/burns Burn tokens from a source address. Only available for tokenization (self-attested) accounts. ``` POST /accounts/{account_id}/tokens/burns ``` Required scope: `self_attested_tokens:burn`. Use an `Idempotency-Key` header. Only available for tokenization (self-attested) accounts. ## Path parameters | Name | Type | Description | | - | - | - | | `account_id` | string | KSUID of the tokenization account performing the burn. | ## Request body | Field | Type | Required | Description | | - | - | - | - | | `amount` | string | Yes | Amount to burn, as a decimal string. | | `note` | string | No | Optional free-text note attached to the burn. | | `source.address_id` | string | Yes | KSUID of the source address holding the tokens to burn. | | `source.value_type` | string | Yes | The token value type (e.g., `MY_TOKEN`). | | `source.transfer_type` | string | Yes | The chain the tokens are held on (e.g., `base`, `solana`). | ## Example request ```bash theme={null} curl --request POST \ --url https://api.brale.xyz/accounts/{account_id}/tokens/burns \ --header 'Authorization: Bearer ' \ --header 'Content-Type: application/json' \ --header 'Idempotency-Key: ' \ --data '{ "amount": "1000.50", "note": "Monthly burn for Q1 2024", "source": { "address_id": "2VcUIIsgARwVbEGlIYbhg6fGG57", "value_type": "MY_TOKEN", "transfer_type": "base" } }' ``` ## Example success response ```json theme={null} { "id": "2XyBurnKsuid000000000000000", "status": "pending", "amount": "1000.50", "source": { "address_id": "2VcUIIsgARwVbEGlIYbhg6fGG57", "value_type": "MY_TOKEN", "transfer_type": "base" }, "created_at": "2025-01-15T12:00:00Z" } ``` ## Example error response ```json theme={null} { "status": 400, "title": "Bad Request", "detail": "Insufficient balance at source address for requested burn amount." } ``` ## Related endpoints * [List token burns](/api-reference/brale/list-token-burns) * [Get token burn](/api-reference/brale/get-token-burn) * [Tokenization guide](/guides/tokenization) # Create Token Mint Source: https://docs.brale.xyz/api-reference/brale/create-token-mint POST /accounts/{account_id}/tokens/mints Mint new tokens into a destination address. Only available for tokenization (self-attested) accounts. ``` POST /accounts/{account_id}/tokens/mints ``` Required scope: `self_attested_tokens:mint`. Use an `Idempotency-Key` header. Only available for tokenization (self-attested) accounts. ## Path parameters | Name | Type | Description | | - | - | - | | `account_id` | string | KSUID of the tokenization account performing the mint. | ## Request body | Field | Type | Required | Description | | - | - | - | - | | `amount` | string | Yes | Amount to mint, as a decimal string. | | `destination.address_id` | string | Yes | KSUID of the destination address that will receive the minted tokens. | | `destination.value_type` | string | Yes | The token value type (e.g., `MY_TOKEN`). | | `destination.transfer_type` | string | Yes | The chain to mint on (e.g., `base`, `solana`). | ## Example request ```bash theme={null} curl --request POST \ --url https://api.brale.xyz/accounts/{account_id}/tokens/mints \ --header 'Authorization: Bearer ' \ --header 'Content-Type: application/json' \ --header 'Idempotency-Key: ' \ --data '{ "amount": "1000.50", "destination": { "address_id": "2VcUIIsgARwVbEGlIYbhg6fGG57", "value_type": "MY_TOKEN", "transfer_type": "base" } }' ``` ## Example success response ```json theme={null} { "id": "2XyMintKsuid000000000000000", "status": "pending", "amount": "1000.50", "destination": { "address_id": "2VcUIIsgARwVbEGlIYbhg6fGG57", "value_type": "MY_TOKEN", "transfer_type": "base" }, "created_at": "2025-01-15T12:00:00Z" } ``` ## Example error response ```json theme={null} { "status": 403, "title": "Forbidden", "detail": "Account is not configured as a tokenization (self-attested) account." } ``` ## Related endpoints * [List token mints](/api-reference/brale/list-token-mints) * [Get token mint](/api-reference/brale/get-token-mint) * [Tokenization guide](/guides/tokenization) # Create Token Transfer Source: https://docs.brale.xyz/api-reference/brale/create-token-transfer POST /accounts/{account_id}/tokens/transfers Move tokens between custodial and external addresses. Only available for tokenization (self-attested) accounts. ``` POST /accounts/{account_id}/tokens/transfers ``` Required scope: `self_attested_tokens:transfer`. Use an `Idempotency-Key` header. Only available for tokenization (self-attested) accounts. ## Path parameters | Name | Type | Description | | - | - | - | | `account_id` | string | KSUID of the tokenization account performing the transfer. | ## Request body | Field | Type | Required | Description | | - | - | - | - | | `amount` | string | Yes | Amount to transfer, as a decimal string. | | `source.address_id` | string | Yes | KSUID of the source address holding the tokens. | | `source.value_type` | string | Yes | The token value type (e.g., `MY_TOKEN`). | | `source.transfer_type` | string | Yes | The chain the tokens are held on. | | `destination.address_id` | string | Yes | KSUID of the destination address. | | `destination.value_type` | string | Yes | The token value type on the destination side. | | `destination.transfer_type` | string | Yes | The chain the destination address is on. | ## Example request ```bash theme={null} curl --request POST \ --url https://api.brale.xyz/accounts/{account_id}/tokens/transfers \ --header 'Authorization: Bearer ' \ --header 'Content-Type: application/json' \ --header 'Idempotency-Key: ' \ --data '{ "amount": "1000.50", "source": { "address_id": "2VcUIIsgARwVbEGlIYbhg6fGG57", "value_type": "MY_TOKEN", "transfer_type": "base" }, "destination": { "address_id": "2srdkF6Sm8TWOJpWt1oNlTVes1w", "value_type": "MY_TOKEN", "transfer_type": "base" } }' ``` ## Example success response ```json theme={null} { "id": "2XyTransferKsuid00000000000", "status": "pending", "amount": "1000.50", "source": { "address_id": "2VcUIIsgARwVbEGlIYbhg6fGG57", "value_type": "MY_TOKEN", "transfer_type": "base" }, "destination": { "address_id": "2srdkF6Sm8TWOJpWt1oNlTVes1w", "value_type": "MY_TOKEN", "transfer_type": "base" }, "created_at": "2025-01-15T12:00:00Z" } ``` ## Example error response ```json theme={null} { "status": 400, "title": "Bad Request", "detail": "Source and destination value_type must match for a token transfer." } ``` ## Related endpoints * [List token transfers](/api-reference/brale/list-token-transfers) * [Get token transfer](/api-reference/brale/get-token-transfer) * [Tokenization guide](/guides/tokenization) # Create a new transfer Source: https://docs.brale.xyz/api-reference/brale/create-transfer POST /accounts/{account_id}/transfers Creates a new transfer using the specified source and destination details. > [!WARNING] > > RTP payouts (`rtp_credit`) ended on October 30, 2026. FedNow (`fednow_credit`) replaces RTP for instant USD payouts. Requests that still send `rtp_credit` return `400 invalid_transfer_types` on address creation or `400 invalid_transfer_type` on transfer creation. To switch, follow [Migrate from `rtp_credit` to `fednow_credit`](/guides/fednow-outbound#migrate-from-rtp_credit-to-fednow_credit). For recipient banks that do not participate in FedNow, use `same_day_ach_credit` or `wire`. ### `rtp_credit` errors A request with `destination.transfer_type: "rtp_credit"` returns `400`: ```json Response (400) theme={null} { "code": "ValidationError", "status": 400, "type": "invalid_transfer_type", "values": [], "detail": "Invalid transfer type" } ``` Brale does not create a Transfer for this request. Add `fednow_credit` to the destination bank Address, then resend the payout with `destination.transfer_type: "fednow_credit"` and a new `Idempotency-Key`. See [Migrate from `rtp_credit` to `fednow_credit`](/guides/fednow-outbound#migrate-from-rtp_credit-to-fednow_credit). Use the playground below to try this endpoint directly, or review the OpenAPI details in the right panel. # Create Webhook Subscription Source: https://docs.brale.xyz/api-reference/brale/create-webhook-subscription POST /accounts/{account_id}/webhooks Create a new webhook subscription under a Brale account. ``` POST /accounts/{account_id}/webhooks ``` Required scope: `webhooks:write`. Use an `Idempotency-Key` header. > [!NOTE] > > The `sharedSecret` is returned only once in the response to this call. Store it immediately — list and get subscription endpoints do not return the secret again. ## Path parameters | Name | Type | Description | | - | - | - | | `account_id` | string | The account that owns the webhook subscription. | > [!NOTE] > > Which `account_id` to use: > > * **Managing account ID:** The subscription receives subscribed events for the managing account and the accounts it manages. Use this if you onboard customers as managed accounts. You don't need a subscription per customer. > * **Managed account ID:** The subscription receives subscribed events for that managed account only. > > Read `data.account_id` in each event to identify the account it concerns. ## Request body | Field | Type | Required | Description | | - | - | - | - | | `url` | string | Yes | HTTPS destination URL for webhook `POST` requests. | | `events` | array of strings | Yes | Event types to subscribe to. Accepts concrete event types (e.g., `transfer.completed`) and namespace wildcards (e.g., `transfer.*`). See [List Webhook Event Types](/api-reference/brale/list-webhook-event-types) and [Wildcard event subscriptions](#wildcard-event-subscriptions). | ## Wildcard event subscriptions The `events` array accepts a namespace wildcard of the form `.*`. Subscribing to `transfer.*` creates a subscription that delivers every event in the `transfer` family (`transfer.created`, `transfer.completed`, `transfer.canceled`, `transfer.failed`, `transfer.refunding`, `transfer.refunded`, and any future `transfer.*` events Brale adds). Wildcards are supported for every event family — not just `transfer`. Any major namespace works the same way, for example: * `transfer.*` — all transfer events * `payment.*` — all payment events * `address.*` — all address events (`address.created` and `address.ready`) * `account.*` — all account events, including nested types like `account.verification.completed`, `account.verification.rejected` and `account.verification.documents_required` You can mix concrete event types and wildcards in the same subscription. Overlapping selections are deduplicated — subscribing to both `transfer.*` and `transfer.completed` still delivers each event once. ### Example: subscribe to all transfer events ```bash theme={null} curl -X POST https://api.brale.xyz/accounts/{account_id}/webhooks \ -H "Authorization: Bearer {access_token}" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: {uuid}" \ -d '{ "url": "https://your-app.example.com/webhooks/brale", "events": ["transfer.*"] }' ``` ### Example: mix wildcards and concrete events ```json theme={null} { "url": "https://your-app.example.com/webhooks/brale", "events": ["transfer.*", "account.*", "payment.completed"] } ``` ## Example request ```bash theme={null} curl -X POST https://api.brale.xyz/accounts/{account_id}/webhooks \ -H "Authorization: Bearer {access_token}" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: {uuid}" \ -d '{ "url": "https://your-app.example.com/webhooks/brale", "events": ["transfer.completed"] }' ``` ## Example response ```json theme={null} { "id": "3D3jNzs2r7Sf78qtYpRe1biscLG", "sharedSecret": "base64url-encoded-secret", "events": ["transfer.completed"], "url": "https://your-app.example.com/webhooks/brale", "status": "active" } ``` See the [Webhooks overview](/webhooks/overview) for subscription ownership, environment scope (testnet/mainnet), and signature verification details. # Retrieve a customer account Source: https://docs.brale.xyz/api-reference/brale/get-account GET /accounts/{account_id} Returns the details of a specific customer account, including KYB status. Use the playground below to try this endpoint directly, or review the OpenAPI details in the right panel. > [!NOTE] > > Account creation requires KYB / business details (see [Create a customer account](/api-reference/brale/create-account)), but account read responses return only this account summary and do not include sensitive KYB details. ## Response shape | Field | Type | Description | | :- | :- | :- | | `id` | string (KSUID) | The account ID. | | `name` | string | Account / business display name returned by the API. | | `status` | string | KYB / onboarding status. One of `complete`, `pending`, `rejected`. | | `created` | string (ISO 8601) | When the account was created. | | `updated` | string (ISO 8601) | When the account was last updated. | ### Example ```json title="Response" theme={null} { "id": "2VcUIIsgARwVbEGlIYbhg6fGG57", "name": "ABC Company", "status": "complete", "created": "2026-01-01T00:00:00Z", "updated": "2026-01-01T00:00:00Z" } ``` # Retrieve an address Source: https://docs.brale.xyz/api-reference/brale/get-address GET /accounts/{account_id}/addresses/{address_id} Retrieves a single internal or external Address by `address_id`. Use the playground below to try this endpoint directly, or review the OpenAPI details in the right panel. This endpoint returns a single internal (custodial) or external Address by its `address_id`. Use it to fetch the latest `status`, `address` value, and enabled `transfer_types`. ### Example request ```bash theme={null} curl --request GET \ --url "https://api.brale.xyz/accounts/${ACCOUNT_ID}/addresses/${ADDRESS_ID}" \ --header "Authorization: Bearer ${ACCESS_TOKEN}" ``` ### Example response ```json theme={null} { "id": "2MhCCIHulVdXrHiEuQDJvnKbSkl", "type": "external", "name": "Example Bank", "status": "active", "address": null, "transfer_types": ["ach_credit", "same_day_ach_credit"] } ``` > [!NOTE] > > Before a FedNow payout, confirm that `status` is `active` and `transfer_types` includes `fednow_credit`. See [Send FedNow payouts](/guides/fednow-outbound). # Get an address balance Source: https://docs.brale.xyz/api-reference/brale/get-address-balance GET /accounts/{account_id}/addresses/{address_id}/balance Returns the balance of a custodial wallet address or a Plaid-linked bank address. Provide `transfer_type` and `value_type` as query parameters. Use the playground below to try this endpoint directly, or review the OpenAPI details in the right panel. ## Query parameters by address type Both `transfer_type` and `value_type` are required. | Address type | `transfer_type` | `value_type` | | - | - | - | | Custodial wallet (`type=internal`) | Blockchain network, such as `base` | Token ticker, such as `SBC` | | Plaid-linked bank address | `ach_debit` | `USD` | ## Custodial wallet balances The balance for a custodial wallet does not subtract transfers that are still `pending` or `processing`. When Brale validates a new transfer, it subtracts those in-flight transfers. A transfer can return `422` `insufficient_balance` even when this endpoint shows enough funds. See [Troubleshooting](/documentation/troubleshooting#422-insufficient_balance-when-the-address-shows-enough-funds). ## Plaid-linked bank balances ```bash theme={null} curl --request GET \ --url "https://api.brale.xyz/accounts/${ACCOUNT_ID}/addresses/${ADDRESS_ID}/balance?transfer_type=ach_debit&value_type=USD" \ --header "Authorization: Bearer ${AUTH_TOKEN}" ``` ```json Response theme={null} { "address": { "id": "34yknnMShvDbSW6tQg4HLlN41QO", "address": null, "account_number": "****1234" }, "balance": { "value": "1250.42", "currency": "USD" }, "value_type": "USD", "transfer_type": "ach_debit" } ``` * Brale uses Plaid's available balance when Plaid supplies it. Otherwise, Brale uses the current balance. * Successful reads may be cached for up to 30 seconds. * The balance is a point-in-time snapshot. It does not guarantee that an ACH debit will settle. * Brale never returns the full bank account number. `account_number` is masked. * Only Plaid-linked USD bank addresses support balance lookup. Bank addresses created through Direct bank entry do not. ## Errors | Status | `type` | Meaning | | - | - | - | | `400` | `invalid_address` | A bank balance request did not use `transfer_type=ach_debit`. | | `400` | `invalid_value_type` | A bank balance request did not use `value_type=USD`. | | `400` | `balance_not_supported_for_address` | The address is not Plaid-linked, or the currency is not supported. | | `400` | `plaid_error` (`code: plaid_item_login_required`) | The user must relink the bank account through Plaid. | | `503` | `service_unavailable` | Plaid returned an error or balance data is unavailable. | > [!NOTE] > > `service_unavailable` does not mean the balance is zero or insufficient. # Retrieve a single automation Source: https://docs.brale.xyz/api-reference/brale/get-automations GET /accounts/{account_id}/automations/{id} Retrieves an Automation (virtual account), including its status and funding instructions. Use the playground below to try this endpoint directly, or review the OpenAPI details in the right panel. # Fetch a specific financial institution Source: https://docs.brale.xyz/api-reference/brale/get-financial-institution GET /accounts/{account_id}/financial-institutions/{id} Retrieves details for the specified financial institution (bank account). Use the playground below to try this endpoint directly, or review the OpenAPI details in the right panel. # Get Token Burn Source: https://docs.brale.xyz/api-reference/brale/get-token-burn GET /accounts/{account_id}/tokens/burns/{burn_id} Retrieve a single tokenization burn order by ID. ``` GET /accounts/{account_id}/tokens/burns/{burn_id} ``` Required scope: `self_attested_tokens:read`. ## Path parameters | Name | Type | Description | | - | - | - | | `account_id` | string | KSUID of the tokenization account. | | `burn_id` | string | KSUID of the burn order to retrieve. | ## Example request ```bash theme={null} curl --request GET \ --url https://api.brale.xyz/accounts/{account_id}/tokens/burns/{burn_id} \ --header 'Authorization: Bearer ' ``` ## Example success response ```json theme={null} { "id": "2XyBurnKsuid000000000000000", "status": "completed", "amount": "1000.50", "source": { "address_id": "2VcUIIsgARwVbEGlIYbhg6fGG57", "value_type": "MY_TOKEN", "transfer_type": "base" }, "created_at": "2025-01-15T12:00:00Z" } ``` ## Example error response ```json theme={null} { "status": 404, "title": "Not Found", "detail": "Burn order not found for this account." } ``` ## Related endpoints * [Create token burn](/api-reference/brale/create-token-burn) * [List token burns](/api-reference/brale/list-token-burns) # Get Token Mint Source: https://docs.brale.xyz/api-reference/brale/get-token-mint GET /accounts/{account_id}/tokens/mints/{mint_id} Retrieve a single tokenization mint order by ID. ``` GET /accounts/{account_id}/tokens/mints/{mint_id} ``` Required scope: `self_attested_tokens:read`. ## Path parameters | Name | Type | Description | | - | - | - | | `account_id` | string | KSUID of the tokenization account. | | `mint_id` | string | KSUID of the mint order to retrieve. | ## Example request ```bash theme={null} curl --request GET \ --url https://api.brale.xyz/accounts/{account_id}/tokens/mints/{mint_id} \ --header 'Authorization: Bearer ' ``` ## Example success response ```json theme={null} { "id": "2XyMintKsuid000000000000000", "status": "completed", "amount": "1000.50", "destination": { "address_id": "2VcUIIsgARwVbEGlIYbhg6fGG57", "value_type": "MY_TOKEN", "transfer_type": "base" }, "created_at": "2025-01-15T12:00:00Z" } ``` ## Example error response ```json theme={null} { "status": 404, "title": "Not Found", "detail": "Mint order not found for this account." } ``` ## Related endpoints * [Create token mint](/api-reference/brale/create-token-mint) * [List token mints](/api-reference/brale/list-token-mints) # Get Token Transfer Source: https://docs.brale.xyz/api-reference/brale/get-token-transfer GET /accounts/{account_id}/tokens/transfers/{transfer_id} Retrieve a single tokenization transfer by ID, including its source, destination, amount, and status. ``` GET /accounts/{account_id}/tokens/transfers/{transfer_id} ``` Required scope: `self_attested_tokens:read`. ## Path parameters | Name | Type | Description | | - | - | - | | `account_id` | string | KSUID of the tokenization account. | | `transfer_id` | string | KSUID of the tokenization transfer to retrieve. | ## Example request ```bash theme={null} curl --request GET \ --url https://api.brale.xyz/accounts/{account_id}/tokens/transfers/{transfer_id} \ --header 'Authorization: Bearer ' ``` ## Example success response ```json theme={null} { "id": "2XyTransferKsuid00000000000", "status": "completed", "amount": "1000.50", "source": { "address_id": "2VcUIIsgARwVbEGlIYbhg6fGG57", "value_type": "MY_TOKEN", "transfer_type": "base" }, "destination": { "address_id": "2srdkF6Sm8TWOJpWt1oNlTVes1w", "value_type": "MY_TOKEN", "transfer_type": "base" }, "created_at": "2025-01-15T12:00:00Z" } ``` ## Example error response ```json theme={null} { "status": 404, "title": "Not Found", "detail": "Tokenization transfer not found for this account." } ``` ## Related endpoints * [Create token transfer](/api-reference/brale/create-token-transfer) * [List token transfers](/api-reference/brale/list-token-transfers) # Retrieve a single transfer Source: https://docs.brale.xyz/api-reference/brale/get-transfer GET /accounts/{account_id}/transfers/{id} Retrieve full details for a specific transfer, including source and destination payment details, amount, and status. Use the playground below to try this endpoint directly, or review the OpenAPI details in the right panel. ## `source.payment_details` Transfer responses may include an optional `source.payment_details` object when Brale has underlying payment metadata to expose for the source leg of a transfer. This is primarily relevant for inbound fiat-funded transfers (wire, ACH). Wire transfers typically include the fuller set of fields. ACH transfers may include only a subset — fields may be `null` or omitted depending on available rail metadata. | Field | Type | Description | | :- | :- | :- | | `received_at` | string (ISO 8601) | When the underlying payment was received or posted | | `sender_name` | string \| null | Name of the originating sender, when available | | `sender_bank_name` | string \| null | Originating bank name, when available | | `sender_bank_routing_number` | string \| null | Originating bank routing number, when available | | `payment_reference` | string \| null | Sender-provided payment reference or memo, when available. For inbound wires, Brale may also populate this field from "Instruction for Creditor Agent," which some banks label "Message to receiving bank." This fallback is used only when no existing memo, Originator-to-Beneficiary Information (OBI), or remittance reference is available. Existing reference precedence is preserved. | | `imad` | string \| null | Wire IMAD / tracking identifier, when available | | `trace_number` | string \| null | ACH trace identifier for the underlying payment, when available. Primarily relevant for inbound ACH-funded transfers. | ### Example: wire-funded transfer ```json title="Response" theme={null} { "id": "3C0QcbwVywOGyU2HBSenljm5dhU", "status": "complete", "failure": null, "source": { "transfer_type": "wire", "financial_institution_id": "3AjRnbvj9Mq6crkviJv08d0KLB2", "value_type": "USD", "payment_details": { "received_at": "2026-04-07T00:01:24.514000Z", "sender_name": "Originator Name", "sender_bank_name": "JPMorgan Chase Bank", "sender_bank_routing_number": "000000123", "payment_reference": "Simulated Wire", "imad": "20260406XOIZJDPP953495" } }, "destination": { "transaction_id": "0x41c66f1d059dad7a55a854e157a1b5b938780c77ba5296e434a02dfb1727fe5e", "transfer_type": "base", "address_id": "3ARaM0I93ObWOIFDIztsTx4TAsp", "value_type": "ARB" }, "updated_at": "2026-04-07T00:01:44.824834Z", "created_at": "2026-04-07T00:01:27.756775Z", "note": null, "amount": { "value": "102.0", "currency": "USD" }, "automation_id": "3AjRnDClEzwuCKlRioG3OXMS4pH" } ``` ### Example: ACH-funded transfer (`payment_details` excerpt) ```json title="Response (source excerpt)" theme={null} { "source": { "transfer_type": "ach_debit", "value_type": "USD", "payment_details": { "received_at": "2026-04-07T02:10:06.921000Z", "sender_name": "Test ACH Sender", "sender_bank_name": null, "sender_bank_routing_number": "721160232", "payment_reference": null, "imad": null, "trace_number": "021000029876543" } } } ``` See [Transfers — `source.payment_details`](/key-concepts/transfers#sourcepayment_details) for full details. ## `destination.payment_details` Transfer responses may include an optional `destination.payment_details` object when Brale has underlying payment metadata to expose for the destination leg of a transfer. This is primarily relevant for outbound wire and ACH transfers (stablecoin-to-fiat offramps and payouts). The object is optional and may be absent immediately after a transfer is created. For outbound wires, the IMAD is assigned by the sending bank and may not be available until after the wire has been submitted. For outbound ACH payouts, the trace number is assigned when the payout posts. Brale populates these fields later when the underlying bank metadata arrives. | Field | Type | Description | | :- | :- | :- | | `imad` | string \| null | Wire IMAD / tracking identifier for the outbound wire, when available | | `trace_number` | string \| null | ACH trace number for the outbound ACH payout (`ach_credit` or `same_day_ach_credit`), when available | | `sent_at` | string (date-time) \| null | When the outbound wire or ACH payout was sent, when available | > [!NOTE] > > `destination.payment_details` is a response-only field. It is not accepted as input when creating a transfer. Do not confuse it with `destination.wire_memo`, which remains a request field for outbound wire transfers. ### Example: outbound wire transfer ```json title="Response" theme={null} { "id": "3D1RcbwVywOGyU2HBSenljm5dhV", "status": "complete", "source": { "address_id": "2VcUIonJeVQzFoBuC7LdFT0dRe4", "value_type": "SBC", "transfer_type": "solana", "transaction_id": "5K8…" }, "destination": { "address_id": "34yGFQf7tP1HJCPAWNGaN4rh4nX", "value_type": "USD", "transfer_type": "wire", "wire_memo": "Invoice 1048", "payment_details": { "imad": "20260406XOIZJDPP953495" } }, "updated_at": "2026-04-07T00:05:12.102000Z", "created_at": "2026-04-07T00:01:27.756775Z", "amount": { "value": "100.00", "currency": "USD" }, "note": null } ``` ### Example: outbound ACH transfer ```json title="Response (destination excerpt)" theme={null} { "destination": { "address_id": "34yGFQf7tP1HJCPAWNGaN4rh4nX", "value_type": "USD", "transfer_type": "ach_credit", "payment_details": { "trace_number": "021000029876543", "sent_at": "2026-04-07T00:04:58.000000Z" } } } ``` See [Transfers — `destination.payment_details`](/key-concepts/transfers#destinationpayment_details) for full details. ## FedNow transfers FedNow legs use `transfer_type: "fednow_credit"`. Wire-only fields such as `payment_details.imad` and `wire_memo` do not apply to FedNow, and ACH fields such as `trace_number` are not expected. Read only the `payment_details` fields present on the response. ### Example: outbound FedNow payout ```json Response theme={null} { "id": "36JqTB7hN3pQe5ZuWv0XkLr2sGc", "status": "complete", "amount": { "value": "1.00", "currency": "USD" }, "source": { "address_id": "2VcUIonJeVQzFoBuC7LdFT0dRe4", "value_type": "USDB", "transfer_type": "spark" }, "destination": { "address_id": "2MhCCIHulVdXrHiEuQDJvnKbSkl", "value_type": "USD", "transfer_type": "fednow_credit" }, "automation_id": null, "failure": null, "note": null, "created_at": "2026-10-15T16:10:03.531196Z", "updated_at": "2026-10-15T16:10:41.204118Z" } ``` For an inbound FedNow deposit example, see [Receive FedNow deposits](/guides/fednow-inbound#find-the-transfer). ## `transaction_id` The `transaction_id` field appears on the `source` and `destination` objects in the response. It contains the on-chain transaction hash or off-chain payment reference once the leg has been submitted to the network. You can also use `transaction_id` as a query-parameter filter on the [List transfers](/api-reference/brale/list-transfers) endpoint to find transfers by their on-chain hash without needing to know the transfer `id` first. ## `failure` Every transfer response includes a `failure` field. * `failure` is **usually `null`**. * `failure` is **populated** when `status` is `failed` and Brale has structured failure details. It is especially relevant for ACH returns, outbound domestic wire returns, and other rail/provider failures. * Clients should **not assume** `failure` is always present for every failed transfer. Check for `null` before reading nested fields. * Rail-specific objects are only set for their rail. Do not require `ach_return` fields for a wire return, or `wire_return` fields for an ACH return. | Field | Type | Description | | :- | :- | :- | | `type` | string | Error classification for the failure (e.g. `ach_return`, `wire_return`). | | `occurred_at` | string (ISO 8601) | When Brale recorded the failure. This is not necessarily the exact time the bank returned the payment. | | `retriable` | boolean | Whether the failure is considered retriable. Note: spelled `retriable`, not `retryable`. | | `ach_return` | object \| null | ACH-only return details. Present for ACH return failures; `null` or not set for wire returns, on-chain failures, and other rail failures. | | `ach_return.code` | string | ACH return code (e.g. `R01` — Insufficient Funds). | | `ach_return.reason` | string | Human-readable description of the ACH return reason. | | `ach_return.category` | string | One of `administrative`, `unauthorized`, or `general`. ACH only. | | `wire_return` | object \| null | Wire-only return details. Present when `type` is `wire_return`; `null` or not set for other failures. | | `wire_return.code` | string | The provider's wire return reason code when available (e.g. `AC04`). When the provider supplies no code, Brale sets `WIRE_RETURN`. `WIRE_RETURN` is a Brale fallback marker, not an ISO 20022 bank reason code. | | `wire_return.reason` | string \| null | Human-readable return reason, when available. Can be `null`. | `wire_return` has no `category` field. The `administrative` / `unauthorized` / `general` taxonomy applies to ACH returns only. ### Example: failed ACH transfer ```json title="Response (failure excerpt)" theme={null} { "id": "3D1RcbwVywOGyU2HBSenljm5dhV", "status": "failed", "failure": { "type": "ach_return", "occurred_at": "2026-04-07T00:05:12.102000Z", "retriable": false, "ach_return": { "code": "R01", "reason": "Insufficient Funds", "category": "administrative" } } } ``` ### Example: returned outbound wire When Brale recognizes a bank return for an outbound domestic wire, it updates the original transfer to `status: "failed"`. This can happen while the transfer is `processing` or after it is `complete`. Brale does not use a separate `returned` status. See [Transfer status lifecycle](/documentation/platform/transfer-timing#transfer-status-lifecycle). The following excerpt is illustrative. It is not an observed production payload. ```json title="Response (failure excerpt, illustrative)" theme={null} { "id": "3D1RcbwVywOGyU2HBSenljm5dhV", "status": "failed", "failure": { "type": "wire_return", "occurred_at": "2026-10-06T18:30:00Z", "retriable": false, "ach_return": null, "wire_return": { "code": "AC04", "reason": "Account closed" } } } ``` If the provider does not supply a return code, the failure is still classified as `type: "wire_return"`, with `wire_return.code` set to `WIRE_RETURN`. `wire_return.reason` may be `null`. Not every wire rejection produces a `wire_return` failure. Use `failure.type` to identify a recognized wire return rather than inferring it from the rail alone. # Get Webhook Subscription Source: https://docs.brale.xyz/api-reference/brale/get-webhook-subscription GET /accounts/{account_id}/webhooks/{subscription_id} Retrieve a single webhook subscription by ID, including its destination URL and subscribed event types. The shared secret is not returned. ``` GET /accounts/{account_id}/webhooks/{subscription_id} ``` Required scope: `webhooks:read`. The `sharedSecret` is not returned by this endpoint. ## Path parameters | Name | Type | Description | | - | - | - | | `account_id` | string | The Brale account that owns the subscription. | | `subscription_id` | string | The ID of the webhook subscription. | ## Example request ```bash theme={null} curl https://api.brale.xyz/accounts/{account_id}/webhooks/{subscription_id} \ -H "Authorization: Bearer {access_token}" ``` ## Example response ```json theme={null} { "id": "3D3jNzs2r7Sf78qtYpRe1biscLG", "events": ["transfer.completed"], "url": "https://your-app.example.com/webhooks/brale", "status": "active" } ``` See the [Webhooks overview](/webhooks/overview) for delivery, scope, and signature details. # Link Verification Documents Source: https://docs.brale.xyz/api-reference/brale/link-verification-documents PATCH /accounts/{account_id} Link staged KYB or KYC document submissions to an account. Use the playground below to try this endpoint directly, or review the OpenAPI details in the right panel. Links one or more previously staged document submissions to an account as part of the verification flow. Documents must be [staged first](/api-reference/brale/stage-verification-document) before they can be linked via this endpoint. This endpoint works the same way for business accounts (KYB) and [individual accounts](/guides/individual-accounts) (KYC). For an individual account, stage each individual document, such as `government_photo_id`, with the `person_label` from the webhook payload or the list endpoint. Then link the staged IDs to the individual's `account_id` with this endpoint. During verification review, Brale may request additional documents. Subscribe to `account.verification.documents_required` to be notified when uploads are needed, or [poll required documents](/api-reference/brale/list-verification-documents). See [Webhook Events](/webhooks/webhook-events#accountverificationdocuments_required). ## Example request ```json theme={null} { "doc_submission_ids": [ "3Ar9BnQCKIrB3SYjKGBzCtFs6XL", "3Ar9BnQCKIrB3SYjKGBzCtFs6XM" ] } ``` ## Example response (200) ```json theme={null} { "id": "3Ar9BnQCKIrB3SYjKGBzCtFs6XL", "name": "Acme Corp", "status": "pending", "created": "2026-01-15T10:00:00Z", "updated": "2026-06-09T12:00:00Z" } ``` `status` will remain `"pending"` while Brale reviews the submitted documents. It transitions to `"complete"` once verification passes or `"rejected"` if declined. Brale may also send `account.verification.documents_required` again if it needs more documents. Stage and link those the same way. ## Error responses | Status | Cause | | - | - | | `400` | `doc_submission_ids` is empty or missing. | | `404` | Account not found. | | `422` | Document upload not allowed for this account's current state. | | `422` | `document_not_required`: a staged document is not one the account currently requires. `other` and, for a business, `aml_program` are accepted at any time. | ## Verification webhooks Subscribe to verification events so your integration is notified when documents are needed or when verification completes. Create a subscription with `POST /accounts/{account_id}/webhooks` and include `account.verification.documents_required` in the `events` array. See the [Webhooks overview](/webhooks/overview) for subscription setup and signature verification. | Event | When it fires | | - | - | | `account.verification.documents_required` | Brale's KYB or KYC review determines one or more documents must be uploaded. | | `account.verification.completed` | Account verification passes and the account is enabled (`status` becomes `complete`). | | `account.verification.rejected` | Account verification is declined (`status` becomes `rejected`). Terminal: uploading more documents does not reopen it. | **Typical reactive flow** (documents requested after initial submission): 1. Create the account (`POST /accounts`). 2. Brale reviews the application asynchronously. 3. If additional documents are required, Brale sends `account.verification.documents_required` to your webhook URL. 4. [Stage each required document](/api-reference/brale/stage-verification-document) (use `document_kind` and `person_label` from the webhook payload or list endpoint when present). 5. Link staged submissions with this endpoint. 6. Brale reviews the documents. It may send `account.verification.documents_required` again, in which case repeat steps 4 and 5. 7. When verification passes, Brale sends `account.verification.completed`. If verification is declined, Brale sends `account.verification.rejected`. ## Required scope `accounts:write` # Retrieve all accounts Source: https://docs.brale.xyz/api-reference/brale/list-accounts GET /accounts Retrieve your client account and any managed accounts, returning account IDs, names, and KYB status. Use the playground below to try this endpoint directly, or review the OpenAPI details in the right panel. > [!NOTE] > > Account creation requires KYB / business details (see [Create a customer account](/api-reference/brale/create-account)), but account list responses return only this account summary for each account and do not include sensitive KYB details. ## Response shape `GET /accounts` returns a JSON array of Account summary objects. Each element matches the [Retrieve a customer account](/api-reference/brale/get-account) shape. ### Example ```json title="Response" theme={null} [ { "id": "2VcUIIsgARwVbEGlIYbhg6fGG57", "name": "ABC Company", "status": "complete", "created": "2026-01-01T00:00:00Z", "updated": "2026-01-01T00:00:00Z" }, { "id": "34lCJZ2bxbPAzB3ou67Md01veUo", "name": "Managed Account Beta", "status": "pending", "created": "2026-01-15T12:00:00Z", "updated": "2026-01-15T12:00:00Z" } ] ``` # Fetch all addresses Source: https://docs.brale.xyz/api-reference/brale/list-addresses GET /accounts/{account_id}/addresses Retrieves all addresses (internal and external) associated with the given account. Use the playground below to try this endpoint directly, or review the OpenAPI details in the right panel. ## Supported query parameters You can filter the results using the following query parameters: | Parameter | Type | Description | | - | - | - | | `address` | string | Filters results to addresses whose onchain address exactly matches the provided value (e.g., an EVM or Solana address). | | `type` | enum | Filter by address type: `internal` \| `external`. | | `transfer_type` | enum (repeatable) | Filter by one or more transfer types (e.g., `ethereum`, `base`, `solana`, `stellar`). | > [!TIP] > > If you already know the onchain address you are looking for, you can filter the addresses list by passing the exact address in the `address` query parameter. This is useful when you need to resolve an onchain address to its Brale `address_id`. > [!NOTE] > > If you already know the `address_id`, use [`GET /accounts/{account_id}/addresses/{address_id}`](/api-reference/brale/get-address) to retrieve a single Address directly. ### Example: filter by exact onchain address To find a specific registered onchain address, pass it as the `address` query parameter: ```bash theme={null} curl --request GET \ --url "https://api.brale.xyz/accounts/${ACCOUNT_ID}/addresses?address=0xcdCfd05B57c6136F090658C123063d12DebaA51D" \ --header "Authorization: Bearer ${ACCESS_TOKEN}" ``` ### Example: filter by type and transfer type ```bash theme={null} curl --request GET \ --url "https://api.brale.xyz/accounts/${ACCOUNT_ID}/addresses?type=external&transfer_type=solana&transfer_type=base" \ --header "Authorization: Bearer ${ACCESS_TOKEN}" ``` # Fetch all automations for an account Source: https://docs.brale.xyz/api-reference/brale/list-automations GET /accounts/{account_id}/automations Lists the Automations (virtual accounts) for an account. Use the playground below to try this endpoint directly, or review the OpenAPI details in the right panel. # Fetch all financial institutions Source: https://docs.brale.xyz/api-reference/brale/list-financial-institutions GET /accounts/{account_id}/financial-institutions Returns all financial institutions associated with the given account. Use the playground below to try this endpoint directly, or review the OpenAPI details in the right panel. # List Token Burns Source: https://docs.brale.xyz/api-reference/brale/list-token-burns GET /accounts/{account_id}/tokens/burns List tokenization burn orders for an account, returned newest first with status, amount, and destination details. ``` GET /accounts/{account_id}/tokens/burns ``` Required scope: `self_attested_tokens:read`. Returns the list of burn orders for a tokenization account, newest first. ## Path parameters | Name | Type | Description | | - | - | - | | `account_id` | string | KSUID of the tokenization account. | ## Example request ```bash theme={null} curl --request GET \ --url https://api.brale.xyz/accounts/{account_id}/tokens/burns \ --header 'Authorization: Bearer ' ``` ## Example success response ```json theme={null} { "data": [ { "id": "2XyBurnKsuid000000000000000", "status": "completed", "amount": "1000.50", "source": { "address_id": "2VcUIIsgARwVbEGlIYbhg6fGG57", "value_type": "MY_TOKEN", "transfer_type": "base" }, "created_at": "2025-01-15T12:00:00Z" } ] } ``` ## Example error response ```json theme={null} { "status": 403, "title": "Forbidden", "detail": "Account is not configured as a tokenization (self-attested) account." } ``` ## Related endpoints * [Create token burn](/api-reference/brale/create-token-burn) * [Get token burn](/api-reference/brale/get-token-burn) # List Token Mints Source: https://docs.brale.xyz/api-reference/brale/list-token-mints GET /accounts/{account_id}/tokens/mints List tokenization mint orders for an account, returned newest first with status, amount, and source details. ``` GET /accounts/{account_id}/tokens/mints ``` Required scope: `self_attested_tokens:read`. Returns the list of mint orders for a tokenization account, newest first. ## Path parameters | Name | Type | Description | | - | - | - | | `account_id` | string | KSUID of the tokenization account. | ## Example request ```bash theme={null} curl --request GET \ --url https://api.brale.xyz/accounts/{account_id}/tokens/mints \ --header 'Authorization: Bearer ' ``` ## Example success response ```json theme={null} { "data": [ { "id": "2XyMintKsuid000000000000000", "status": "completed", "amount": "1000.50", "destination": { "address_id": "2VcUIIsgARwVbEGlIYbhg6fGG57", "value_type": "MY_TOKEN", "transfer_type": "base" }, "created_at": "2025-01-15T12:00:00Z" } ] } ``` ## Example error response ```json theme={null} { "status": 403, "title": "Forbidden", "detail": "Account is not configured as a tokenization (self-attested) account." } ``` ## Related endpoints * [Create token mint](/api-reference/brale/create-token-mint) * [Get token mint](/api-reference/brale/get-token-mint) # List Token Transfers Source: https://docs.brale.xyz/api-reference/brale/list-token-transfers GET /accounts/{account_id}/tokens/transfers List tokenization transfers for an account, returned newest first with source, destination, amount, and status. ``` GET /accounts/{account_id}/tokens/transfers ``` Required scope: `self_attested_tokens:read`. Returns the list of tokenization transfers for an account, newest first. ## Path parameters | Name | Type | Description | | - | - | - | | `account_id` | string | KSUID of the tokenization account. | ## Example request ```bash theme={null} curl --request GET \ --url https://api.brale.xyz/accounts/{account_id}/tokens/transfers \ --header 'Authorization: Bearer ' ``` ## Example success response ```json theme={null} { "data": [ { "id": "2XyTransferKsuid00000000000", "status": "completed", "amount": "1000.50", "source": { "address_id": "2VcUIIsgARwVbEGlIYbhg6fGG57", "value_type": "MY_TOKEN", "transfer_type": "base" }, "destination": { "address_id": "2srdkF6Sm8TWOJpWt1oNlTVes1w", "value_type": "MY_TOKEN", "transfer_type": "base" }, "created_at": "2025-01-15T12:00:00Z" } ] } ``` ## Example error response ```json theme={null} { "status": 403, "title": "Forbidden", "detail": "Account is not configured as a tokenization (self-attested) account." } ``` ## Related endpoints * [Create token transfer](/api-reference/brale/create-token-transfer) * [Get token transfer](/api-reference/brale/get-token-transfer) # List transfers Source: https://docs.brale.xyz/api-reference/brale/list-transfers GET /accounts/{account_id}/transfers Returns a paginated list of transfers for a given account, with optional filters. ## Filters You can narrow results by appending query parameters. All filters use **exact match** and are **case-sensitive**. When you combine multiple filters they apply with **AND** semantics — only transfers matching every supplied filter are returned. If no transfers match the filters, the API returns `200` with an empty `transfers` array and a `pagination` object. | Parameter | Filters by | Format | Example | | :- | :- | :- | :- | | `automation_id` | Automation that created the transfer | KSUID (27-char string) | `2MhCCIHuK4TGVgT9a4loQzJx1rj` | | `value_type` | Currency / token on source **or** destination | Canonical API id (case-sensitive) | `USDC`, `SBC`, `usd` | | `transfer_type` | Blockchain on source **or** destination. Fiat rails such as `wire` and `fednow_credit` are not supported as filter values. | Canonical API id (case-sensitive) | `polygon`, `base`, `solana` | | `transaction_id` | On-chain transaction hash or off-chain payment reference | String (exact match, case-sensitive) | `0xdd5646ea…` | > [!NOTE] > > `value_type` and `transfer_type` use canonical API identifiers. See [Value types](/coverage/value-types) and [Transfer types](/coverage/transfer-types) for the full list of valid values. ### Filtering by `transaction_id` Pass the full on-chain transaction hash or off-chain payment reference to find transfers that match on either the `source` or `destination` leg. The filter is exact match and case-sensitive. If no transfer matches, the API returns `200` with an empty `transfers` array. You can combine `transaction_id` with other filters — multiple filters use **AND** semantics. ## Pagination | Parameter | Description | Default | | :- | :- | :- | | `page[size]` | Number of transfers per page (1–100) | 25 | | `page[after]` | Cursor for forward pagination | — | | `page[prev]` | Cursor from `pagination.prev` in a previous response | — | Only one of `page[after]` or `page[prev]` may be present per request. Filters persist across pages — you do not need to resend them when paging. Use the `pagination.next` value from the previous response as the `page[after]` query parameter in the next request. ## Examples ### Filter by `transaction_id` ```bash theme={null} curl "https://api.brale.xyz/accounts/${ACCOUNT_ID}/transfers?transaction_id=0xdd5646ea..." \ -H "Authorization: Bearer ${AUTH_TOKEN}" ``` ### Filter by `automation_id` ```bash theme={null} curl "https://api.brale.xyz/accounts/${ACCOUNT_ID}/transfers?automation_id=2MhCCIHuK4TGVgT9a4loQzJx1rj" \ -H "Authorization: Bearer ${AUTH_TOKEN}" ``` ### Filter by `value_type` ```bash theme={null} curl "https://api.brale.xyz/accounts/${ACCOUNT_ID}/transfers?value_type=USDC" \ -H "Authorization: Bearer ${AUTH_TOKEN}" ``` ### Filter by `transfer_type` ```bash theme={null} curl "https://api.brale.xyz/accounts/${ACCOUNT_ID}/transfers?transfer_type=polygon" \ -H "Authorization: Bearer ${AUTH_TOKEN}" ``` ### FedNow Transfers for an Automation Inbound FedNow deposits create Transfers with `source.transfer_type: "fednow_credit"` and the Automation's `automation_id`. Outbound FedNow payouts have `destination.transfer_type: "fednow_credit"`. The `transfer_type` query parameter filters by blockchain only. Fiat rails such as `fednow_credit`, `same_day_ach_credit`, and `wire` are not supported as filter values. Filter by `automation_id` (inbound) or `address_id` (outbound), then check `source.transfer_type` or `destination.transfer_type` on each Transfer. ```bash theme={null} curl "https://api.brale.xyz/accounts/${ACCOUNT_ID}/transfers?automation_id=35kVg1llbsOBYvx9XKr9eOtsD9z" \ -H "Authorization: Bearer ${AUTH_TOKEN}" ``` The payment ID in a `payment.completed` webhook is not a Transfer ID. See [Receive FedNow deposits](/guides/fednow-inbound#find-the-transfer) to correlate the two. ### Combined filters Return only Polygon USDC transfers created by a specific Automation, 10 per page: ```bash theme={null} curl "https://api.brale.xyz/accounts/${ACCOUNT_ID}/transfers?automation_id=2MhCCIHuK4TGVgT9a4loQzJx1rj&value_type=USDC&transfer_type=polygon&page[size]=10" \ -H "Authorization: Bearer ${AUTH_TOKEN}" ``` ## Response schema A successful response returns `200` with the following structure: ```json title="Response" theme={null} { "pagination": { "next": "g3QAAAABdw...", "page_size": 25 }, "transfers": [ { "id": "30NoY6R1Ns2tRBcx1Kb16SnuXOW", "status": "complete", "amount": { "value": "100.00", "currency": "USD" }, "created_at": "2025-07-25T21:03:55.364134Z", "updated_at": "2025-07-25T21:05:07.779018Z", "source": { "address_id": "2MhCCIHuK4TGVgT9a4loQzJx1rj", "value_type": "USDC", "transfer_type": "polygon", "transaction_id": "0xdd5646ea…" }, "destination": { "address_id": "2O6asmNK4TGVgT9a4loQzJx1rjH", "value_type": "USDC", "transfer_type": "polygon", "transaction_id": "0xdd5646ea…" }, "note": null }, { "id": "3C0QcbwVywOGyU2HBSenljm5dhU", "status": "complete", "failure": null, "amount": { "value": "102.0", "currency": "USD" }, "created_at": "2026-04-07T00:01:27.756775Z", "updated_at": "2026-04-07T00:01:44.824834Z", "source": { "transfer_type": "wire", "financial_institution_id": "3AjRnbvj9Mq6crkviJv08d0KLB2", "value_type": "USD", "payment_details": { "received_at": "2026-04-07T00:01:24.514000Z", "sender_name": "Originator Name", "sender_bank_name": "JPMorgan Chase Bank", "sender_bank_routing_number": "000000123", "payment_reference": "Simulated Wire", "imad": "20260406XOIZJDPP953495" } }, "destination": { "transaction_id": "0x41c66f1d059dad7a55a854e157a1b5b938780c77ba5296e434a02dfb1727fe5e", "transfer_type": "base", "address_id": "3ARaM0I93ObWOIFDIztsTx4TAsp", "value_type": "ARB" }, "note": null, "automation_id": "3AjRnDClEzwuCKlRioG3OXMS4pH" }, { "id": "3D1RcbwVywOGyU2HBSenljm5dhV", "status": "complete", "amount": { "value": "100.00", "currency": "USD" }, "created_at": "2026-04-07T00:01:27.756775Z", "updated_at": "2026-04-07T00:05:12.102000Z", "source": { "address_id": "2VcUIonJeVQzFoBuC7LdFT0dRe4", "value_type": "SBC", "transfer_type": "solana", "transaction_id": "5K8…" }, "destination": { "address_id": "34yGFQf7tP1HJCPAWNGaN4rh4nX", "value_type": "USD", "transfer_type": "wire", "wire_memo": "Invoice 1048", "payment_details": { "imad": "20260406XOIZJDPP953495" } }, "note": null } ] } ``` ### `source.payment_details` `source.payment_details` appears when Brale has underlying payment metadata to expose for the source leg of a transfer. This is primarily relevant for inbound fiat-funded transfers. The object is optional and is not present on all transfers. Wire transfers typically include the full set of fields. ACH transfers may include only a subset — fields may be `null` or omitted depending on available rail metadata. | Field | Type | Description | | :- | :- | :- | | `received_at` | string (ISO 8601) | When the underlying payment was received or posted | | `sender_name` | string \| null | Name of the originating sender, when available | | `sender_bank_name` | string \| null | Originating bank name, when available | | `sender_bank_routing_number` | string \| null | Originating bank routing number, when available | | `payment_reference` | string \| null | Sender-provided payment reference or memo, when available. For inbound wires, Brale may also populate this field from "Instruction for Creditor Agent," which some banks label "Message to receiving bank." This fallback is used only when no existing memo, Originator-to-Beneficiary Information (OBI), or remittance reference is available. Existing reference precedence is preserved. | | `imad` | string \| null | Wire IMAD / tracking identifier, when available | | `trace_number` | string \| null | ACH trace identifier for the underlying payment, when available. Primarily relevant for inbound ACH-funded transfers. | See [Transfers — `source.payment_details`](/key-concepts/transfers#sourcepayment_details) for full details. ### `destination.payment_details` `destination.payment_details` appears when Brale has underlying payment metadata to expose for the destination leg of a transfer. This is primarily relevant for outbound wire and ACH transfers. The object is optional and may be absent immediately after a transfer is created. Brale populates it later once the wire IMAD or the ACH trace number is available. | Field | Type | Description | | :- | :- | :- | | `imad` | string \| null | Wire IMAD / tracking identifier for the outbound wire, when available | | `trace_number` | string \| null | ACH trace number for the outbound ACH payout (`ach_credit` or `same_day_ach_credit`), when available | | `sent_at` | string (date-time) \| null | When the outbound wire or ACH payout was sent, when available | See [Transfers — `destination.payment_details`](/key-concepts/transfers#destinationpayment_details) for full details. # List Verification Documents Source: https://docs.brale.xyz/api-reference/brale/list-verification-documents GET /accounts/{account_id}/verification/documents List required KYB/KYC documents and their upload status for an account. Use the playground below to try this endpoint directly, or review the OpenAPI details in the right panel. Returns the documents Brale currently requires for an account's KYB verification, including upload status for each. Use this endpoint to poll for required documents instead of relying on the `account.verification.documents_required` webhook. > [!NOTE] > > For each document with `status: "pending_upload"`, stage the file with [Stage a Verification Document](/api-reference/brale/stage-verification-document) (`POST /documents`), then link it with [Link Verification Documents](/api-reference/brale/link-verification-documents). See [Webhook Events](/webhooks/webhook-events#accountverificationdocuments_required) for the webhook alternative. ## Example response (200) ```json theme={null} { "account_id": "3Ar9BnQCKIrB3SYjKGBzCtFs6XL", "documents": [ { "document_kind": "certificate_of_good_standing", "document_type": "business_document", "display_name": "Certificate of Good Standing", "status": "pending_upload", "person_label": null }, { "document_kind": "government_photo_id", "document_type": "individual_document", "display_name": "Government-issued photo ID", "status": "uploaded", "person_label": "Jane Doe" } ], "other_documents_uploaded_count": 1, "available_person_labels": ["Jane Doe", "Chief Financial Officer"] } ``` ### Response fields | Field | Type | Description | | - | - | - | | `account_id` | string (KSUID) | The account ID. | | `documents` | array | Required documents and their current status. | | `documents[].document_kind` | string | Code to pass as `document_kind` when staging a upload. | | `documents[].document_type` | string | `business_document`, `individual_document`, or `misc_document`. | | `documents[].display_name` | string | Human-readable document name. | | `documents[].status` | string | `pending_upload` or `uploaded`. | | `documents[].person_label` | string \| null | Person this document applies to (individual documents only). | | `other_documents_uploaded_count` | integer | Count of miscellaneous (`other`) documents already uploaded. | | `available_person_labels` | array | Person labels on the account's verification profile — use when staging individual documents. | ## Error responses | Status | Cause | | - | - | | `401` | Missing or invalid access token. | | `403` | Client lacks `accounts:read` scope. | | `404` | Account not found. | ## Required scope `accounts:read` # List Webhook Delivery Attempts Source: https://docs.brale.xyz/api-reference/brale/list-webhook-delivery-attempts GET /accounts/{account_id}/webhooks/deliveries List webhook delivery attempts for debugging delivery status, retries, and failures. ``` GET /accounts/{account_id}/webhooks/deliveries ``` Required scope: `webhooks:read`. Delivery logs are useful for debugging: * Whether Brale attempted delivery * What HTTP status your endpoint returned * Whether a delivery was retried * Failure messages * Attempt numbers ## Path parameters | Name | Type | Description | | - | - | - | | `account_id` | string | The Brale account whose delivery attempts you want to list. | ## Query parameters | Name | Type | Description | | - | - | - | | `page[size]` | integer | Page size. | | `page[after]` | string | Cursor for the next page. | | `page[before]` | string | Cursor for the previous page. | Do not send both `page[after]` and `page[before]`. ## Example request ```bash theme={null} curl "https://api.brale.xyz/accounts/{account_id}/webhooks/deliveries?page[size]=25" \ -H "Authorization: Bearer {access_token}" ``` See the [Webhooks overview](/webhooks/overview) for how delivery, retries, and signatures work. # List Webhook Event Types Source: https://docs.brale.xyz/api-reference/brale/list-webhook-event-types GET /accounts/{account_id}/webhooks/event_types Discover the webhook event types supported by Brale for a given account. ``` GET /accounts/{account_id}/webhooks/event_types ``` Required scope: `webhooks:read`. ## Path parameters | Name | Type | Description | | - | - | - | | `account_id` | string | The Brale account whose supported event types you want to discover. | ## Example request ```bash theme={null} curl https://api.brale.xyz/accounts/{account_id}/webhooks/event_types \ -H "Authorization: Bearer {access_token}" ``` ## Example response ```json theme={null} { "event_types": [ { "event_type": "address.created", "summary": "Emitted when a wallet or bank account is added to an account." }, { "event_type": "address.ready", "summary": "Emitted when a wallet or bank account is ready to use." }, { "event_type": "transfer.created", "summary": "Emitted when a transfer (token order) is created." }, { "event_type": "transfer.completed", "summary": "Emitted when a transfer (token order) reaches complete status." }, { "event_type": "transfer.canceled", "summary": "Emitted when a transfer (token order) is canceled." }, { "event_type": "transfer.failed", "summary": "Emitted when a transfer (token order) reaches failed status." }, { "event_type": "transfer.refunding", "summary": "Emitted when a refund for a transfer (token order) starts." }, { "event_type": "transfer.refunded", "summary": "Emitted when a refund for a transfer (token order) completes." }, { "event_type": "payment.completed", "summary": "Emitted when a payment reaches complete status." }, { "event_type": "account.verification.documents_required", "summary": "Emitted when an account requires additional verification documents." }, { "event_type": "account.verification.completed", "summary": "Emitted when account verification reaches a completed state." }, { "event_type": "account.verification.rejected", "summary": "Emitted when account verification is declined." } ] } ``` ## Subscribing with wildcards When you create or update a subscription, the `events` array accepts either a concrete event type from the list above or a namespace wildcard of the form `.*`. For example, `transfer.*` subscribes to all `transfer.*` events (`transfer.created`, `transfer.completed`, `transfer.canceled`, `transfer.failed`, `transfer.refunding`, `transfer.refunded`), `address.*` subscribes to `address.created` and `address.ready`, and `account.*` subscribes to all `account.*` events including `account.verification.*` variants. Wildcards are supported for every event family Brale exposes. New events added to a family in the future are automatically included in any matching wildcard subscription — no subscription update required. See [Create Webhook Subscription — Wildcard event subscriptions](/api-reference/brale/create-webhook-subscription#wildcard-event-subscriptions) for full details, and the [Webhooks overview](/webhooks/overview) for how subscriptions and event delivery work. # List Webhook Subscriptions Source: https://docs.brale.xyz/api-reference/brale/list-webhook-subscriptions GET /accounts/{account_id}/webhooks List the webhook subscriptions registered under a Brale account. ``` GET /accounts/{account_id}/webhooks ``` Required scope: `webhooks:read`. The `sharedSecret` is not returned by this endpoint. ## Path parameters | Name | Type | Description | | - | - | - | | `account_id` | string | The Brale account whose subscriptions you want to list. | ## Example request ```bash theme={null} curl https://api.brale.xyz/accounts/{account_id}/webhooks \ -H "Authorization: Bearer {access_token}" ``` ## Example response ```json theme={null} { "subscriptions": [ { "id": "3D3jNzs2r7Sf78qtYpRe1biscLG", "events": ["transfer.completed"], "url": "https://your-app.example.com/webhooks/brale", "status": "active" } ] } ``` See the [Webhooks overview](/webhooks/overview) for how subscriptions are scoped to a Brale account and environment. # Register financial institution account via Plaid and return address ID Source: https://docs.brale.xyz/api-reference/brale/register-financial-institution-account-via-plaid-and-return-address-id POST /accounts/{account_id}/plaid/register-account Completes the Plaid-linked bank account flow by exchanging a Plaid public_token and returning the new address_id. This endpoint completes the **Plaid-linked bank account** flow. It exchanges the `public_token` from Plaid Link, registers the bank account, and returns an `address_id` you can use in transfers. The Plaid-linked path supports `ach_debit`, `ach_credit`, and `rtp_credit` (no longer available). It does **not** support `wire`. > [!NOTE] > > **Previous step:** Generate a `link_token` using [Create Plaid link token](/api-reference/brale/create-plaid-link-token) and complete the Plaid Link flow before calling this endpoint. For a full comparison of both external bank address creation paths, see [External bank addresses](/key-concepts/external-bank-addresses). Use the playground below to try this endpoint directly, or review the OpenAPI details in the right panel. # Simulate an Automation deposit Source: https://docs.brale.xyz/api-reference/brale/simulate-automation-deposit api-reference/brale-openapi.yaml POST /accounts/{account_id}/automations/{automation_id}/simulations/deposits Simulate an inbound ACH, wire, or FedNow deposit into a testnet Automation and run the normal Transfer, mint, and webhook flow without moving real fiat. Testnet Automations return placeholder banking coordinates that cannot receive real deposits. Use this endpoint to simulate an inbound ACH, wire, or FedNow deposit instead. Brale creates a simulated inbound payment, runs the normal Automation mint path, and returns the resulting Transfer. Brale does not contact a bank, and no real fiat moves. **POST** `https://api.brale.xyz/accounts/{account_id}/automations/{automation_id}/simulations/deposits` Required scopes: `automations:write` and `network:testnet` > [!NOTE] > > This endpoint is available only with testnet credentials. The Automation must belong to the account in the path, have `status: "active"`, and have a destination on a testnet chain, such as `base_sepolia` or `solana_devnet`. ## Path parameters | Parameter | Type | Required | Description | | :- | :- | :- | :- | | `account_id` | string (KSUID) | Yes | The account that owns the Automation. | | `automation_id` | string (KSUID) | Yes | The testnet Automation to fund. | ## Headers | Header | Required | Description | | :- | :- | :- | | `Authorization` | Yes | `Bearer ` from testnet API credentials. | | `Idempotency-Key` | Yes | A unique key for this simulated deposit. See [Idempotency](#idempotency). | ## Request body The request body accepts only the fields below. Brale rejects additional properties. | Field | Type | Required | Description | | :- | :- | :- | :- | | `amount.value` | string | Yes | Positive decimal amount greater than zero, such as `"10.00"`. | | `amount.currency` | string | Yes | Must be a reserve currency accepted by the API, such as `USD`. | | `transfer_type` | string | Yes | Inbound rail to simulate. Accepted values: `ach`, `wire`, `fednow`. These are simulator inputs, not Transfer rail identifiers. `fednow` produces a Transfer with `source.transfer_type: "fednow_credit"`. Do not send `fednow_credit` here. | ## Examples ```bash FedNow theme={null} curl --request POST \ --url "https://api.brale.xyz/accounts/${ACCOUNT_ID}/automations/${AUTOMATION_ID}/simulations/deposits" \ --header "Authorization: Bearer ${AUTH_TOKEN}" \ --header "Content-Type: application/json" \ --header "Idempotency-Key: $(uuidgen)" \ --data '{ "amount": { "value": "1.00", "currency": "USD" }, "transfer_type": "fednow" }' ``` ```bash Wire theme={null} curl --request POST \ --url "https://api.brale.xyz/accounts/${ACCOUNT_ID}/automations/${AUTOMATION_ID}/simulations/deposits" \ --header "Authorization: Bearer ${AUTH_TOKEN}" \ --header "Content-Type: application/json" \ --header "Idempotency-Key: $(uuidgen)" \ --data '{ "amount": { "value": "10.00", "currency": "USD" }, "transfer_type": "wire" }' ``` ```bash ACH theme={null} curl --request POST \ --url "https://api.brale.xyz/accounts/${ACCOUNT_ID}/automations/${AUTOMATION_ID}/simulations/deposits" \ --header "Authorization: Bearer ${AUTH_TOKEN}" \ --header "Content-Type: application/json" \ --header "Idempotency-Key: $(uuidgen)" \ --data '{ "amount": { "value": "10.00", "currency": "USD" }, "transfer_type": "ach" }' ``` ## Response ### 202 Accepted Returns the standard [Transfer](/key-concepts/transfers) representation. There is no separate simulation resource. The Transfer includes `automation_id`, and `source.transfer_type` records the simulated rail. For a `fednow` simulation, `source.transfer_type` is `fednow_credit`. `202 Accepted` means Brale accepted the simulated deposit. It does not mean the mint is complete. ```json Response theme={null} { "id": "3F1kP8vQ2mZrT6yN0bXcW4hJd7s", "status": "pending", "failure": null, "amount": { "value": "10.00", "currency": "USD" }, "source": { "value_type": "USD", "transfer_type": "wire" }, "destination": { "address_id": "3ARaM0I93ObWOIFDIztsTx4TAsp", "value_type": "SBC", "transfer_type": "base_sepolia" }, "note": null, "automation_id": "3AjRnDClEzwuCKlRioG3OXMS4pH", "created_at": "2026-09-29T17:00:00.000000Z", "updated_at": "2026-09-29T17:00:00.000000Z" } ``` ```json Response (FedNow simulation) theme={null} { "id": "36JqT2nF4kW8xYbR1sLmPz9cVdA", "status": "pending", "failure": null, "amount": { "value": "1.00", "currency": "USD" }, "source": { "value_type": "USD", "transfer_type": "fednow_credit" }, "destination": { "address_id": "3ARaM0I93ObWOIFDIztsTx4TAsp", "value_type": "SBC", "transfer_type": "base_sepolia" }, "note": null, "automation_id": "3AjRnDClEzwuCKlRioG3OXMS4pH", "created_at": "2026-10-15T17:00:00.000000Z", "updated_at": "2026-10-15T17:00:00.000000Z" } ``` Fetch the Transfer with [Get a transfer](/api-reference/brale/get-transfer) to follow it to `complete` and read `destination.transaction_id` for the testnet mint. ## Errors | Status | `type` | When | | :- | :- | :- | | `400` | Schema validation error | `transfer_type` is not `ach`, `wire`, or `fednow` (for example, `rtp` or `fednow_credit`), a required field is missing, or the body includes an unknown field. | | `400` | `invalid_currency` | `amount.currency` is not a reserve currency accepted by the API (for example, `EUR`). | | `400` | `invalid_amount` | `amount.value` is malformed, zero, or negative. For zero, `detail` is `Amount must be greater than zero`. | | `401` | | Missing or invalid bearer token. | | `403` | | The credentials do not include `network:testnet` or another required scope. Mainnet API keys receive this response. | | `404` | | The account or Automation was not found, or the Automation does not belong to the account in the path. | | `422` | `mainnet_destination` | The Automation destination is on a mainnet chain. `detail` is `Deposit simulation is only available for testnet automations`. | | `422` | `automation_not_active` | The Automation is pending, disabled, archived, or otherwise inactive. `detail` is `Automation must be active to simulate a deposit`. | | `422` | | The `Idempotency-Key` was already used with a different request body or URI. | ## Idempotency `Idempotency-Key` is required, as on every `POST` request. See [Idempotency](/key-concepts/idempotency). * Send a new key to create a new simulated deposit. * Retry with the same key and the same body to get the cached `202` response. The retry does not create a second payment, Transfer, transaction, or mint. * Reusing a key with a different body or URI returns `422` and does not create another mint. ## Webhooks Brale emits the normal `payment.completed` [webhook event](/webhooks/webhook-events) for the simulated inbound payment, followed by the normal `transfer.*` events as the Transfer progresses. There is no simulation-specific webhook type. Simulation creates simulated fiat funding only. It does not test a real bank or the FedNow network. See [Receive FedNow deposits](/guides/fednow-inbound#test-on-testnet). # Stage a Verification Document Source: https://docs.brale.xyz/api-reference/brale/stage-verification-document POST /documents Upload a KYB/KYC document for later linking to an account. Use the playground below to try this endpoint directly, or review the OpenAPI details in the right panel. Uploads a verification document file and returns a `doc_submission_id`. Staged submissions are not yet associated with an account — link them with [Link Verification Documents](/api-reference/brale/link-verification-documents) (`PATCH /accounts/{account_id}`) or pass the IDs when [creating an account](/api-reference/brale/create-account). > [!NOTE] > > This endpoint accepts `multipart/form-data`, not JSON. Include an `Idempotency-Key` header (UUID v4) on every request. See [Idempotency](/key-concepts/idempotency). ## Request fields | Field | Type | Required | Description | | - | - | - | - | | `file` | file | Yes | Document file. Accepted formats: PDF, PNG, JPG, JPEG. Maximum size: 25 MB. | | `document_kind` | string | Yes | Document type code. See supported values below. Display names (for example, `IRS SS-4 / 147-C EIN letter`) are also accepted. | | `person_label` | string | Conditional | Required for individual documents (`government_photo_id`). Must match a person on the account when linking — use `available_person_labels` from [List Verification Documents](/api-reference/brale/list-verification-documents) or the `person_label` in an `account.verification.documents_required` webhook. | ### Supported `document_kind` values | `document_kind` | `document_type` | Description | | - | - | - | | `articles_of_incorporation` | `business_document` | Articles of Incorporation / Organization | | `certificate_of_good_standing` | `business_document` | Certificate of Good Standing | | `ein_letter` | `business_document` | IRS SS-4 / 147-C EIN letter | | `regulatory_license` | `business_document` | Regulatory License or Registration | | `entity_registration` | `business_document` | Entity Registration Document | | `aml_program` | `business_document` | AML Assessment or Program. Optional: never a required document, and a business can link it at any time. | | `government_photo_id` | `individual_document` | Government-issued photo ID (requires `person_label`) | | `other` | `misc_document` | Other supporting documents | `regulatory_license`, `entity_registration`, and `aml_program` apply to regulated businesses outside the US under standard verification. See [Required documents for a regulated non-US business](/key-concepts/accounts#required-documents-for-a-regulated-non-us-business). ## Example request ```bash theme={null} curl -X POST https://api.brale.xyz/documents \ -H "Authorization: Bearer {access_token}" \ -H "Idempotency-Key: {uuid}" \ -F "file=@ein-letter.pdf" \ -F "document_kind=ein_letter" ``` For an individual document: ```bash theme={null} curl -X POST https://api.brale.xyz/documents \ -H "Authorization: Bearer {access_token}" \ -H "Idempotency-Key: {uuid}" \ -F "file=@id.pdf" \ -F "document_kind=government_photo_id" \ -F "person_label=Jane Doe" ``` ## Example response (201) ```json theme={null} { "doc_submission_id": "3Ar9BnQCKIrB3SYjKGBzCtFs6XL" } ``` Pass the returned `doc_submission_id` to `PATCH /accounts/{account_id}` or include it in `doc_submission_ids` on account creation. ## Error responses | Status | Cause | | - | - | | `400` | `file` or `document_kind` is missing, or `document_kind` is invalid. | | `401` | Missing or invalid access token. | | `403` | Client lacks `accounts:write` scope. | | `422` | `person_label` is required for individual documents, file type is unsupported, or file exceeds the size limit. | ## Required scope `accounts:write` # Update an Address Source: https://docs.brale.xyz/api-reference/brale/update-address PATCH /accounts/{account_id}/addresses/{address_id} Update the name, status, transfer types, or recipient details for an existing address. Use the playground below to try this endpoint directly, or review the OpenAPI details in the right panel. This endpoint lets you make targeted updates to an existing address. All fields are optional — only include what you want to change. **Endpoint** ```http theme={null} PATCH https://api.brale.xyz/accounts/{account_id}/addresses/{address_id} ``` ### Updatable fields | Field | Type | Description | | - | - | - | | `name` | string | Rename the address. | | `status` | string | `"archived"` to archive, `"active"` to unarchive (external addresses only — custodial addresses cannot be unarchived). | | `additional_transfer_types` | array of strings | Add new rails to the address (e.g. `"wire"`, `"fednow_credit"`, `"solana"`). For bank addresses, supply `bank_address` and `beneficiary_address` before adding `wire`. | | `bank_address` | object | Street address of the bank. Required for bank addresses before enabling wire. | | `beneficiary_address` | object | Street address of the beneficiary. Required for bank addresses before enabling wire. | | `account_holder_type` | string | Bank addresses only. `"individual"` or `"business"`. Can be set only while it is not set yet. Sending the value that is already stored succeeds with no change; a different value returns `400` `account_holder_type_already_set`. | | `date_of_birth` | string | Bank addresses only. Individual recipient's date of birth in `YYYY-MM-DD` format. Can be set only while no date of birth is stored. Sending the stored value succeeds with no change. A different value returns `400` `date_of_birth_already_set`. | ### Add transfer types to an existing address To add new rails to an existing address (for example, adding `ach_credit` and `same_day_ach_credit` to an address), send a `PATCH` to the same endpoint with `additional_transfer_types`: ```http theme={null} PATCH https://api.brale.xyz/accounts/{account_id}/addresses/{address_id} ``` ```json Request theme={null} { "additional_transfer_types": ["ach_credit", "same_day_ach_credit"] } ``` `additional_transfer_types` is **merged** into the address's existing `transfer_types`. You do not need to resend the full existing list — send only the rails you want to add. Sending a transfer type that is already enabled is idempotent. ### Add FedNow to an existing recipient To send FedNow payouts to an existing bank address, such as an ACH recipient, add `fednow_credit`: ```json Request theme={null} { "additional_transfer_types": ["fednow_credit"] } ``` An address with `["ach_credit"]` becomes `["ach_credit", "fednow_credit"]`. The address `id` does not change, so existing references keep working. `bank_address` and `beneficiary_address` are not required to add `fednow_credit`. Confirm `fednow_credit` is present before sending a payout. See [Send FedNow payouts](/guides/fednow-outbound). ### Set the account holder type For bank addresses created without `account_holder_type`, set it once: ```json Request theme={null} { "account_holder_type": "individual" } ``` It determines the ACH SEC code for payouts to this address (`individual` → PPD, `business` → CCD). Once set, it cannot be changed through the API. ### Set the recipient's date of birth For individual bank recipients created without a date of birth, set it once: ```json Request theme={null} { "date_of_birth": "1990-01-31" } ``` * The date must be in `YYYY-MM-DD` format and in the past. Otherwise Brale returns `400` `validation_errors`. The error response does not include the submitted value. * Business recipients do not accept `date_of_birth`. Sending it for a business recipient returns `400` `date_of_birth_not_supported`. Setting `account_holder_type` to `business` on an address with a stored date of birth returns the same error. * If Brale cannot update the recipient, it does not save the date of birth. Brale returns `422` `recipient_update_failed`, or `503` when the update is temporarily unavailable. * Responses return `date_of_birth` masked to the year (for example, `"1990-**-**"`). ### Error responses * `400` — invalid or incompatible transfer types, attempting to archive a pending address, attempting to unarchive a custodial address, invalid status value, or invalid `account_holder_type` value. * `400` `account_holder_type_already_set` — the address already has a different `account_holder_type`. * `400` `date_of_birth_already_set` — the address already has a different `date_of_birth`. * `400` `date_of_birth_not_supported` — `date_of_birth` was sent for a business recipient, or `account_holder_type: business` was sent for an address with a stored date of birth. * `404` — address not found or not owned by the account. * `422` `fednow_routing_number_not_supported` — the address's routing number does not participate in FedNow. Do not retry. * `422` `fednow_provider_registration_failed` — FedNow registration failed. This can be temporary. Retry the same request after a backoff. * `422` `recipient_update_failed` — Brale could not update the recipient with the new date of birth. The change is not saved. * `503` — the recipient update is temporarily unavailable. The change is not saved. Retry after a backoff. Required scope: `addresses:write` # Update Webhook Subscription Source: https://docs.brale.xyz/api-reference/brale/update-webhook-subscription PATCH /accounts/{account_id}/webhooks/subscriptions/{subscription_id} Update the URL or subscribed event types for an active webhook subscription. ``` PATCH /accounts/{account_id}/webhooks/subscriptions/{subscription_id} ``` Updates an active webhook subscription. At least one of `url` or `events` must be provided. When `events` is sent, it replaces the full set of subscribed event types — it is not additive. ## Request body fields | Field | Type | Required | Description | | - | - | - | - | | `url` | string | At least one of `url` or `events` | New HTTPS destination URL for webhook `POST` requests. Max 2048 characters. | | `events` | array of strings | At least one of `url` or `events` | Replaces all currently subscribed event types. Accepts concrete event types (e.g., `transfer.completed`) and namespace wildcards (e.g., `transfer.*`). See [supported event types](/webhooks/webhook-events) and [Wildcard event subscriptions](/api-reference/brale/create-webhook-subscription#wildcard-event-subscriptions). | ### Example: change URL only ```json theme={null} { "url": "https://your-server.example.com/webhooks/brale" } ``` ### Example: replace subscribed events ```json theme={null} { "events": ["transfer.completed", "transfer.failed"] } ``` ### Example: replace with a wildcard Subscribe to every event in a family by using a `.*` wildcard. Wildcards work for all event families (`transfer.*`, `payment.*`, `account.*`, etc.). ```json theme={null} { "events": ["transfer.*", "account.*"] } ``` ## Error responses * `400` — empty patch body (no fields provided). * `404` — subscription not found or not owned by the account. * `409` — subscription is already archived; archived subscriptions cannot be updated. * `422` — unsupported event type or unknown wildcard namespace, or `events` array was empty when the `events` key was sent. Required scope: `webhooks:write`. ## Related endpoints * [Create webhook subscription](/api-reference/brale/create-webhook-subscription) * [List webhook subscriptions](/api-reference/brale/list-webhook-subscriptions) * [Get webhook subscription](/api-reference/brale/get-webhook-subscription) * [Archive webhook subscription](/api-reference/brale/archive-webhook-subscription) * [List delivery attempts](/api-reference/brale/list-webhook-delivery-attempts) * [Webhooks overview](/webhooks/overview) # Account availability Source: https://docs.brale.xyz/coverage/account-availability Geographic availability for Brale business and individual accounts, custodial and transactional, in the United States and internationally. This page is the canonical source for geographic account eligibility. It states where each customer type and account type combination is available, in the United States and internationally. ## U.S. availability by customer and account type | Customer type | Account type | Availability | | - | - | - | | Business | Custodial | Available in 44 states and territories, plus California, Massachusetts, Montana, and North Carolina. Unavailable in New York, Tennessee, Texas, Virginia, and the territories American Samoa, Guam, the Northern Mariana Islands, and the U.S. Virgin Islands. See [Custodial availability by state](#custodial-availability-by-state). | | Business | Transactional | Available in every U.S. state except New York, North Carolina, Tennessee, Texas, and Virginia. Also available in Washington, D.C. and Puerto Rico. | | Individual | Custodial | Available in 44 states and territories. Unavailable in California, Massachusetts, Montana, New York, North Carolina, Tennessee, Texas, Virginia, and the territories American Samoa, Guam, the Northern Mariana Islands, and the U.S. Virgin Islands. See [Custodial availability by state](#custodial-availability-by-state). | | Individual | Transactional | Available in every U.S. state except New York, North Carolina, Tennessee, Texas, and Virginia. Also available in Washington, D.C. and Puerto Rico. | Individual custodial accounts are U.S.-only. Outside the United States, business custodial accounts are available only to regulated businesses in the [approved countries](#approved-countries-131) that send a `regulatory_profile`. See [International custodial availability for regulated businesses](#international-custodial-availability-for-regulated-businesses). Any other non-US country on a custodial request is refused with `422 unsupported_jurisdiction`. A request from a jurisdiction Brale does not serve for the requested account type returns `422 unsupported_jurisdiction`. The rejection is permanent, so retrying the same request will not succeed and it is safe to cache the error against an idempotency key. > [!NOTE] > > All account creation remains subject to verification, program approval, applicable compliance requirements, and Brale's [prohibited businesses](/coverage/prohibited-businesses) policy. Availability in a state or country does not guarantee approval. ## Custodial availability by state Individual custodial accounts are supported in these 44 states and territories: | | | | | | - | - | - | - | | Alaska (AK) | Idaho (ID) | Missouri (MO) | Pennsylvania (PA) | | Alabama (AL) | Illinois (IL) | Mississippi (MS) | Puerto Rico (PR) | | Arkansas (AR) | Indiana (IN) | North Dakota (ND) | Rhode Island (RI) | | Arizona (AZ) | Kansas (KS) | Nebraska (NE) | South Carolina (SC) | | Colorado (CO) | Kentucky (KY) | New Hampshire (NH) | South Dakota (SD) | | Connecticut (CT) | Louisiana (LA) | New Jersey (NJ) | Utah (UT) | | Washington, D.C. (DC) | Maryland (MD) | New Mexico (NM) | Vermont (VT) | | Delaware (DE) | Maine (ME) | Nevada (NV) | Washington (WA) | | Florida (FL) | Michigan (MI) | Ohio (OH) | Wisconsin (WI) | | Georgia (GA) | Minnesota (MN) | Oklahoma (OK) | West Virginia (WV) | | Hawaii (HI) | Iowa (IA) | Oregon (OR) | Wyoming (WY) | Individual custodial accounts are **not** available in California (CA), Massachusetts (MA), Montana (MT), North Carolina (NC), New York (NY), Tennessee (TN), Texas (TX), Virginia (VA), or the territories American Samoa (AS), Guam (GU), the Northern Mariana Islands (MP), and the U.S. Virgin Islands (VI). Business custodial accounts are supported in the 44 jurisdictions above plus California (CA), Massachusetts (MA), Montana (MT), and North Carolina (NC). They are unavailable in New York (NY), Tennessee (TN), Texas (TX), Virginia (VA), and the territories American Samoa (AS), Guam (GU), the Northern Mariana Islands (MP), and the U.S. Virgin Islands (VI). ### US states and territories in requests * When the individual's `country` is `US`, `address.state` is required and must be a US state or territory, as an abbreviation or full name (`"CA"`, `"California"`, and `"PR"` all work). Otherwise the request returns `422 invalid_us_state`. * A US territory is a US jurisdiction, not a separate country. Send `country: "US"` with the territory in `address.state` (`PR`, `GU`, `AS`, `VI`, `MP`), which is how a territory address is normally written. Do not put a territory in a country field. * For a non-US individual, `address.state` is optional and free-form (a province or region). * The same rules apply to a business `address.state`, based on the business's `address.country`: a US state or territory is required when `address.country` is `US` or omitted, and `address.state` is optional and free-form otherwise. A business postal code accepts any format. ## International transactional availability Business transactional and individual transactional accounts are available in the same set of 131 approved countries outside the United States, listed below. Transactional accounts are non-custodial: they receive no Brale-managed internal wallets, hold no balances at Brale, and register external destination-only addresses. Coverage remains subject to identity verification, sanctions screening, program approval, product support, applicable law, and Brale's [prohibited businesses](/coverage/prohibited-businesses) policy. A country appearing in this list does not guarantee that an applicant from that country is approved. > [!NOTE] > > Country eligibility and verification method are separate. In some countries Brale can verify an identity number against a government registry; in others, no registry check is available and verification is completed through identity document collection instead. An eligible applicant may therefore be asked for documents even though their country is approved. The document request flow is the same as for U.S. accounts — see [Verification](/key-concepts/accounts#verification). Individual transactional accounts in these countries are created through the standard API flow: set the top-level `individual.country` and send a matching identity document type. See [Creating a non-US individual account](/key-concepts/accounts#creating-a-non-us-individual-account). Business transactional accounts in these countries are created through the standard API flow: send `entity_type: "business"`, `account_type: "transactional"`, and the business's country in `address.country`. A non-US business does not need a `regulatory_profile` to open a transactional account. See [Creating a non-US business account](/key-concepts/accounts#creating-a-non-us-business-account). ### Approved countries (131) | Country | Code | Country | Code | Country | Code | | - | - | - | - | - | - | | Andorra | AD | Guinea | GN | Paraguay | PY | | Antigua and Barbuda | AG | Guyana | GY | Peru | PE | | Argentina | AR | Honduras | HN | Philippines | PH | | Armenia | AM | Hungary | HU | Poland | PL | | Australia | AU | Iceland | IS | Portugal | PT | | Austria | AT | Ireland | IE | Romania | RO | | Azerbaijan | AZ | Israel | IL | Rwanda | RW | | Bahamas | BS | Italy | IT | Saint Kitts and Nevis | KN | | Bahrain | BH | Jamaica | JM | Saint Lucia | LC | | Belgium | BE | Japan | JP | Saint Vincent and the Grenadines | VC | | Belize | BZ | Kazakhstan | KZ | Samoa | WS | | Benin | BJ | Kiribati | KI | San Marino | SM | | Brazil | BR | Korea, South | KR | Sao Tome and Principe | ST | | Brunei | BN | Kuwait | KW | Senegal | SN | | Bulgaria | BG | Latvia | LV | Seychelles | SC | | Cabo Verde | CV | Lesotho | LS | Sierra Leone | SL | | Canada | CA | Liberia | LR | Singapore | SG | | Chad | TD | Liechtenstein | LI | Slovakia | SK | | Chile | CL | Lithuania | LT | Slovenia | SI | | Colombia | CO | Luxembourg | LU | Solomon Islands | SB | | Comoros | KM | Madagascar | MG | South Africa | ZA | | Congo, Republic of the | CG | Malawi | MW | Spain | ES | | Costa Rica | CR | Malaysia | MY | Sri Lanka | LK | | Cyprus | CY | Maldives | MV | Suriname | SR | | Czech Republic | CZ | Malta | MT | Sweden | SE | | Denmark | DK | Marshall Islands | MH | Switzerland | CH | | Djibouti | DJ | Mauritania | MR | Taiwan | TW | | Dominica | DM | Mauritius | MU | Tajikistan | TJ | | Dominican Republic | DO | Mexico | MX | Tanzania | TZ | | El Salvador | SV | Micronesia | FM | Thailand | TH | | Equatorial Guinea | GQ | Moldova | MD | Timor-Leste | TL | | Estonia | EE | Monaco | MC | Togo | TG | | Eswatini | SZ | Mongolia | MN | Tonga | TO | | Fiji | FJ | Namibia | NA | Trinidad and Tobago | TT | | Finland | FI | Nauru | NR | Turkmenistan | TM | | France | FR | Netherlands | NL | Tuvalu | TV | | Gabon | GA | New Zealand | NZ | Uganda | UG | | Gambia | GM | Nigeria | NG | United Kingdom | GB | | Georgia | GE | North Macedonia | MK | Uruguay | UY | | Germany | DE | Norway | NO | Uzbekistan | UZ | | Ghana | GH | Oman | OM | Vanuatu | VU | | Greece | GR | Palau | PW | Vatican City | VA | | Grenada | GD | Panama | PA | Zambia | ZM | | Guatemala | GT | Papua New Guinea | PG | | | Countries not in this list are not currently eligible for transactional account creation, or for business custodial account creation outside the United States. Requests for individuals in unapproved countries are rejected before verification begins. ## International custodial availability for regulated businesses A regulated business (for example, a money services business or a virtual asset service provider) in one of the [approved countries](#approved-countries-131) can be created as a business custodial account. Business custodial accounts outside the United States use the same approved-country list as transactional accounts. Send `entity_type: "business"` (or omit it), `account_type: "custodial"`, the business's country in `address.country`, and a `regulatory_profile` that identifies the regulator and the license or registration number it issued: ```json theme={null} { "entity_type": "business", "account_type": "custodial", "address": { "country": "CA" }, "regulatory_profile": { "regulator": "FINTRAC", "license_number": "M12345678" } } ``` The rest of the payload is the same as for any business account. `verification_mode` can be `standard`, or `reliance` if Brale has enabled reliance for your managing account. The customer's `regulatory_profile` does not affect reliance eligibility. Reliance requires your managing entity to be regulated by a U.S. federal functional regulator. See [Reliance eligibility](/key-concepts/account-types#reliance-eligibility). Brale requests supporting regulatory documents during verification. Sending `regulatory_profile` declares the business regulated, but it is not approval: verification still checks the license and the supporting evidence. A non-US business that sends no `regulatory_profile`, or a regulated business outside the approved countries, is refused with `422 unsupported_jurisdiction` on a custodial request. U.S. business availability is still decided by the [state table](#custodial-availability-by-state), whether or not the business is regulated. See [Creating a regulated non-US custodial business account](/key-concepts/accounts#creating-a-regulated-non-us-custodial-business-account) for the full payload. ## Custodial vs. transactional * **Custodial accounts** receive Brale-managed internal wallet addresses and can hold Brale-custodied balances. See [Custodial Accounts](/guides/custodial-accounts). * **Transactional accounts** are non-custodial. They do not receive internal wallet addresses and cannot hold balances at Brale. See [Transactional Accounts](/guides/transactional-accounts). * Transactional accounts can register external, self-custody destination addresses. * External addresses belonging to a transactional account are destination-only. They cannot originate on-chain transfers. > [!WARNING] > > Geographic account eligibility is not the same as workflow or rail availability. An account being available in a state does not mean that every payment rail, automation, transfer direction, industry, or funds flow is available to it. Consult the relevant workflow guides, [Transfer Types](/coverage/transfer-types), and [Value Types](/coverage/value-types) for capability-specific requirements. ## Which address determines eligibility * **Individual accounts** — the individual's principal residential address. * **Business accounts** — the business's principal operating address. A business's incorporation state or bank location does not, by itself, determine eligibility. ## Related * [Account types](/key-concepts/account-types) — the `entity_type` and `account_type` fields on `POST /accounts`. * [Prohibited businesses](/coverage/prohibited-businesses) — business types Brale does not onboard. * [Accounts](/key-concepts/accounts) — the full account resource, fields, and lifecycle. * [`POST /accounts`](/api-reference/brale/create-account) — API reference. # Prohibited businesses Source: https://docs.brale.xyz/coverage/prohibited-businesses Business types Brale does not onboard for custodial or transactional accounts. Brale does not onboard the following businesses: * Illegal gambling * Pseudo-pharmaceuticals * Debt-related services * Weapons vendors/manufacturers * Hate groups or any material that promotes violence or hatred * Counterfeit goods / IP infringement (hacker groups or theft) * Illegal/controlled substances vendors * Drug paraphernalia * Missions, embassies and consulates * Multilevel marketing / predatory lending / predatory investment schemes * Any licensed activity where the provider is operating without a license, or illegal sale of cryptocurrency to consumers * Offshore banks and companies with no physical address and no purpose (shell corporations) These prohibitions apply to both custodial and transactional accounts. > [!NOTE] > > A business that is not on this list is not guaranteed approval. All account creation remains subject to verification, program approval, and applicable compliance requirements. For questions about whether a business is eligible, contact [support@brale.xyz](mailto:support@brale.xyz). ## Related * [Account availability](/coverage/account-availability) — where each customer type and account type combination is available. * [Accounts](/key-concepts/accounts) — the full account resource, fields, and lifecycle. * [`POST /accounts`](/api-reference/brale/create-account) — API reference. # Transfer Types Source: https://docs.brale.xyz/coverage/transfer-types Supported onchain and offchain `transfer_type` identifiers for Brale addresses and transfers. Brale supports these transfer types (onchain and offchain payment rails) for funding and payouts. Use them in `transfer_type` fields on addresses and transfers. > [!NOTE] > > **Source:** `TransferType.json`. Values are case-sensitive. ## Onchain | transfer\_type (API id) | Name | | - | - | | `algorand` | Algorand | | `arbitrum` | Arbitrum | | `aptos` | Aptos | | `avalanche` | Avalanche | | `base` | Base | | `canton` | Canton | | `celo` | Celo | | `chia` | Chia | | `classic` | Ethereum Classic | | `ethereum` | Ethereum | | `hedera` | Hedera | | `kusama` | Polkadot / Kusama | | `monad` | Monad | | `optimism` | Optimism | | `polygon` | Polygon | | `pulsechain` | PulseChain | | `radius` | Radius | | `robinhood` | Robinhood Chain | | `solana` | Solana | | `spark` | Spark | | `starknet` | Starknet | | `stellar` | Stellar | | `tempo` | Tempo | | `tron` | Tron | | `tx` | Tx | | `vechain` | VeChain | | `verona` | Verona | | `worldchain` | Worldchain | | `xrp_ledger` | XRP Ledger | ## Legacy transfer types Brale still accepts these legacy `transfer_type` values anywhere a `transfer_type` is accepted as input. They are deprecated. Use the current value in new integrations. API responses may return the legacy value, so treat both values as the same network when you read responses. | Legacy transfer\_type (deprecated) | Current transfer\_type | Name | | - | - | - | | `coreum` | `tx` | Tx | | `coreum_testnet` | `tx_testnet` | Tx Testnet | | `xion` | `verona` | Verona | | `xion_testnet` | `verona_testnet` | Verona Testnet | Unknown values return an `invalid_transfer_type` error. ## Offchain | transfer\_type (API id) | Name | | - | - | | `wire` | Wire Transfer | | `ach_debit` | ACH Debit | | `ach_credit` | ACH Credit | | `same_day_ach_credit` | Same Day ACH Credit | | `rtp_credit` | RTP Credit (no longer available as of Oct 30, 2026) | | `fednow_credit` | FedNow Credit. Inbound through [Automations](/guides/fednow-inbound) and outbound through [Transfers](/guides/fednow-outbound). Available on enabled accounts. | > [!NOTE] > > The [Automation deposit simulator](/api-reference/brale/simulate-automation-deposit) takes its own input values (`ach`, `wire`, `fednow`). These are not `transfer_type` identifiers. A simulated `fednow` deposit produces a Transfer with `source.transfer_type: fednow_credit`. ## Testnet transfer types Use these values when working in testnet. They mirror the corresponding mainnet chains. | transfer\_type (API id) | Network | | - | - | | `amoy` | Polygon Amoy Testnet | | `aptos_testnet` | Aptos Testnet | | `base_sepolia` | Base Sepolia Testnet | | `canton_testnet` | Canton Testnet | | `chia_testnet` | Chia Testnet | | `monad_testnet` | Monad Testnet | | `pulsechain_testnet` | PulseChain Testnet | | `radius_testnet` | Radius Testnet | | `robinhood_testnet` | Robinhood Chain Testnet | | `sepolia` | Ethereum Sepolia Testnet | | `solana_devnet` | Solana Devnet | | `spark_testnet` | Spark Testnet | | `starknet_testnet` | Starknet Testnet | | `tempo_testnet` | Tempo Testnet | | `tron_testnet` | Tron Testnet | | `tx_testnet` | Tx Testnet | | `verona_testnet` | Verona Testnet | | `worldchain_testnet` | Worldchain Sepolia Testnet | ## Supported `transfer_type` values by `value_type` Not every `value_type` is available on every `transfer_type`. The tables below list the supported `transfer_type` values for USDC, USDT, RLUSD, PYUSD, and USDG. ### Supported `transfer_type` values for USDC | transfer\_type (API id) | Name | | - | - | | `arbitrum` | Arbitrum | | `avalanche` | Avalanche | | `base` | Base | | `celo` | Celo | | `ethereum` | Ethereum | | `hedera` | Hedera | | `optimism` | Optimism | | `polygon` | Polygon | | `solana` | Solana | | `stellar` | Stellar | | `xrp_ledger` | XRP Ledger | ### Supported `transfer_type` values for USDT | transfer\_type (API id) | Name | | - | - | | `ethereum` | Ethereum | | `solana` | Solana | | `tron` | Tron | ### Supported `transfer_type` values for RLUSD | transfer\_type (API id) | Name | | - | - | | `xrp_ledger` | XRP Ledger | | `ethereum` | Ethereum | ### Supported `transfer_type` values for PYUSD | transfer\_type (API id) | Name | | - | - | | `ethereum` | Ethereum | ### Supported `transfer_type` values for USDG | transfer\_type (API id) | Name | | - | - | | `robinhood` | Robinhood Chain | | `ethereum` | Ethereum | | `solana` | Solana | > [!NOTE] > > For Brale-issued `value_type` stablecoins (e.g., `SBC`, `USDGLO`), supported `transfer_type` values are configured during onboarding. Contact [support@brale.xyz](mailto:support@brale.xyz) for details. If you need additional rails, contact [support@brale.xyz](mailto:support@brale.xyz). # Value Types Source: https://docs.brale.xyz/coverage/value-types Canonical `value_type` identifiers for Brale transfers (onchain and offchain). Supported `value_type` identifiers for Brale transfers. Keep examples aligned to the published list below and the source JSON. > [!NOTE] > > **Source:**`ValueType.json`. Values are case-sensitive. ## Onchain value types | value\_type (API id) | Name | Currency | Issuer | | - | - | - | - | | `SBC` | Stablecoin | USD | Brale | | `USDC` | USD Coin | USD | Circle | | `USDT` | Tether USD | USD | Tether | | `USDGLO` | Glo Dollar | USD | Brale | | `CFUSD` | Coinflow USD | USD | Brale | | `MXNe` | Real MXN | MXN | Brale | | `CSC` | Canton Stable Coin | USD | Brale | | `RLUSD` | Ripple USD | USD | Ripple | | `dUSD` | Decent Dollar | USD | Brale | | `4MGCC` | 4MG Canton Coin | USD | Brale | | `BCOA` | Blockcity COA Dollar | USD | Brale | | `BeamUSD` | Beam USD | USD | Brale | | `DZUSD` | Day Zero USD | USD | Brale | | `EasyUSD` | Easy USD | USD | Brale | | `GUSDC` | Green Stable Coin | USD | Brale | | `HSUSD` | HotStreak USD | USD | Brale | | `KCD` | Kansas City Dollar | USD | Brale | | `LTUSD` | Limited USD | USD | Brale | | `MOVEUSD` | MOVE USD | USD | Brale | | `OUSD` | Origin Dollar | USD | Brale | | `PsiUSD` | PsiFi USD | USD | Brale | | `SAGEUSD` | Sage USD | USD | Brale | | `USC` | Universal Stable Currency | USD | Brale | | `USD+` | Perena USD+ | USD | Brale | | `USDB` | USD Bank | USD | Brale | | `USDBanxa` | Banxa USD | USD | Brale | | `USDDolr` | Dolr USD | USD | Brale | | `USDFi` | Fern USD | USD | Brale | | `USDM` | Main USD | USD | Brale | | `USDS` | Standard USD | USD | Brale | | `USDSLASH` | USD Slash | USD | Brale | | `USDOAK` | Soakmont USD | USD | Brale | | `USDTN` | Tennessee Dollar | USD | Brale | | `USDYIELD` | Yield USD | USD | Brale | | `XDUS` | XDUS Token | USD | Brale | | `XPED` | XPED Token | USD | Brale | | `YOGUSD` | Yoga USD | USD | Brale | | `cFtUSD` | Coinflow USD | USD | Brale | | `hodl` | HodlUSD Coin | USD | Brale | | `pUSD` | Purple USD | USD | Brale | | `rUSD` | Rain USD | USD | Brale | | `USDG` | Global Dollar | USD | Paxos | > [!NOTE] > > `USDG` is supported on Ethereum (`ethereum`), Solana (`solana`), and Robinhood Chain (`robinhood`). See [Supported `transfer_type` values for USDG](/coverage/transfer-types#supported-transfer_type-values-for-usdg). ## Offchain value types | value\_type (API id) | Name | Currency | | :- | :- | :- | | `USD` | US Dollar | USD | # Add Your Stablecoin Source: https://docs.brale.xyz/documentation/add-your-stablecoin Submit your token list to Brale Commons so it’s indexed and priced on data.brale.xyz. # Add Your Stablecoin Publish your stablecoin metadata via the Brale Commons repo so it can be indexed on `data.brale.xyz` (with pricing) and made searchable programmatically. ## How to add your token 1. Open the Commons repo: [Brale-xyz/commons](https://github.com/Brale-xyz/commons/tree/main/Data) 2. Add your token list under `Data/` (follow the existing naming and JSON structure in the folder). 3. Submit a pull request. 4. Once accepted, the token is indexed on `https://data.brale.xyz` with price data and discoverable via programmatic search. ## Advantages * Indexed and priced on `data.brale.xyz` for downstream use. * Programmatic discoverability for integrators. * Central, versioned source via the Commons repo. * Fast updates: ship changes with a PR to `Data/`. Need help or a template? Reach out to [support@brale.xyz](mailto:support@brale.xyz). # Example Standard Source: https://docs.brale.xyz/documentation/api-design/example-standard Canonical Brale API conventions used across docs and examples, including IDs, enum casing, transfer shape, pagination, and testnet terminology. This page defines the **canonical conventions** used across Brale’s API docs and examples. Examples are designed to be **copy/paste safe**. When in doubt, treat the Coverage pages as canonical: * Value Types: [ `/coverage/value-types` ](/coverage/value-types) * Transfer Types: [ `/coverage/transfer-types` ](/coverage/transfer-types) ## ID conventions Brale resource identifiers are **KSUIDs**. Treat IDs as **opaque strings**: store them and pass them back, but don’t parse them. ### Exact ID names used in docs When examples refer to an ID, we use these exact names: | Resource | Use this name | | - | - | | Account | `account_id` | | Address | `address_id` | | Transfer | `transfer_id` | | Automation | `automation_id` | > **Note:** API responses often contain a generic `id`. In docs, we use `account_id` / `transfer_id` / etc. as **variable names** so it’s obvious which `id` to reuse in follow-up calls. ## Enum casing + SBC (use API ids) Enum values in requests are **case-sensitive**. Always use the **API id** (not a display name). ### `value_type` Use the API ids listed in **Coverage → Value Types**. * Offchain fiat value types are lowercase (e.g., `usd`, `mxn`). * Onchain tokens use their canonical tickers/codes (e.g., `SBC`, `USDC`, `MXNe`). ### `transfer_type` Use the API ids listed in **Coverage → Transfer Types**. * Transfer types are lowercase identifiers (e.g., `wire`, `ach_debit`, `solana`, `canton`). * Testnet uses testnet chain values (e.g., `solana_devnet`, `base_sepolia`, `sepolia`). ### SBC Examples frequently use **`SBC`** as a **placeholder stablecoin**. Replace it with the stablecoin your integration uses when appropriate. > **Note:** `amount.currency` is an ISO-4217 code (e.g., `USD`). It is separate from `value_type`. ## Canonical Create Transfer request shape All **Create Transfer** examples use the same top-level shape: * `amount` * `source` * `destination` No wrappers. No alternate key names. No camelCase. ### Canonical JSON (minimum shape) ```json theme={null} { "amount": { "value": "100", "currency": "USD" }, "source": { "value_type": "usd", "transfer_type": "wire" }, "destination": { "address_id": "2VcUIonJeVQzFoBuC7LdFT0dRe4", "value_type": "SBC", "transfer_type": "solana" } } ``` ### Notes * `amount.value` is a **decimal string** (avoid floats). * `source` and `destination` include `value_type` and `transfer_type`. * `address_id` is **required** when a leg targets a specific address (wallet, Plaid-linked bank account, external bank destination, etc.). * `address_id` is **omitted** for rails where Brale returns deposit instructions for funding (e.g., wire onramp-style sources). > **Reminder:** Include an `Idempotency-Key` header on create POSTs, and reuse the same key on retries of the same logical request. ## Automations exception (where it differs) Automations are **rules** that generate transfers later when funds arrive. They differ from Create Transfer: * No `amount` (amount is determined by the inbound deposit) * `source` does **not** include `transfer_type` or `address_id` * Additional required field: `name` ### Canonical Create Automation request shape ```json theme={null} { "name": "Customer Onramp", "source": { "value_type": "usd" }, "destination": { "address_id": "35LWXNTO2jem13nXCLyciFdi162", "value_type": "SBC", "transfer_type": "solana" } } ``` > **Note:** When an automation becomes active, Brale populates `source.funding_instructions` with bank details (routing/account number, beneficiary, memo rules, etc.). Those are the coordinates you share to fund the automation. ## Pagination standard List endpoints that paginate use: * `page[size]` * `page[next]` * `page[prev]` ### Rules * `page[size]` is an integer in the range `1..100`. * `page[next]` is the cursor token from `pagination.next`. * `page[prev]` is the cursor token from `pagination.prev`. * Include **at most one** of `page[next]` or `page[prev]` in a request. ### Examples First page: ```bash theme={null} curl --request GET \ --url "https://api.brale.xyz/accounts/${account_id}/transfers?page[size]=50" \ --header "Authorization: Bearer ${token}" ``` Next page: ```bash theme={null} curl --request GET \ --url "https://api.brale.xyz/accounts/${account_id}/transfers?page[size]=50&page[next]=${pagination_next}" \ --header "Authorization: Bearer ${token}" ``` Previous page: ```bash theme={null} curl --request GET \ --url "https://api.brale.xyz/accounts/${account_id}/transfers?page[size]=50&page[prev]=${pagination_prev}" \ --header "Authorization: Bearer ${token}" ``` ## Testnet terminology Use **testnet** as the only term for the non-production environment. * Say **testnet** and **mainnet** (when contrast is needed). * Do **not** call the environment “sandbox.” * Only testnet networks are supported in testnet (e.g., `sepolia`, `solana_devnet`, `base_sepolia`). > **Warning:** In docs prose, examples, and headings: use **testnet**. Never name an environment “sandbox.” ## 9-point author checklist (prevents copy/paste failures) 1. **IDs are KSUIDs:** treat IDs as opaque; don’t parse or validate by length. 2. **Correct ID names:** use `account_id`, `address_id`, `transfer_id`, `automation_id` in examples (never camelCase). 3. **Snake\_case everywhere:** no `valueType`, `transferType`, etc. 4. **`value_type` is exact:** copy API ids from **Coverage → Value Types** (case-sensitive). 5. **`transfer_type` is exact:** copy API ids from **Coverage → Transfer Types** (lowercase; use testnet variants on testnet). 6. **Create Transfer is canonical:** top-level keys are exactly `amount`, `source`, `destination`. 7. **`address_id` usage is correct:** include it when a leg targets a specific address; omit it only when Brale returns deposit instructions for funding. 8. **Automations follow the exception:** include `name`; omit `amount`; `source` is only `{ "value_type": "usd" }`. 9. **Idempotency is correct:** include `Idempotency-Key` on create POSTs, reuse on retries of the same request, and do not send it on GETs. # Core Objects Source: https://docs.brale.xyz/documentation/api-design/primitives Core building blocks of the Brale API and how they compose. ## Core resources * **Accounts**: Client-owned and managed accounts; IDs are KSUIDs (`account_id`). * **Addresses**: Universal source/destination primitive. Internal (custodial) vs external (counterparty). IDs are KSUIDs (`address_id`). * **Automations**: Virtual accounts that map deposits to addresses with specific `transfer_type`/`value_type`. IDs are KSUIDs (`automation_id`). * **Transfers**: Movements across fiat rails and blockchains; always reference `address_id` for source/destination. IDs are KSUIDs (`transfer_id`). > IDs are KSUIDs (27-char, time-sortable); case-sensitive. Copy/paste carefully. ## Addresses: internal vs external * `type=internal`: Brale-custodied addresses (one or more per supported chain per account); balances available; use for mint/payout flows. * `type=external`: counterparty data you register (onchain wallets, offchain bank accounts, Canton parties). Plaid-linked bank addresses support balance queries; other external addresses do not expose balances through Brale. * Use `address_id` on all transfer endpoints; financial institution IDs are deprecated. ## Value types and transfer types * `value_type`: Token/fiat identifier (case-sensitive); see [Value Types](/coverage/value-types). * `transfer_type`: Rail or chain (e.g., `wire`, `ach_credit`, `base`, `solana`); see [Transfer Types](/coverage/transfer-types). * Always send both on transfers; a custodial address can hold multiple `value_type`/`transfer_type` pairs. ## Idempotency * Send `Idempotency-Key` on all create POSTs; reuse the same key on retries of the same logical request. * Do not send `Idempotency-Key` on GETs. ## Automations * Create virtual accounts that issue deposit instructions and resolve to addresses with specific rails/tokens. * Useful for mapped deposit flows (e.g., branded onramps) and to avoid manual routing. ## Branding * Optional branding (`brand`/`branding`) applies to ACH transfers (statement name), outbound wire payouts (wire sender), and FedNow payouts (sender). Not used for RTP. See [Branded Transfers](/guides/2nd-and-3rd-party-transfers). ## Authentication * Short-lived bearer tokens (\~60 minutes); refresh using `expires_in` before expiry. * Scope credentials separately for testnet vs mainnet. ## Quick references * Create external address: `POST /accounts/{account_id}/addresses/external` * List custodial addresses: `GET /accounts/{account_id}/addresses` (returns `type=internal`) * Create transfer: `POST /accounts/{account_id}/transfers` (requires `address_id`, `transfer_type`, `value_type`, `Idempotency-Key`) # Structure Source: https://docs.brale.xyz/documentation/api-design/structure How Brale API resources relate to each other, including accounts, addresses, automations, and financial institutions. # Brale API structure How core resources relate to each other when you build on Brale. ## At a glance * **Client-owned Account** holds your API credentials and owns downstream resources. * **Managed Accounts** are customer accounts you register under your client account. * **Addresses** are the canonical source/destination primitive (internal custodial or external). * **Automations** create virtual receiving accounts that map to underlying addresses. * **Financial Institutions** are legacy offchain funding records; prefer Addresses. (Shown for backward compatibility.) ## Relationship diagram ```mermaid theme={null} graph TD %% Top-Level: Client-Owned Account A1["Client Owned Account
(Holds API credentials)"] A1 --> AO["Account_ID (owned)
type=internal"] AO --> AO_FS["Funding Source
FinancialInstitution_ID (legacy)"] AO --> AO_AUTO["Automations_ID"] %% Managed Custodial Accounts A1 --> MA["Managed Account
Account_ID (internal)"] MA --> MA_FS["Funding Source
FinancialInstitution_ID (legacy)"] MA --> MA_AUTO["Automations_ID"] %% External Address Records A1 --> ADDR["Address_ID
type=external"] ADDR --> TT["transfer_type"] ADDR --> VT["value_type"] %% Internal Addresses (custodial) AO --- N1["Address_ID
type=internal"] MA --- N2["Address_ID
type=internal"] %% Virtual accounts created by automations AO_AUTO --> VA1["Virtual Account"] MA_AUTO --> VA2["Virtual Account"] VA1 --- VA1_VT["value_type"] VA1 --- VA1_TT["transfer_type"] VA2 --- VA2_VT["value_type"] VA2 --- VA2_TT["transfer_type"] ``` ## Key points * All IDs (`account_id`, `address_id`, `automation_id`, etc.) are KSUIDs (27 chars, time-sortable). * Use `address_id` for all transfer endpoints (onchain and offchain). Financial Institutions are deprecated and retained only for legacy flows. * Automations produce virtual accounts that resolve to addresses; they surface the `transfer_type` and `value_type` you configure. ### Internal vs. External * `type=internal` → Brale-custodied resources (accounts you own; addresses Brale holds for you or your managed accounts; automation virtual accounts). * `type=external` → Counterparty data you register (e.g., recipient bank/wallet addresses). ## Related links * [Accounts](/key-concepts/accounts) * [Addresses](/key-concepts/addresses) * [Automations](/key-concepts/automations) * [Transfers](/key-concepts/transfers) * [OpenAPI](https://api.brale.xyz/openapi) # Commons Repo Source: https://docs.brale.xyz/documentation/commons-repo Jump to the Brale Commons repository for CSF and shared artifacts. # Commons Repo The Brale Commons repository hosts the Commons Stablecoin Format (CSF) spec and related shared assets. ## Overview * GitHub: [Brale-xyz/commons](https://github.com/Brale-xyz/commons) * CSF JSON (raw): [raw.githubusercontent.com/Brale-xyz/commons/.../csf.json](https://raw.githubusercontent.com/Brale-xyz/commons/main/Commons%20Stablecoin%20Format/csf.json) * Contents: CSF schema, funds-flow examples, data samples, and shared resources for Brale workflows. * Add your stablecoin: [Submit via Commons](./add-your-stablecoin) Use this repo to fetch the latest CSF schema and contribute improvements. # Commons Stablecoin Format Source: https://docs.brale.xyz/documentation/commons-stablecoin-format Use CSF to generate clear, consistent funds-flow diagrams for Brale workflows. # Commons Stablecoin Format (CSF) The Commons Stablecoin Format is a lightweight standard for describing value movement across off-chain and on-chain rails. By structuring flows with CSF, you can generate consistent Mermaid sequence diagrams for reviews, runbooks, and customer-facing docs. ## Live CSF JSON The canonical CSF spec lives in GitHub and updates automatically: * GitHub file: [csf.json](https://github.com/Brale-xyz/commons/blob/main/Commons%20Stablecoin%20Format/csf.json) * Raw JSON (auto-updating): [raw.githubusercontent.com/Brale-xyz/commons/.../csf.json](https://raw.githubusercontent.com/Brale-xyz/commons/main/Commons%20Stablecoin%20Format/csf.json) You can fetch the latest spec in scripts or API tooling, for example: ```bash theme={null} curl -s https://raw.githubusercontent.com/Brale-xyz/commons/main/Commons%20Stablecoin%20Format/csf.json | jq . ``` ## Kick off with AI Use this prompt with your LLM after loading the CSF JSON: > Ingest the Commons Stablecoin Format (CSF) JSON and build a funds flow diagram that follows CSF rules. * ChatGPT starter (preloads prompt): [Open ChatGPT](https://chat.openai.com/?q=Ingest%20the%20Commons%20Stablecoin%20Format%20\(CSF\)%20JSON%20and%20build%20a%20funds%20flow%20diagram%20that%20follows%20CSF%20rules.) * Claude starter: [Open Claude](https://claude.ai/new?q=Ingest%20the%20Commons%20Stablecoin%20Format%20\(CSF\)%20JSON%20and%20build%20a%20funds%20flow%20diagram%20that%20follows%20CSF%20rules.) ## Why use CSF? * Consistent labels: every transfer is `ValueType TransferType Amount` (e.g., `USD Wire 5,000`, `USDC Solana 5,000`). * Clear role separation: participants (e.g., Customer, Exchange, Bank, Blockchain) are explicit in the flow. * Fast visualization: drop the CSF description into Mermaid to produce diagrams for reviews or implementation guides. ## Quick pattern 1. Define participants (business, platform, exchange, blockchain, recipient). 2. Describe each hop as `ValueType TransferType Amount`. 3. Include exchanges when converting between value types or rails. 4. Render as a Mermaid `sequenceDiagram` for easy sharing. ## Example prompt Use this prompt with your preferred LLM to produce a CSF Mermaid diagram: > Create a funds flow for: > > * Off-chain USD wire funding an on-chain USDC payout on Solana > * Participants: Business, Fintech Platform, Exchange, Solana, Recipient > * Show the exchange from USD (Wire) to USDC (Solana) > * Use CSF labeling: `ValueType TransferType Amount` ## Sample Mermaid (CSF style) ```mermaid theme={null} sequenceDiagram title: Funds Flow - USD Wire to USDC on Solana (CSF) participant Business participant Fintech participant Exchange participant Solana participant Recipient Business->>Exchange: Transfer USD Wire 5,000 Exchange-->>Fintech: [DATA] Receipt + payout instruction Fintech-->>Exchange: [DATA] Convert & send USDC Exchange->>Exchange: [EXCHANGE] USD to USDC Exchange->>Solana: Transfer USDC Solana 5,000 Solana->>Recipient: Confirm receipt ``` ## Tips * Keep flows concise (light), add compliance/finality notes when needed (medium/heavy). * Reuse the same participant names across flows for comparability. * Attach these diagrams in implementation guides, runbooks, or customer approvals to align on how value moves. # Documentation Source: https://docs.brale.xyz/documentation/introduction Get set up quickly, explore key concepts, and ship stablecoin experiences with the Brale API. > [card] [Quickstart](/overview/quick-start) > > Go from zero to first API call in minutes. > [card] [Environments](/overview/sandbox-and-testnet) > > Testnet vs mainnet, and how your credentials choose the environment. > [card] [API overview](/api-reference/brale-introduction) > > Understand authentication, domains, and how to make requests. ## Build with Brale > [card] [Key concepts](/key-concepts/api-concepts-overview) > > Learn authentication, accounts, addresses, automations, and transfers. > [card] [Coverage](/coverage/transfer-types) > > See supported transfer types and value types across blockchains. > [card] [Workflows](/guides/fiat-to-stablecoin-onramp) > > Step-by-step guides for on/off-ramps, swaps, payouts, and custody. ## Explore the API > [card] [Endpoints](/api-reference/brale/list-accounts) > > Browse endpoints for accounts, transfers, addresses, automations, and more. > [card] [OpenAPI spec](https://api.brale.xyz/openapi) > > Import the Brale OpenAPI spec into your tooling for faster development. ## Resources > [card] [Dashboard](https://app.brale.xyz) > > Manage API keys, review activity, and monitor balances. > [card] [Support](mailto:support@brale.xyz) > > Reach the Brale team for help, questions, or to request new coverage. > [card] [Developer tools](/overview/developer-tools) > > OpenAPI spec, API playground, MCP servers, and llms.txt to speed up your integration. ## Tools > [card] [Commons Stablecoin Format](/documentation/commons-stablecoin-format) > > Generate consistent funds flow diagrams using the CSF schema and Mermaid. # Company Overview Source: https://docs.brale.xyz/documentation/platform/company-overview Brale is a regulated stablecoin issuer with end-to-end APIs for issuance, custody, on and off ramps, and payouts. Brale is a regulated stablecoin issuer built by a high-integrity team with deep payments, banking, and infrastructure experience. We combine a proprietary issuance/orchestration stack with a proprietary regulatory stack so you can launch and scale stablecoin-enabled products with confidence. ## Why teams choose Brale * **Regulated foundation:** Operates as a supervised, compliance-first issuer with robust KYC/KYB, AML, and treasury controls. * **High-integrity team:** Veterans from payments, banking, and web3 infrastructure who prioritize safety, resilience, and clear communication. * **Proprietary tech stack:** End-to-end platform for issuance, custody, on/off-ramps, swaps, payouts, and treasury operations—exposed via clean, well-documented APIs. * **Proprietary regulatory stack:** Embedded compliance workflows (KYC/KYB, sanctions screening, address risk checks, auditability) to keep you within policy while you ship. * **Performance and reliability:** Built for uptime, observability, and predictable latency across auth, transfers, and data endpoints. * **Transparent backing:** Stablecoins are fully reserved with clear proof and controls designed for institutional-grade trust. ## What you can build * **Issue and manage stablecoins:** Launch branded stablecoins backed by Brale’s reserves and controls. * **Move value everywhere:** Onramp/offramp, swap across supported chains and stablecoins, automate payouts, and manage custody for your customers. * **Operate with confidence:** Idempotent, well-instrumented APIs; clear error surfaces; and support that engages with your engineers, not just tickets. ## How we support you * **API-first:** OAuth2 client credentials, OpenAPI-powered reference, and Postman-friendly endpoints. * **Compliance built in:** KYC/KYB, sanctions, address risk checks, transaction monitoring, audit trails. * **Partnership model:** Direct access to Brale engineers for integration guidance, architecture reviews, and go-live readiness. If you need a regulated, production-grade stablecoin platform with a team that treats safety and delivery as first-class, Brale is your partner. Let’s build. # Reserves Source: https://docs.brale.xyz/documentation/platform/reserves Brale stablecoins are fully backed by cash, money market funds, and Treasury bills held in segregated accounts. Brale-issued fiat-backed stablecoins are designed to be **fully reserved (1:1)**. This means the outstanding token supply is backed by reserve assets held within Brale’s reserve structure, with operational controls and independent verification. This page provides an overview of typical reserve composition, how reserves are managed, and how Brale’s regulated posture relates to reserve-backed issuance. ## Reserves composition Brale’s reserve design typically uses high-quality, liquid assets, including: * Cash held at U.S. banks * Liquid money market funds that invest in U.S. government securities * Short-duration U.S. Treasury Bills ## How reserves are managed Brale’s reserve management and financial controls are designed for auditable, repeatable operations: * **Segregated accounts:** reserve assets are held by Brale in segregated accounts. * **Daily reconciliation:** automated matching of on-chain supply to corresponding fiat balances. * **Monthly independent attestations:** reserves and 1:1 backing are verified monthly by an independent CPA firm. ## Licensing Brale operates as a regulated money services business and licensed money transmitter: * Registered with FinCEN as an MSB * Maintains Money Transmitter Licenses and/or qualifies for exemptions across U.S. jurisdictions (NMLS ID available) These licenses carry financial, bonding, and compliance requirements designed to protect funds. # Stablecoin Issuance Source: https://docs.brale.xyz/documentation/platform/stablecoin-issuance Launch fiat-backed stablecoins with Brale handling mint, burn, custody, settlement, reserves, and reporting. ## Overview Brale issues fiat-backed stablecoins for businesses that want programmable dollars without running their own banking or blockchain stack. You set the program rules; Brale handles mint/burn, custody, settlement, reserves, and reporting. ## Who it’s for * Fintechs, marketplaces, wallets, banks, credit unions, and payment platforms that want branded or white-label dollars. * Issuers that need multi-chain support, 1:1 reserves, and compliance controls * Teams that want APIs first, with dashboards for operations and reconciliation ## How it works 1. **Onboard & scope**: Complete KYB and choose issuance scope (mainnet/testnet), supported rails, and branding. 2. **Create managed accounts**: Represent your customers or programs; Brale provides custodial addresses on supported chains. 3. **Fund & mint**: Move fiat in (ACH/wire) to mint branded stablecoins (e.g., `SBC`, `USDGLO`) to custodial addresses. 4. **Circulate**: Transfer on-chain or off-chain; configure automations for deposits and payouts. 5. **Redeem & burn**: Burn to settle redemptions back to fiat rails. 6. **Monitor**: Use balances, transfers, and webhooks for reconciliation; view reserves and status in-dashboard. ## Guarantees & controls * **1:1 reserves** for issued supply; transparent reserve visibility. * **KSUID identifiers** (`account_id`, `address_id`, `automation_id`) for traceability. * **Idempotency everywhere** on POSTs to prevent duplicate mint/burn flows. * **Per-chain custody**: internal custodial addresses per chain; external addresses registered per chain/rail. * **Branding**: optional statement branding for ACH payouts. ## Key building blocks * **Transfers**: mint (fiat → stablecoin), redeem (stablecoin → fiat), and move value across rails. * **Addresses**: custodial (internal) for issued tokens; external for counterparties. * **Automations**: virtual accounts that route deposits to the right token/chain. * **Value types**: canonical token identifiers (see [Value Types](/coverage/value-types)); case-sensitive. ## Related docs * [Stablecoin Issuance guide](/guides/stablecoin-issuance) * [Transfers](/key-concepts/transfers) * [Addresses](/key-concepts/addresses) * [Value Types](/coverage/value-types) * [Transfer Types](/coverage/transfer-types) # Stablecoin Orchestration Source: https://docs.brale.xyz/documentation/platform/stablecoin-orchestration Move value across fiat rails and blockchains with controls for branding, automation, and reconciliation. ## Overview Stablecoin orchestration coordinates how funds enter, move, and exit your ecosystem across fiat rails (ACH, wire, FedNow) and blockchains. Brale gives you a single API for mint, redeem, swap, and payout flows with custody, automations, and branding controls built in. ## Core capabilities * **Unified transfers**: Use `address_id` as the universal source/destination across onchain and offchain rails. * **Multi-rail support**: ACH (same-day/standard), wire, FedNow, plus supported chains (EVM, Solana, Stellar, etc.). * **Automations**: Virtual accounts that route deposits, create addresses, and map to the right `transfer_type`/`value_type`. * **Branding**: Optional branding on ACH transfers (statement name) and outbound wire payouts (wire sender). * **Program controls**: Idempotent POSTs, KSUID IDs, scoped credentials (mainnet vs testnet), and webhook-driven reconciliation. ## Typical flows * **Onramp**: fiat → stablecoin (mint) to a custodial address, then distribute on-chain. * **Offramp**: stablecoin → fiat (redeem) to a beneficiary bank account via ACH/wire/FedNow. * **Payouts**: ACH or wire with branding, FedNow for instant payouts on enabled accounts, or on-chain payouts to external wallets. * **Cross-chain**: move value between supported chains using source/destination addresses with appropriate `transfer_type`. * **Program treasury**: park liquidity in custodial addresses; sweep/redeem as needed. ## Implementation checkpoints * **Identify rails**: choose `transfer_type` + `value_type` pairs from [Transfer Types](/coverage/transfer-types) and [Value Types](/coverage/value-types). * **Use internal custody**: fetch custodial addresses (`type=internal`) per chain for mint/payout flows; register external addresses for counterparties. * **Always send Idempotency-Key** on create POSTs; reuse the same key on retries. * **Brand ACH and wire payouts** when needed; omit branding for FedNow. * **Monitor & reconcile**: list transfers with pagination; store `id`, `Idempotency-Key`, status, timestamps, and provider refs. Refresh tokens on 401 and retry idempotently. ## Related docs * [Transfers](/key-concepts/transfers) * [Addresses](/key-concepts/addresses) * [Automations](/key-concepts/automations) * [Value Types](/coverage/value-types) * [Transfer Types](/coverage/transfer-types) * [Troubleshooting](/documentation/troubleshooting) # Tokenization Source: https://docs.brale.xyz/documentation/platform/tokenization Issue and operate your own tokens with Brale handling key custody, orchestration, mint and burn execution, and reporting. Brale’s tokenization API lets you issue and operate your own tokens, such as a local-currency stablecoin, a points system, or a non-fiat asset, while using Brale for: * Key custody * Account and wallet orchestration * Mint and burn execution on supported chains * Unified reporting across tokenization activity When utilizing Brale tokenization, you are responsible for coordinating the reserve or backing assets, onramps, and offramps. Brale gives you the multi-chain issuance engine to match off chain reserves to onchain supply. ## How you build with tokenization At a high level: 1. Brale enables tokenization mode for your account. 2. Brale configures your token on the chains you need. 3. You use Accounts and Addresses to manage wallets and balances. 4. You mint, burn, and transfer tokens via the tokenization API. 5. You monitor activity via tokenization transaction reporting. ## Next steps * Read the full implementation guide: [**Tokenization Overview**](/guides/tokenization) * If you are launching a fiat-backed stablecoin where Brale is issuer, see: [**Stablecoin Issuance**](/guides/stablecoin-issuance) # Transfer Timing Source: https://docs.brale.xyz/documentation/platform/transfer-timing Cut-off times, settlement windows, and finality for every transfer_type on the Brale platform. When you submit a [transfer](/key-concepts/transfers) through the Brale API, the time it takes to complete depends on the [`transfer_type`](/coverage/transfer-types) — the payment rail or blockchain network used to move value. This page documents the expected timing for each supported `transfer_type`. > [!WARNING] > > Settlement times are typical and not guaranteed. Actual times may vary based on bank processing, network congestion, or other factors. * **Business days** exclude US federal holidays, weekends, and bank holidays. * **Standard cut-off times** are the latest time a transfer can be submitted for same-day processing. Transfers submitted after the cut-off are queued for the next business day. * For guaranteed SLAs or extended cut-off windows, MSAs are available. ## At a Glance | `transfer_type` | Rail | Settlement | Availability | | - | - | - | - | | `wire` | Wire | \~2 hours | US business days | | `same_day_ach_credit` | Same-Day ACH | Same day | US business days | | `ach_credit` | ACH Credit | 1–3 business days | US business days | | `ach_debit` | ACH Debit | 1–3 business days | US business days | | `rtp_credit` | RTP | No longer available | No longer available | | `fednow_credit` | FedNow | Typically minutes | 24/7/365 | | Onchain (Tier 0) | Monad, Radius | Under 10 seconds | 24/7/365 | | Onchain (Tier 1) | Avalanche, Solana, Stellar, etc. | Under 30 seconds | 24/7/365 | | Onchain (Tier 2) | Base, Celo, Optimism, etc. | Under 60 seconds | 24/7/365 | | Onchain (Tier 3) | Ethereum, Polygon, Arbitrum, etc. | Over 60 seconds | 24/7/365 | ## Offchain Transfer Timing All fiat cut-off times are in **Eastern Time (ET)** and apply on US business days only. They apply to wire and ACH. FedNow operates 24/7/365 and have no business-day cut-off. Transfers submitted after 3PM ET are processed the next business day, with consideration that most wires require \~2 hours to fully reconcile. See [Transfer Types](/coverage/transfer-types) for the full list of offchain `transfer_type` identifiers and [Value Types](/coverage/value-types) for supported fiat and stablecoin [`value_type`](/coverage/value-types) identifiers. ### Wire Transfer | Property | Value | | - | - | | `transfer_type` | `wire` | | Cut-off time | 5:00 PM ET | | Average Settlement time | 2 hours or less | | Availability | US business days | | Direction | Inbound and outbound | Wire transfers settle within approximately 2 hours. To ensure same-day settlement, submit wires by 3:00 PM ET — this allows time for the \~2-hour reconciliation window before the 5:00 PM ET cut-off. Wires submitted after the recommended submission time of 3PM ET are processed on the next business day. Inbound wire recognition is also dependent on the sending bank's processing time, risk review, and compliance checks if there are abnormal patterns. ### Same-Day ACH Credit | Property | Value | | - | - | | `transfer_type` | `same_day_ach_credit` | | Processing windows | 10:30 AM / 2:45 PM / 4:45 PM ET | | Settlement time | Same day (by \~1:00 PM / 5:00 PM / 6:00 PM ET) | | Availability | US business days | | Direction | Outbound | Same-Day ACH operates in three daily processing windows set by the Federal Reserve. Transfers are batched into the next available window after submission. Settlement occurs approximately 2 hours after each window closes. ### ACH Credit | Property | Value | | - | - | | `transfer_type` | `ach_credit` | | Settlement time | 1–3 business days | | Availability | US business days | | Direction | Outbound | Standard ACH credit transfers settle within 1 to 3 business days depending on the receiving bank. ### ACH Debit | Property | Value | | - | - | | `transfer_type` | `ach_debit` | | Settlement time | 1–3 business days | | Availability | US business days | | Direction | Inbound | ACH debit (pull) transfers settle within 1 to 3 business days based on risk controls. ACH debits are subject to returns based on standard ACH returns and corrections. If an ACH debit is returned (for example, due to insufficient funds), the associated transfer will be canceled and you will need to re-initiate the transfer. ### RTP Credit > [!WARNING] > > RTP payouts (`rtp_credit`) ended on October 30, 2026. FedNow (`fednow_credit`) replaces RTP for instant USD payouts. Requests that still send `rtp_credit` return `400 invalid_transfer_types` on address creation or `400 invalid_transfer_type` on transfer creation. To switch, follow [Migrate from `rtp_credit` to `fednow_credit`](/guides/fednow-outbound#migrate-from-rtp_credit-to-fednow_credit). For recipient banks that do not participate in FedNow, use `same_day_ach_credit` or `wire`. ### FedNow Credit | Property | Value | | - | - | | `transfer_type` | `fednow_credit` | | Settlement time | Typically minutes | | Availability | 24/7/365 | | Direction | Inbound (Automations) and outbound | FedNow is the Federal Reserve's instant payment service. It runs around the clock, including weekends and holidays, and has no business-day cut-off. The recipient's bank (outbound) or the payer's bank (inbound) must participate in FedNow. FedNow payments are final once they settle. FedNow availability does not guarantee instant end-to-end completion. Brale reviews, bank processing, and the onchain mint or burn can add time. Track the Transfer `status` instead of assuming completion. See the [FedNow overview](/guides/fednow). ## Onchain Transfer Timing Onchain transfers (mint, burn, and convert operations) are processed as blockchain transactions. Settlement time depends on the network's finality characteristics. Brale typically confirms onchain transfers in under 30 seconds, though actual network finality varies depending on the transfer's state, network congestion, and other variables. See [Transfer Types](/coverage/transfer-types) for the full list of onchain `transfer_type` identifiers and [Value Types](/coverage/value-types) for supported stablecoin [`value_type`](/coverage/value-types) identifiers. > [!NOTE] > > **Time to Settlement** should be thought of as round-trip transaction time via the API to `complete` with polling time included. ### Speed Tiers Time to settle indicates end-to-end API averages to inform your time to first poll. It is not recommended to poll every second, as the end-to-end settlement time will be exceeded. As a best practice, begin polling at **25% of the time to settlement**. In scenarios with less network congestion, transactions commonly settle much faster. To keep things simple, we group blockchain end-to-end settlement time via the API into speed tiers to set expectations. Actual on-chain confirmations may be faster — these averages are derived from transaction data across platform testing. | Tier | Timing | | - | - | | 0 | Under 10 seconds | | 1 | Under 30 seconds | | 2 | Under 60 seconds | | 3 | Over 60 seconds | ### Onchain Transfer Types | `transfer_type` | Network | Speed Tier | | - | - | - | | `monad` | Monad | 0 | | `radius` | Radius | 0 | | `avalanche` | Avalanche | 1 | | `canton` | Canton | 1 | | `solana` | Solana | 1 | | `spark` | Spark | 1 | | `stellar` | Stellar | 1 | | `tempo` | Tempo | 1 | | `xrp_ledger` | XRP Ledger | 1 | | `algorand` | Algorand | 2 | | `base` | Base | 2 | | `celo` | Celo | 2 | | `tx` | Tx | 2 | | `optimism` | Optimism | 2 | | `arbitrum` | Arbitrum | 3 | | `classic` | Ethereum Classic | 3 | | `ethereum` | Ethereum | 3 | | `hedera` | Hedera | 3 | | `kusama` | Polkadot / Kusama | 3 | | `polygon` | Polygon PoS | 3 | | `verona` | Verona | 3 | > [!TIP] > > As a best practice, begin polling at **25% of the expected settlement time** for your transfer type's speed tier. For example, for a Tier 1 network (\~30 seconds), start your first poll at \~7 seconds. ## Transfer Status Lifecycle Every transfer progresses through a series of statuses. You can check the current status by [polling the transfer endpoint](/api-reference/brale/get-transfer). ```mermaid theme={null} stateDiagram-v2 direction LR [*] --> pending pending --> processing processing --> complete processing --> canceled processing --> failed complete --> failed: outbound wire returned complete --> [*] canceled --> [*] failed --> [*] ``` A successful transfer progresses from `pending` → `processing` → `complete`. Outbound domestic wires can also be returned by the receiving bank. When Brale recognizes the return, it updates the original transfer to `failed`: * **Return received before completion:** `processing` → `failed` * **Return received after completion:** `complete` → `failed` Brale does not use a separate `returned` status for returned wires. The transfer has `status: "failed"` and a [`failure`](/api-reference/brale/get-transfer#failure) object with `type: "wire_return"`. | Status | Terminal | Description | | - | - | - | | `pending` | No | The transfer has been submitted but is not yet in progress. For fiat transfers, this typically means the system is waiting for funds, confirmation from a correspondent, or the transfer is under review. | | `processing` | No | The transfer is actively being processed. For onchain transfers, this includes signing, broadcasting, and awaiting network confirmation. If an onchain transaction encounters a transient error (such as a signing timeout or network congestion), Brale will automatically retry it while it remains in `processing`. | | `complete` | Usually | Brale has finished processing the transfer and sent funds to the destination. For outbound domestic wires, a later bank return can still move the transfer to `failed`. | | `canceled` | Yes | The transfer has been permanently canceled and will not be retried. | | `failed` | Yes | The transfer did not succeed, or the payout was returned. This includes outbound domestic wires returned after the transfer was `complete`. Check the [`failure`](/api-reference/brale/get-transfer#failure) object for details when it is present. | > [!NOTE] > > `complete`, `canceled`, and `failed` are terminal statuses for routine polling. If a transfer is in `pending` or `processing`, it is still in progress and may still complete. Do not treat a non-terminal status as a final outcome. For outbound domestic wires, `complete` does not guarantee that a later bank return cannot occur. Keep accepting `transfer.failed` events for transfers you recorded as `complete`. ### When Transfers Are Canceled A transfer moves to `canceled` when a failure is unrecoverable. Common scenarios include: * **ACH debit return** — The originating bank returned the debit (for example, due to insufficient funds). The associated mint is canceled. You should initiate a new transfer after the funding issue is resolved. * **Wire rejection** — The sending or receiving bank rejected the wire. * **Compliance or risk hold** — The transfer was flagged and could not proceed. When a transfer is canceled, [submit a new transfer](/api-reference/brale/create-transfer) rather than expecting the original to be retried. ### When Transfers Fail A transfer moves to `failed` when it did not succeed or its payout was returned. Unlike `canceled`, `failed` can describe a transfer that previously reached `complete`. * **Outbound domestic wire return** — The receiving bank returned the wire. Brale updates the original transfer to `failed` whether the return arrives while the transfer is `processing` or after it is `complete`. The [`failure`](/api-reference/brale/get-transfer#failure) object has `type: "wire_return"` and `retriable: false`. * **Other rail or provider failures** — For example, ACH returns. Check `failure` for details when it is present. `failure` can be `null`. A returned wire does not move to a separate `returned` status, and Brale does not retry it automatically. `transfer.failed` confirms that the payout failed or was returned. It does not confirm that stablecoins have been credited back. Not every failed or returned payout is refunded. When Brale refunds a transfer, it emits [`transfer.refunding`](/webhooks/webhook-events#transfer-refunding) when the refund starts and [`transfer.refunded`](/webhooks/webhook-events#transfer-refunded) when the refund completes. ### Automatic Retries For onchain transfers, Brale automatically retries transient failures such as signing timeouts or network congestion. While retries are in progress, the transfer status remains `processing`. You do not need to take any action — retries are handled internally with exponential backoff and the transfer will resolve to either `complete` or `canceled`. There is no API endpoint to manually trigger a retry. If a transfer is canceled and you want to attempt the operation again, [submit a new transfer](/api-reference/brale/create-transfer). ## Monitoring Transfer Status To check the status of a transfer, poll the transfer endpoint: ```bash theme={null} curl --request GET \ --url "https://api.brale.xyz/accounts/${ACCOUNT_ID}/transfers/${TRANSFER_ID}" \ --header "Authorization: Bearer ${AUTH_TOKEN}" ``` The response includes a `status` field with one of the values described above, along with `updated_at` denoting the last time the status changed: ```json theme={null} { "id": "2bFGkrQ7mPp8dCvBNx1TqWYz5kj", "status": "complete", "amount": { "value": "10.00", "currency": "USD" }, "source": { "value_type": "usd", "transfer_type": "wire" }, "destination": { "address_id": "2MhCCIHulVdXrHiEuQDJvnKbSkl", "value_type": "SBC", "transfer_type": "base" }, "updated_at": "2026-03-10T15:42:18.531196Z", "created_at": "2026-03-10T15:40:03.531196Z" } ``` ### Polling Recommendations > [!NOTE] > > Where available, use [`transfer.completed`](/webhooks/webhook-events#transfer-completed) and [`transfer.failed`](/webhooks/webhook-events#transfer-failed) [webhooks](/webhooks/overview) for real-time production notifications when a transfer reaches a terminal state. Polling remains useful for fallback handling, reconciliation, and retrieving the latest transfer state. * **Poll interval** — Start at 25% of the anticipated transfer time. If the transfer is still in `pending` or `processing`, apply exponential backoff up to a reasonable maximum (for example, 60 seconds). * **Terminal check** — Stop routine polling once the status is `complete`, `canceled`, or `failed`. Stopping polling does not mean ignoring later webhook events. An outbound domestic wire can move from `complete` to `failed` if the bank returns it. Retrieve the latest transfer when you need to reconcile. * **Onchain transfers** — Most onchain transfers complete within 30 seconds. If a transfer is still `processing` after several minutes, it is likely being retried automatically. * **Fiat transfers** — Fiat settlement depends on the payment rail and time of day. A wire submitted at 2:00 PM ET may take up to 2 hours; an ACH credit may take 1–3 business days. FedNow typically takes minutes at any time of day. * **Idempotency** — Always send a unique [`Idempotency-Key`](/key-concepts/idempotency) when [creating transfers](/api-reference/brale/create-transfer) and reuse the same key on retries. On `401`, refresh your token and retry with the same key. ## Next Steps > [card] [Transfer Types](/coverage/transfer-types) > > Full list of supported onchain and offchain transfer\_type identifiers. > [card] [Value Types](/coverage/value-types) > > Canonical value\_type identifiers for stablecoins and fiat currencies. > [card] [Transfers](/key-concepts/transfers) > > How transfers work — required fields, scenarios, and status lifecycle. > [card] [Quick Start](/overview/quick-start) > > Create your first stablecoin transfer in minutes. # Troubleshooting & Known Pitfalls Source: https://docs.brale.xyz/documentation/troubleshooting Common issues, quick fixes, and how to avoid retries gone wrong. # Troubleshooting & Known Pitfalls Use this checklist when integrating and operating at volume. ## Auth & tokens * Tokens expire in \~60 minutes; refresh using `expires_in` before expiry. * 401 → refresh token, retry idempotently. Do not keep reusing an expired token. ## Environments & identifiers * Single account context: your `account_id` is the same on testnet and mainnet. * Environment-scoped clients: an API client is either testnet or mainnet, never both. * Use the correct client when minting the access token; a testnet client used on mainnet (or vice versa) will fail. ## Idempotency * Required on POST create endpoints (e.g., transfers). Missing key → 400. * Never reuse an Idempotency-Key with a different payload or URI (422). * Do not send Idempotency-Key on GETs. * Best practice: generate one UUID per logical action and persist it so retries reuse the same key. ## IDs (account\_id vs address\_id) * IDs are KSUIDs (27-char, time-sortable), not UUIDs—copy/paste carefully. * `address_id` is the universal source/destination primitive (wallets and fiat endpoints). * Internal (custodial) addresses are auto-created per account/chain; generally you do not create them manually. * If an address appears under an account-scoped endpoint but not via a global lookup, use the account-scoped endpoint. ## Transfers: value\_type + transfer\_type * Source and destination are always address-based; both carry `value_type` and `transfer_type`. * Use valid pairs from Coverage (value types and transfer types are case-sensitive). * Branding applies to ACH, outbound wire payouts, and FedNow payouts. See [Branded Transfers](/guides/2nd-and-3rd-party-transfers). ## Pagination & reconciliation * List transfers with pagination tokens; store transfer id, idempotency key, timestamps, status, and provider references. * Poll with backoff; avoid tight loops. * If you are waiting for transfer completion in production, consider using [`transfer.completed`](/webhooks/webhook-events#transfer-completed) and [`transfer.failed`](/webhooks/webhook-events#transfer-failed) [webhooks](/webhooks/overview) and use polling as a fallback or reconciliation mechanism. See [webhook troubleshooting](/webhooks/troubleshooting) for delivery diagnostics. ## Headers * Required: `Authorization: Bearer `, `Content-Type: application/json` on JSON POSTs, `Idempotency-Key` on create POSTs. * Avoid sending unexpected headers (including Idempotency-Key) on GET. ## Common errors ### 403 `network_not_supported` * Usually caused by using a testnet-scoped API client for a mainnet request, or a mainnet client for testnet. * Fix: use an API client created for the target environment and mint a new access token. ### 400 `invalid_transfer_types` on address creation * Response `detail`: `Invalid transfer types; Address transfer types must be compatible chains`. * Common cause: `transfer_types` on `POST /accounts/{account_id}/addresses/external` includes `rtp_credit`. RTP ended on October 30, 2026. The error mentions chains, but the rejected value is `rtp_credit`. * Fix: replace `rtp_credit` with `fednow_credit`. See [Migrate from `rtp_credit` to `fednow_credit`](/guides/fednow-outbound#migrate-from-rtp_credit-to-fednow_credit). * If the request does not include `rtp_credit` and `fednow_credit` is rejected, contact [support@brale.xyz](mailto:support@brale.xyz) to confirm FedNow is enabled on your account. ### 400 `invalid_transfer_type` on transfer creation * Response `detail`: `Invalid transfer type`. * Common cause: `destination.transfer_type` on `POST /accounts/{account_id}/transfers` is `rtp_credit`. * Fix: confirm the destination bank Address lists `fednow_credit` in `transfer_types`, then set `destination.transfer_type` to `fednow_credit`. Brale did not create a Transfer for the rejected request. See [Migrate from `rtp_credit` to `fednow_credit`](/guides/fednow-outbound#migrate-from-rtp_credit-to-fednow_credit). ### 404 `compatible_address_not_found` * Causes: * address is not compatible with the requested `transfer_type` in that environment * typo in `address_id` * `address_id` does not belong to the specified `account_id` on an account-scoped route * Fix: verify the `address_id` belongs to the `account_id`, ensure the address supports the `transfer_type`, and double-check casing. ### 422 `compatible_address_not_found` (transactional accounts) * Cause: the source account is a transactional account. Transactional accounts cannot originate on-chain transfers — their external addresses are destination-only, and they hold no internal (custodial) addresses. Checking the address balance first does not predict this; the constraint is about the address role, not funds. * Fix: route outbound value through a custodial account. See [Individual accounts](/guides/individual-accounts) and [Account types](/key-concepts/account-types) for what a transactional account can and cannot do. ### 422 `insufficient_balance` when the address shows enough funds * Cause: Brale checks the source address's available balance, not its onchain total. Brale subtracts transfers from that address that are still `pending` or `processing`. A block explorer, or [Get an address balance](/api-reference/brale/get-address-balance), can show more than you can spend while those transfers are in flight. * This is common when you send several transfers from the same address in quick succession, for example a conversion followed by a burn. * Fix: wait for the in-flight transfers to reach a terminal status, then retry with the same `Idempotency-Key` and body. You can also lower the amount. Lowering the amount changes the request, so use a new key. * Track in-flight amounts on your side. Before you create a transfer, subtract your own `pending` and `processing` transfers from the same source address from the balance you read. ### 422 on transfers to a bank address that received a return * Cause: when a bank returns a payment to an external bank address, for example an ACH return, Brale can disable that address. New transfers to a disabled address fail with `422`. * Check the [`transfer.failed`](/webhooks/webhook-events#transfer-failed) webhook or the transfer's [`failure`](/api-reference/brale/get-transfer#failure) field for the return code and reason. * Fix: confirm with the recipient that the bank account can receive payments. Then contact Brale support to re-enable the address. After Brale re-enables it, retry the transfer. ### 422 `external_address_disabled` * Cause: you tried to register a bank account that matches an external address Brale disabled after a return. Registering the same bank account again does not create a new, usable address. * Fix: contact Brale support to re-enable the existing address. After Brale re-enables it, use the existing `address_id`. To add rails such as `fednow_credit` or `wire`, use [Update an Address](/api-reference/brale/update-address) with `additional_transfer_types`. ### 422 `unsupported_account_combination` * Causes: * `verification_mode: bypass`, which is not supported for any combination * `verification_mode: reliance` from a caller without reliance enabled — reliance is enabled per managing account by Brale and is not self-serve * All eight combinations of `entity_type` (`business`, `individual`), `account_type` (`custodial`, `transactional`), and `verification_mode` (`standard`, `reliance`) are supported. * The rejection is permanent, so it is safe to cache this error against your idempotency key. * Fix: adjust the dimension fields to a supported combination. See [Account types](/key-concepts/account-types). ### 422 `unsupported_jurisdiction` * Cause: Brale does not serve the applicant's jurisdiction for the requested account type. Individual custodial accounts are U.S.-only and per-state. Business custodial accounts are per-state in the U.S.; outside the U.S. they are refused unless the business sends a `regulatory_profile` and is in an approved country. Transactional accounts are unavailable in some U.S. states and outside the approved country list. * The rejection is permanent, so it is safe to cache this error against your idempotency key. * Fix: check [Account availability](/coverage/account-availability) for where each customer and account type combination is available. ### 400 `regulator_required` * Cause: a business request sent `regulatory_profile` with `regulator` missing or blank. * The rejection is permanent, so it is safe to cache this error against your idempotency key. * Fix: set `regulatory_profile.regulator` to the authority the business is licensed or registered with, for example `FINTRAC`. If the business is not regulated, omit `regulatory_profile` entirely. See [Accounts](/key-concepts/accounts#creating-a-regulated-non-us-custodial-business-account). ### 400 `license_number_required` * Cause: a business request sent `regulatory_profile` with `license_number` missing or blank. * The rejection is permanent, so it is safe to cache this error against your idempotency key. * Fix: set `regulatory_profile.license_number` to the license or registration number the regulator issued. If the business is not regulated, omit `regulatory_profile` entirely. ### 422 `invalid_us_state` * Cause: the individual's `country` is `US` and `address.state` is missing, blank, or not a recognized US state or territory. Abbreviations and full names are both accepted (`CA`, `California`, `PR`). * A US territory is a US jurisdiction, not a separate country: send `country: "US"` with the territory in `address.state` (`PR`, `GU`, `AS`, `VI`, `MP`). * Fix: send a valid US state or territory in `address.state`. For a non-US individual, `address.state` is optional and free-form. ## Platform status Brale publishes real-time updates on incidents and scheduled maintenance at [status.brale.xyz](https://status.brale.xyz). Status is reported per transfer type and chain, for example Wire, ACH, Solana, and EVM, so you can see whether an issue affects your integration. What Brale publishes: * Incidents affecting the API, transaction processing, or specific transfer types * Scheduled maintenance, announced in advance * Updates as an incident progresses, and a notice when it's resolved > [!TIP] > > **Subscribe before you go live.** Click **Subscribe to updates** on [status.brale.xyz](https://status.brale.xyz) to get notified when Brale opens, updates, or resolves an incident. ## When in doubt * Re-read Coverage for exact identifiers (case and spelling). * Verify example paths and enums against the OpenAPI spec and Postman collection. # Branded Transfers Source: https://docs.brale.xyz/guides/2nd-and-3rd-party-transfers Show your business or your customer's verified identity instead of Brale on ACH transfers, outbound domestic wire payouts, and FedNow payouts. We've expanded the Transfers endpoint to support both 2nd and 3rd party ACH transfers, outbound domestic wire payouts, and FedNow payouts. When Brale initiates a transfer on behalf of your business or your customer's business, 2nd/3rd-party branding ensures the **receiver sees the intended business name** instead of "Brale". On ACH, `brand` controls the name on the receiver's bank statement line item. On outbound wires, `brand` selects the sender (originator) of the wire. On FedNow payouts, `brand` selects the sender the receiving bank sees. Branded transfers are supported for ach\_debit, ach\_credit, same\_day\_ach\_credit, outbound wire payouts (`destination.transfer_type: "wire"`), and FedNow payouts (`destination.transfer_type: "fednow_credit"`). Branding is not supported for `rtp_credit`. To learn more and see a demo, schedule a meeting to [talk to sales](https://brale.xyz/contact). ## Creating 2nd/3rd Party Transfers branded transfers **POST** `https://api.brale.xyz/accounts/account_id/transfers` Use the `brand` object to control the business name displayed to the receiver. Pass the target account inside the request body under `brand.account_id`. The `brand.account_id` is the **Account whose name should appear** to the receiver. * `account_id: aB3hJkL9mN2PqRsTuvWxyz1234` = `Company 1` * Your business * `account_id: 34fcsGrCgN0Z9zC1v55eP0I6AKW` = `Company 2` * Your customer If you omit `brand`, the transfer uses your default branding. `brand` and `ach_description` are independent. `brand` controls who the ACH payment is from. `ach_description` controls the short description shown after the sender name on the recipient's bank statement. Set it as `destination.ach_description` for `ach_credit` and `same_day_ach_credit` payouts, or `source.ach_description` for `ach_debit`. See [What recipients see on ACH](/key-concepts/transfers#what-recipients-see-on-ach) for character limits and defaults. > **Definitions** > > * **2nd-party**: You are the brand (display name = your business). > * **3rd-party**: Your customer's business is the brand (display name = your customer). ### Example of a 2nd Party Transfer (brand = your business) **POST** `https://api.brale.xyz/accounts/account_id/transfers` `brand.account_id` = `aB3hJkL9mN2PqRsTuvWxyz1234` (Company 1) The receiver will see **Company 1** as the name on the ach\_debit transaction. ```json Request theme={null} { "amount": { "value": "100", "currency": "USD" }, "source": { "value_type": "USD", "transfer_type": "ach_debit", "address_id": "34R7rk6hBuBl8Dmytqyz3iSSSQd" }, "destination": { "value_type": "SBC", "transfer_type": "Canton", "address_id": "34R8PiuPLgHlXbWci7JlSmLapQY" }, "brand": { "account_id": "aB3hJkL9mN2PqRsTuvWxyz1234" } } ``` ```json Response theme={null} { "id": "39nw6YFnwYbrylj7csQ1FR7W0xs", "status": "pending", "failure": null, "source": { "address_id": "34R7rk6hBuBl8Dmytqyz3iSSSQd", "value_type": "USD", "transfer_type": "ach_debit" }, "destination": { "address_id": "34R8PiuPLgHlXbWci7JlSmLapQY", "value_type": "SBC", "transfer_type": "Canton" }, "amount": { "value": "100", "currency": "USD" }, "note": null, "brand": { "account_id": "aB3hJkL9mN2PqRsTuvWxyz1234" }, "created_at": "2026-01-01T00:00:00Z", "updated_at": "2026-01-01T00:00:00Z" } ``` ### Example of a 3rd Party Transfer (Company 2 = your customer) **POST** `https://api.brale.xyz/accounts/account_id/transfers` `brand.account_id` = `34fcsGrCgN0Z9zC1v55eP0I6AKW` (Company 2) The receiver will see Company 2 as the originator name on the ach\_debit transaction. ```json Request theme={null} { "amount": { "value": "100", "currency": "USD" }, "source": { "value_type": "USD", "transfer_type": "ach_debit", "address_id": "34R7rk6hBuBl8Dmytqyz3iSSSQd" }, "destination": { "value_type": "SBC", "transfer_type": "Canton", "address_id": "34fczKxoKRUMuZeWyMj9hhqVjuJ" }, "brand": { "account_id": "34fcsGrCgN0Z9zC1v55eP0I6AKW" } } ``` ```json Response theme={null} { "id": "39nw6YFnwYbrylj7csQ1FR7W0xs", "status": "pending", "failure": null, "source": { "address_id": "34R7rk6hBuBl8Dmytqyz3iSSSQd", "value_type": "USD", "transfer_type": "ach_debit" }, "destination": { "address_id": "34fczKxoKRUMuZeWyMj9hhqVjuJ", "value_type": "SBC", "transfer_type": "Canton" }, "amount": { "value": "100", "currency": "USD" }, "note": null, "brand": { "account_id": "34fcsGrCgN0Z9zC1v55eP0I6AKW" }, "created_at": "2026-01-01T00:00:00Z", "updated_at": "2026-01-01T00:00:00Z" } ``` ### Confirm the brand on a transfer Transfer responses include a `brand` field. When the transfer was branded, `brand` is `{ "account_id": "" }`. When it was not branded, `brand` is `null`. The create, get, and list transfer endpoints all return this field, so you can confirm from the response that your brand was applied to an ACH, wire, or FedNow transfer. A transfer created with `brand` in the request can still return `brand: null`. In that case, Brale sent the transfer unbranded. ## Branded outbound wires You can brand an outbound domestic wire payout with the same top-level `brand` object. `brand.account_id` selects the verified Account identity used as the wire sender (originator). It is not free-form display-name text. A branded wire request involves three different parties: | Field | What it selects | | :- | :- | | `account_id` in the URL | The Account that funds the transfer. `source.address_id` must be a funded internal Address on this Account. | | `brand.account_id` | The Account whose verified identity appears as the wire sender. This can be your business (2nd-party) or your customer's business (3rd-party). | | `destination.address_id` | The recipient's wire-capable bank Address. | Branding only changes the sender identity on the wire. It does not change which Account funds the transfer, who owns the source or destination, custody, or the existing payout eligibility and verification requirements. If you omit `brand`, the wire is sent unbranded, as before. You do not need to create an Automation or set up a separate funding account to send a branded wire. `brand` and `destination.wire_memo` are independent. `brand` controls who the wire is from. `destination.wire_memo` controls the payment reference text sent with the wire. Pass an explicit `wire_memo` when the recipient needs a specific reference. ### Example of a branded wire payout (Company 2 = your customer) **POST** `https://api.brale.xyz/accounts/{account_id}/transfers` In this example, your business account in the URL funds the payout from its internal Address, and the wire is sent with **Company 2** as the sender. ```json Request theme={null} { "amount": { "value": "2500.00", "currency": "USD" }, "source": { "address_id": "2VcUIonJeVQzFoBuC7LdFT0dRe4", "value_type": "SBC", "transfer_type": "solana" }, "destination": { "address_id": "2AbCdEfGHiJkLmN0pQrStUvWxYz", "value_type": "USD", "transfer_type": "wire", "wire_memo": "Invoice 1048" }, "brand": { "account_id": "34fcsGrCgN0Z9zC1v55eP0I6AKW" } } ``` * `source.address_id` is a funded internal Address on the Account in the URL. `source.value_type` and `source.transfer_type` match the token and network it holds. * `destination.address_id` is an external bank Address with `wire` in its `transfer_types`. * `destination.transfer_type` is `wire` and `destination.value_type` is `USD`. Creating the Transfer does not mean the wire has settled. Processing a branded wire can take longer while Brale prepares the brand Account's sender identity. Keep tracking the original Transfer while it is `pending` instead of creating a replacement, and reuse the same `Idempotency-Key` if you retry the same request. See [Stablecoin to fiat offramp](/guides/stablecoin-to-fiat-offramp) to create the recipient's wire-capable bank Address and to track the payout with `destination.payment_details.imad`, returns, and refunds. ## Branded FedNow payouts You can brand a FedNow payout with the same top-level `brand` object. `brand.account_id` selects the verified Account identity the receiving bank sees as the sender. As with wires, the Account in the URL funds the payout from `source.address_id`, and `destination.address_id` is the recipient's bank Address with `fednow_credit` enabled. `brand` applies to 2nd- and 3rd-party transfers. It is independent of the FedNow enablement requirement: your Account must have FedNow enabled whether or not you send `brand`. See [FedNow overview](/guides/fednow). ### Example of a branded FedNow payout (Company 2 = your customer) **POST** `https://api.brale.xyz/accounts/{account_id}/transfers` ```json Request theme={null} { "amount": { "value": "250.00", "currency": "USD" }, "source": { "address_id": "2VcUIonJeVQzFoBuC7LdFT0dRe4", "value_type": "SBC", "transfer_type": "solana" }, "destination": { "address_id": "2MhCCIHulVdXrHiEuQDJvnKbSkl", "value_type": "USD", "transfer_type": "fednow_credit" }, "brand": { "account_id": "34fcsGrCgN0Z9zC1v55eP0I6AKW" } } ``` Creating the Transfer does not mean the payment has been sent. Processing a branded FedNow payout can take longer while Brale prepares the brand Account. Keep tracking the original Transfer while it is `pending` instead of creating a replacement, and reuse the same `Idempotency-Key` if you retry the same request. See [Send FedNow payouts](/guides/fednow-outbound) to register the recipient's bank Address and track the payout. ## Brand account errors When you create a branded transfer, Brale can reject the request if the Account in `brand.account_id` can't be used as a brand: | Status | `id` | What to do | | - | - | - | | `404` | `brand_account_not_found` | Check that `brand.account_id` is correct. | | `422` | `brand_account_not_verified` | Contact support to resolve the brand Account before retrying. | | `422` | `brand_account_update_required` | Contact support to resolve the brand Account. Then retry with the same `Idempotency-Key` and body. | | `503` | `brand_identity_unavailable` | Retry the same request with the same `Idempotency-Key` after a few minutes. Contact support if it continues. | Brale does not store the `422 brand_account_update_required` or `503 brand_identity_unavailable` response for the `Idempotency-Key`. The same request succeeds once support fixes the brand Account or the service recovers. # ach_debit to end user wallet Source: https://docs.brale.xyz/guides/ach-on-ramp Create an ach_debit funded transaction to a custodial, or self custody wallet. ## Introduction This document is a guide to help your team evaluate and implement the ach\_debit transfer type. It covers what the ach\_debit functionalities are, how to get set up, and the key steps to go from initial testing to production. Use it as a reference while you integrate. When making `POST` requests Brale requires an Idempotency-Key header to be included and used on retries. Read more about [idempotency keys in Brale](/key-concepts/idempotency#what-is-an-idempotency-key). Using ach-debits requires your business to be fully onboarded, and branded ach\_debits are a premium feature. * **Testnet Environment** * If users want to first test the below endpoints on testnet, they will need to create API credentials that are scoped to testnet - please follow the below link for more information: * [Environments walkthrough](/overview/sandbox-and-testnet) * **Production Environment** * Partners can leverage mainnet APIs by using their mainnet API keys generated in the Brale Portal. ## End Customer Account Creation * [`Here is an example of how to get your account_id`](/guides/how-to/get-your-account-id) ```tsx theme={null} curl --request GET \ --url https://api.brale.xyz/accounts \ --header "Authorization: Bearer ${ACCESS_TOKEN}" ``` * Managed account model: where Partner’s end users can create an account under Partner account, where Partner will have access to those accounts. This will allow end users to view their account and transaction history for all onramp operations executed. The Partner will be able to execute onramp operations on behalf of the end users as well. ## **Create Plaid link token** * The following request is an example of how to create a Plaid Token that you will need to use in the next section when setting up addresses for funding your transactions. Specifically, you will want to store the `link_token` as this is the plaid token you will need to use in subsequent requests. * **Native mobile app considerations (Plaid Link):** Because Brale manages the Plaid client configuration, mobile Plaid OAuth is **not fully self-serve**. You must submit your platform-specific values to Brale so they can be whitelisted before mobile Plaid OAuth will work. Your backend should create the `link_token`. Your mobile app uses the `link_token` to initialize Plaid Link. **iOS:** * Provide Brale with your iOS **redirect URI**. This must be an HTTPS universal link (e.g., `https://example.com/plaid-redirect`). Custom URL schemes are not supported for Plaid OAuth on iOS. * Your app must be configured for [Universal Links](https://developer.apple.com/documentation/xcode/allowing-apps-and-websites-to-link-to-your-content) so the redirect returns the user to your app after they complete the bank login. **Android:** * Provide Brale with your **Android package name** (`android_package_name`, i.e., the `applicationId` from your app's build configuration). * The package name you submit must exactly match your app's configuration. A mismatch will prevent Plaid from redirecting back to your app. > [!WARNING] > > Brale must whitelist your iOS redirect URI and/or Android package name before mobile Plaid OAuth will function. Contact Brale to submit these values. **Troubleshooting: user completes bank login but is not returned to the app** If the user finishes the Plaid/bank login flow but lands in Safari (iOS) or is not redirected back to your app (Android), check the following: * **Brale whitelist not completed** — confirm Brale has approved your redirect URI or package name. * **iOS Universal Link misconfigured** — verify your app's Associated Domains entitlement and `apple-app-site-association` file are set up correctly. * **Android package name mismatch** — ensure the `android_package_name` submitted to Brale matches your app's `applicationId`. * **App configuration does not match the submitted value** — double-check that the value registered with Brale exactly matches what your app is using at runtime. ```bash theme={null} curl --request POST \ --url https://api.brale.xyz/accounts/{account_id}/plaid/link_token \ --header 'Authorization: Bearer ' \ --header 'Content-Type: application/json' \ --data ' { "legal_name": "John Doe", "email_address": "user@example.com", "phone_number": "+1234567890", "date_of_birth": "1990-01-01", "client_name": "Rhythmic" } ' ``` Response Body Example: ```json theme={null} { "link_token": "link-sandbox-123456789", "expiration": "2024-01-01T12:00:00Z", "callback_url": "https://customer.com/webhooks/plaid-updates" } ``` * Your backend should call the endpoint indicated by `callback_url` (which is the Brale “register account” step) and pass the `public_token` (and your webhook URL, if applicable). This registers the bank account inside Brale and returns an `address_id` for subsequent transfers. ### Customize the application name Pass the optional `client_name` field in the link token request body to set the application name that users see in Plaid Link. * `client_name` is a string with a maximum length of 30 characters. * If you omit `client_name`, Plaid Link displays `Brale`. * Values longer than 30 characters return a validation error. ```json theme={null} { "legal_name": "John Doe", "email_address": "user@example.com", "phone_number": "+1234567890", "date_of_birth": "1990-01-01", "client_name": "Rhythmic" } ``` > [!NOTE] > > `client_name` changes the displayed application name only. It does not change logos, colors, or ACH bank statement descriptors. Logos and colors are configured separately through Plaid Link customizations, which are selected with `link_customization_name`. You cannot pass a logo URL through `client_name`, and customer-specific logo setup is not self-service. ## Setup addresses (Funding) * If the user wants to connect a financial institution to fund their stablecoin with, they will need to create an external address for it. The same goes for funding stablecoins with existing digital assets from an external wallet. When transferring to an external address (on-chain wallet or off-chain bank account), use: * **`POST /accounts/{account_id}/addresses/external`** * Include an **`Idempotency-Key`** header and a JSON body. Examples: **On-chain wallet (e.g., Solana) request body example:** ```json theme={null} { "name": "User Solana Wallet", "address": "7xKXtg...", "transfer_types": ["solana"] } ``` **Off-chain bank account request example:** * Partner will need to create a form that requests this information from end users to provide the below data * Once the below data has been recorded, Brale will generate an “Address ID” that corresponds to the financial institution OR the external wallet, and for any future debit operations we will reference the “Address ID”. [Create off-chain external address](/api-reference/brale/create-address): ```bash theme={null} curl --request POST \ --url https://api.brale.xyz/accounts/{account_id}/addresses/external \ --header 'Authorization: Bearer ' \ --header 'Content-Type: application/json' \ --header 'Idempotency-Key: ' \ --data ' { "name": "Operating Account (ACH Debit)", "transfer_types": [ "ach_debit" ], "plaid_token": "PUBLIC_TOKEN_EXCHANGED_WITH_BRALE" } ' ``` ## Check the bank balance (optional) After you register the bank account through Plaid and before you submit the transfer, you can check the linked account's USD balance. Pass `transfer_type=ach_debit` and `value_type=USD`. ```bash theme={null} curl --request GET \ --url "https://api.brale.xyz/accounts/${ACCOUNT_ID}/addresses/${ADDRESS_ID}/balance?transfer_type=ach_debit&value_type=USD" \ --header "Authorization: Bearer ${AUTH_TOKEN}" ``` ```json theme={null} { "address": { "id": "34yknnMShvDbSW6tQg4HLlN41QO", "address": null, "account_number": "****1234" }, "balance": { "value": "1250.42", "currency": "USD" }, "value_type": "USD", "transfer_type": "ach_debit" } ``` * The balance is a point-in-time snapshot and may be cached for up to 30 seconds. It does not guarantee that the ACH debit will settle. * Brale still validates the balance when you submit the transfer. If the balance is insufficient, `POST /transfers` returns HTTP `422` with `type: insufficient_balance`. See [Idempotency](/key-concepts/idempotency) for how to retry. * If the balance request returns `503` with `type: service_unavailable`, balance data is temporarily unavailable. This does not mean the balance is zero or insufficient. * If it returns `400` with `type: plaid_error` and `code: plaid_item_login_required`, have the user relink the bank account through Plaid. > [!TIP] > > If ACH debits fail for one linked bank account while the user's other accounts work, the Plaid connection for that account may have expired. Call the balance endpoint for that `address_id`. If it returns `plaid_item_login_required`, have the user relink the bank account through Plaid, then use the `address_id` returned by registration for new debits. ### ACH debit errors When you submit an `ach_debit` transfer, Brale can reject it with HTTP `422` if the source bank account cannot be debited. Brale does not create the transfer or submit the debit. | `type` | Cause | Fix | | - | - | - | | `bank_account_not_linked` | The bank account is not linked through Plaid. | Link the bank account through Plaid before using it for an ACH debit. | | `bank_account_relink_required` | The bank account's Plaid link has expired. | Have the user relink the bank account through Plaid, then retry. | | `bank_balance_unavailable` | Brale could not verify the bank account's balance. | Retry. If the error continues, have the user relink the bank account. | | `insufficient_balance` | The transfer amount exceeds the bank account's available balance. | Have the user fund the bank account, then retry. | Brale does not cache `422` responses for idempotency, so you can retry with the same `Idempotency-Key` and body. See [Idempotency](/key-concepts/idempotency). See [Get A Balance](/guides/how-to/get-a-balance#plaid-linked-bank-balance) for details and [Get an address balance](/api-reference/brale/get-address-balance#errors) for all errors. ## Requesting Mint/On-ramping * At this stage your end users’ accounts should already be connected, where Brale will execute debits and mint to desired stablecoins from the process below: * You will need to call the following below endpoints with the relevant data to be able to execute a `swap` or a `transfer`. * Transfer - Fiat to Stablecoin Transfer scenarios: * [`Transfer scenarios: understanding value_type and transfer_type`](/key-concepts/transfers#transfer-scenarios-understanding-value_type-and-transfer_type) **POST** **`https://api.brale.xyz/accounts/account_id/transfers`** * `USDC` to `SBC` request body example: ```json theme={null} { "amount": { "value": "100", "currency": "USD" }, "source": { "address_id": "2VcUIonJeVQzFoBuC7LdFT0dRe4", "value_type": "USDC", "transfer_type": "Solana" }, "destination": { "address_id": "2VcUIonJeVQzFoBuC7LdFT0dRe4", "value_type": "SBC", "transfer_type": "Solana" } } ``` * [`USD to Stablecoin request body example`](/key-concepts/transfers#usd-to-stablecoin-ach-debit): ```json theme={null} { "amount": { "value": "1", "currency": "USD" }, "source": { "address_id": "2VcUIonJeVQzFoBuC7LdFT0dRe4", // address_id is the primitive, even for onchain sources "value_type": "USD", "transfer_type": "ach_debit" }, "destination": { "address_id": "34yGFQf7tP1HJCPAWNGaN4rh4nX", "value_type": "SBC", "transfer_type": "polygon" }, "brand": { "account_id": "34lCJZ2bxbPAzB3ou67Md01veUo" } } ``` # Canton Token Standard Source: https://docs.brale.xyz/guides/canton-token-standard Transfer stablecoins to Canton Network parties using the Token Standard interface for offers and acceptance. ## Transfer Overview Stablecoins issued by Brale are compatible with the Canton Token Standard, which specifies an interface which can be used to transfer any tokens that have smart contract Templates that comply in the same manner. This is a 2-step process, in which the transfer is offered by the sender creating a Contract instance which implements the TransferInstruction interface and the recipient exercising the Accept choice on the TransferInstruction contract. For transfers to parties also custodied by Brale, this acceptance is performed automatically. For Canton network transfers to parties not custodied by Brale, a User with permission to ActAs the recipient party must use the Ledger API. Support for manually accepting transfers is included in the Canton Utility UI as well as other Token Standard-compliant wallet applications. Offers must be accepted within 72 hours or they will expire and be automatically withdrawn. ## Instrument IDs and registrar parties Token Standard calls identify a token by its instrument ID and its registrar (instrument admin) party. Use the registrar party in the `registrars/{party}` path of Token Standard API requests, such as the one in [Step 2](#step-2-get-the-contextual-data-needed-to-accept-the-transfer). > [!WARNING] > > Instrument IDs and registrar parties are different on Canton mainnet (`canton`) and Canton testnet (`canton_testnet`). Don't reuse mainnet values on testnet. Requests that use the wrong registrar party fail with a "Registrar ... not found" error. ### SBC > [tab] Mainnet (canton) > > | Field | Value | > | - | - | > | Instrument ID | `f29bdd7a-1469-498a-ba2a-796bf5387b31` | > | Registrar party | `party-28dc4516-b5ca-44ff-86c7-2107e90a6807::1220b8301e18aa8a401d6e34e6c20f8b0243183c514373bca8f1b6b9270246341a9e` | > [tab] Testnet (canton\_testnet) > > | Field | Value | > | - | - | > | Instrument ID | `af5183ba-f6f5-4661-905f-bce6fdb1088e` | > | Registrar party | `brale-api-gateway::122056ed5f1222640cfab6d23b22e7e91446a72a5b226e0e8133f22687795228780a` | SBC doesn't require holder credentials on either network. Any Canton party can hold and receive SBC. ### Other Brale-issued tokens Each Brale-issued token on Canton, such as `CSC` or `4MGCC`, has its own instrument ID. Values also differ between mainnet and testnet. To get the instrument ID and registrar party for another token, contact Brale support and include the token's `value_type` and the network (`canton` or `canton_testnet`). ## Accepting a Transfer via the Ledger and Token Standard APIs Acceptance can be automated by using the Ledger and Token Standard APIs to retrieve the necessary contextual information and exercise the Accept choice. The below example shows how to accept an offer using the HTTP JSON Ledger API of the recipient's participant. ### Step 1: Retrieve Pending Transfers First, query your node to list all pending TransferInstructions associated with your party. This allows you to identify the specific transfer you intend to accept. To query for the transfer instructions, it is first necessary to get the current ledger end offset. ```shell title="Get current ledger end offset" theme={null} curl -s GET \ --url "${HTTP_JSON_API}/v2/state/ledger-end" \ --header "Accept: application/json" \ --header "Authorization: Bearer ${RECEIVER_TOKEN}" ``` Note the value of offset in the response, which will be used in the request to obtain the TransferInstructions. ```shell title="Get the active contracts as of the offset" theme={null} curl -s \ --url "${HTTP_JSON_API}/v2/state/active-contracts" \ --header "Authorization: Bearer ${RECEIVER_TOKEN}" \ --header "Content-Type: application/json" \ --request POST \ --data @- < [tab] Cantonloop > > ![CantonLoop](https://mintcdn.com/brale/sFbgmRzh8uy0Myzw/images/cantonloop.png?fit=max\&auto=format\&n=sFbgmRzh8uy0Myzw\&q=85\&s=21e8b2a006398a8da301583440f429a8) > [tab] Cantonwallet > > ![Cantonwallet](https://mintcdn.com/brale/sFbgmRzh8uy0Myzw/images/cantonwallet.png?fit=max\&auto=format\&n=sFbgmRzh8uy0Myzw\&q=85\&s=6ea7f3cda965c785fdf3f494e7f09661) # Custodial Accounts Source: https://docs.brale.xyz/guides/custodial-accounts Implementation guide for managed accounts that need Brale-managed wallet addresses and stablecoin balances on supported chains. > [!NOTE] > > Custodial Accounts are a managed-account configuration for customers that need Brale-managed internal wallet addresses and stablecoin balances. For the account-model comparison and platform-to-customer relationship, see [Managed Accounts](/guides/managed-accounts). Brale enables businesses to hold fiat-backed stablecoins on behalf of their end users—unlocking powerful digital dollar experiences for wallets, marketplaces, fintech apps, and neobanks. Use stablecoins as account balances, enable fast transfers, or power embedded payouts. Custodial accounts are available for businesses (KYB) and individuals (KYC). This guide covers the business flow. Individual custodial accounts are U.S.-only. Business custodial accounts are available in supported U.S. states, and outside the United States to regulated businesses in approved countries that send a `regulatory_profile`; see [International custodial availability for regulated businesses](/coverage/account-availability#international-custodial-availability-for-regulated-businesses). See [Account availability](/coverage/account-availability) for the U.S. states where each can be created. The individual custodial state list is narrower than the business list. > [!NOTE] > > Need to onboard an individual end user? See [Individual accounts](/guides/individual-accounts) for the KYC-verified flow, custodial or transactional. A business outside the US must be regulated and send a `regulatory_profile`; see [Creating a regulated non-US custodial business account](/key-concepts/accounts#creating-a-regulated-non-us-custodial-business-account). The controller and beneficial owners do not have to live in the US. See [Non-US controllers and beneficial owners](/key-concepts/accounts#non-us-controllers-and-beneficial-owners) for what changes in the payload. ## What It Does Custody lets you: * Create and manage custodial wallets for end users on any blockchain Brale supports. * Hold stablecoin balances across all supported chains. * Initiate transfers and payouts directly from custodied funds using any stablecoin supported at Brale. All supported custodial accounts receive Brale-managed internal wallets on supported chains out of the box—no custom wallet infrastructure required. [Transactional accounts](/guides/transactional-accounts) are non-custodial and do not receive internal wallets. When new custodial wallets are created they are instantly compatible with all transfer types on the platform. ## Who It's For Use cases include: * Wallets that want to show balances and enable transactions * Neobanks offering digital dollar accounts * Marketplaces holding funds for sellers or escrow * Fintech platforms embedding payments or savings * Custodial wallets bound to automations to automatically receive and mint stablecoins for end users. ## How It Works 1. **Create Wallets**\ When you [register a custodial Account](/key-concepts/accounts), custodial wallets are created automatically on all supported chains, so the default set is ready to use without any additional setup. You can also provision additional internal wallets on demand via [`POST /accounts/{account_id}/addresses/internal`](/api-reference/brale/create-internal-address) — useful for segmenting funds within a single account. 2. **Receive Deposits**\ You or your users can send stablecoins directly to custodial wallet addresses. Just [fetch wallet addresses](/key-concepts/addresses) and fund them. 3. **Track Balances**\ Use the [Balances endpoint](/api-reference/brale/get-address-balance) to query stablecoin holdings across all wallets and chains. 4. **Initiate Payouts**\ Send funds from any custodial wallet using the [Transfers](/key-concepts/transfers) endpoint. This supports on-chain transfers, off-chain payouts, and more. ## Related API References [`POST /accounts`](/api-reference/brale/create-account) - Register an account [`GET /addresses`](/api-reference/brale/list-addresses) - Fetch custodial wallet addresses. Custodial wallets have type `internal` [`POST /accounts/{account_id}/addresses/internal`](/api-reference/brale/create-internal-address) - Provision an additional internal (custodial) address [`GET /balances`](/api-reference/brale/get-address-balance) - View wallet balances [`POST /transfers`](/api-reference/brale/create-transfer) - Initiate transfers and payouts # FedNow overview Source: https://docs.brale.xyz/guides/fednow Receive FedNow deposits that mint stablecoins through Automations, and send FedNow payouts from stablecoin balances with Transfers. FedNow is the Federal Reserve's instant payment service. Brale supports FedNow in two directions, and each direction uses a different API object: | Direction | What happens | API object | You call | | - | - | - | - | | Inbound (onramp) | A payer sends a FedNow credit from their bank to an Automation's virtual account. Brale creates a Transfer and mints stablecoins. | [Automation](/key-concepts/automations) | `POST /accounts/{account_id}/automations` once. No per-deposit API call. | | Outbound (offramp) | Brale pays out USD over FedNow from stablecoins held in a Brale internal Address. Payouts can be [branded](/guides/2nd-and-3rd-party-transfers#branded-fednow-payouts) with your business or your customer's business as the sender. | [Transfer](/key-concepts/transfers) | `POST /accounts/{account_id}/transfers` for each payout. | > [!NOTE] > > FedNow is available on Brale accounts where it has been enabled. If a request that uses FedNow is rejected on your account, contact [support@brale.xyz](mailto:support@brale.xyz) to confirm enablement. Limits and fees follow your Brale agreement. ## Identifiers FedNow uses different identifiers depending on context. Use the value that matches the field you are setting. | Context | Field | Value | | - | - | - | | Transfer rail (requests and responses) | `source.transfer_type` or `destination.transfer_type` | `fednow_credit` | | Bank Address capability | `transfer_types`, `additional_transfer_types` | `fednow_credit` | | Automation configuration | `source.value_type` | `USD`. Do not set a deposit rail. | | Testnet deposit simulator input | `transfer_type` on the simulate request | `fednow` | | Transfer list filter | `transfer_type` query parameter | `fednow_credit` | ## Guides > [card] [Receive FedNow deposits](/guides/fednow-inbound) > > Share Automation funding instructions, let payers push FedNow credits, and mint stablecoins automatically. > [card] [Send FedNow payouts](/guides/fednow-outbound) > > Register or upgrade a recipient bank Address and create a `fednow_credit` Transfer. ## Lifecycle and timing * FedNow operates 24 hours a day, 7 days a week, including weekends and holidays. Business-day cut-off times on [Transfer timing](/documentation/platform/transfer-timing) apply to wire and ACH, not to FedNow. * FedNow transfers are limited to \$10,000 per transaction in both directions: payouts and Automation deposits. See [Transfer limits](/key-concepts/transfers#transfer-limits). * FedNow replaces RTP. If your integration still sends `rtp_credit`, see [Migrate from `rtp_credit` to `fednow_credit`](/guides/fednow-outbound#migrate-from-rtp_credit-to-fednow_credit). * FedNow availability does not guarantee instant end-to-end completion. Brale reviews, bank processing, and onchain settlement of the stablecoin leg can add time. * HTTP `201 Created` (Transfers, Automations, Addresses) and `202 Accepted` (deposit simulation) mean Brale accepted or created the resource. They do not mean funds have settled. * A Transfer's terminal statuses include `complete`, `canceled`, and `failed`. `pending` and `processing` are in progress. The `status` enum also includes `compliance review`, `refunding`, and `refunded`. None of these mean the Transfer is complete. * An Automation with `status: active` is ready to receive deposits. That is different from a Transfer with `status: complete` and from the `transfer.completed` webhook event. * `payment.completed` reports that Brale received the fiat payment. It does not confirm that the stablecoin mint was delivered. Use the Transfer's `status` or `transfer.completed` for that. ## Safety rules * **Idempotency.** Send an `Idempotency-Key` on every `POST`. Retry the same logical operation with the same key and the same body. See [Idempotency](/key-concepts/idempotency). * **Pending payouts.** Do not submit a replacement payout because a Transfer is `pending` or `processing`. Keep tracking the original Transfer until it reaches a terminal status. * **Branded payouts.** A [branded payout](/guides/2nd-and-3rd-party-transfers#branded-fednow-payouts) can stay `pending` longer while Brale prepares the brand Account. Do not create a replacement while it is `pending`. Keep tracking the original Transfer and reuse the same `Idempotency-Key` on retries. * **Cancellation.** Brale can cancel a payout only before it submits the payment to FedNow. A `processing` payout cannot be canceled, and a `pending` status does not guarantee that cancellation is still possible. * **Returns.** Cancellation is different from a return after settlement. Do not assume a settled payout is refunded automatically. * **Rail fallback.** Do not assume Brale moves a FedNow payout to another rail. Read `destination.transfer_type` on the Transfer. When `payment_details.original_transfer_type`, `fallback_reason`, `fallback_reason_code`, or `fallback_at` are present, the payment was sent on a different rail than requested. * **Metadata.** Wire-only fields such as `wire_memo` and `payment_details.imad` do not apply to FedNow. Read only the `payment_details` fields that are present on the response. ## FedNow errors Brale returns FedNow validation errors with the standard error envelope (`type`, `detail`, `status`). | Status | `type` | Meaning | What to do | | - | - | - | - | | `422` | `fednow_routing_number_not_supported` | The recipient's routing number does not participate in FedNow. | Do not retry the same request. Use another rail or another FedNow-participating account. | | `422` | `fednow_provider_registration_failed` | Brale could not register the recipient for FedNow. This can be temporary. | Retry the same request with the same `Idempotency-Key` and body after a backoff. If it keeps failing, contact support. | ```json Response (422) theme={null} { "type": "fednow_routing_number_not_supported", "detail": "The routing number does not support FedNow.", "status": 422 } ``` For timeouts, `429`, and `5xx` responses, retry with the same `Idempotency-Key` and body using exponential backoff. ## Testing * **Inbound:** On testnet, [simulate a FedNow deposit](/guides/fednow-inbound#test-on-testnet) into an Automation with `transfer_type: "fednow"`. Simulated funding does not move real money. * **Outbound:** Testnet does not send real FedNow payouts. See [Test outbound payouts](/guides/fednow-outbound#test-outbound-payouts). # Receive FedNow deposits Source: https://docs.brale.xyz/guides/fednow-inbound Mint stablecoins automatically when a payer sends a FedNow credit to an Automation's virtual account. Inbound FedNow uses an [Automation](/key-concepts/automations). The Automation provides a virtual account. When a payer sends a FedNow credit from their bank to that account, Brale creates a Transfer and mints stablecoins to the Automation's destination. You do not call `POST /transfers` for each deposit. Brale does not pull or debit the payer's bank, and the payer does not need a Plaid-linked account to send funds. > [!NOTE] > > FedNow deposits are available on Brale accounts where FedNow has been enabled. Contact [support@brale.xyz](mailto:support@brale.xyz) to confirm enablement. ## Prerequisites * A Brale [Account](/key-concepts/accounts) with `status: complete`. * API credentials with the `automations:write`, `automations:read`, and `transfers:read` scopes. * A destination [Address](/key-concepts/addresses) for the minted stablecoins, and a stablecoin `value_type` supported on its `transfer_type`. See [Transfer types](/coverage/transfer-types). * A [webhook subscription](/webhooks/quickstart) for `transfer.*` and `payment.completed` (recommended). ### Destination and account-type restrictions * Automations on a transactional account (`account_type: transactional`) may only target external destinations. Brale rejects a Brale-custodied destination on those accounts. See [Account types](/key-concepts/account-types). * The destination `transfer_type` must be a network that supports the destination `value_type`. Use lowercase network identifiers, such as `solana` or `base`. ## How it works 1. You create an Automation with `source.value_type: "USD"` and a stablecoin destination. 2. Brale provisions a virtual account. When the Automation is `active`, `source.funding_instructions` holds the bank coordinates. 3. You share those coordinates with the payer. 4. The payer sends a FedNow credit from their bank. 5. Brale receives the payment, creates a Transfer with `source.transfer_type: "fednow_credit"` and your `automation_id`, and mints stablecoins to the destination. ## Step 1: Create an Automation or reuse an existing one If you already have an `active` USD Automation for this destination, reuse it. Existing eligible virtual accounts are expected to accept FedNow without recreation, and you do not need a separate FedNow Automation. To create one, send `POST /accounts/{account_id}/automations`: ```bash theme={null} curl --request POST \ --url "https://api.brale.xyz/accounts/${ACCOUNT_ID}/automations" \ --header "Authorization: Bearer ${AUTH_TOKEN}" \ --header "Content-Type: application/json" \ --header "Idempotency-Key: $(uuidgen)" \ --data '{ "name": "Customer XYZ Onramp", "source": { "value_type": "USD" }, "destination": { "address_id": "35LWXNTO2jem13nXCLyciFdi162", "value_type": "SBC", "transfer_type": "solana" } }' ``` Do not set `source.transfer_type`. A USD Automation accepts the inbound rails enabled for its virtual account. Responses may show `source.transfer_type: null`. A null value does not mean FedNow is disabled. To show a managed account's verified identity as the beneficiary on the funding instructions, add `brand.account_id`. See [Branded Automations](/key-concepts/automations#branded-automations). ## Step 2: Wait for the Automation to become active Automations start as `pending`. Poll `GET /accounts/{account_id}/automations/{automation_id}` until `status` is `active`. ```bash theme={null} curl --request GET \ --url "https://api.brale.xyz/accounts/${ACCOUNT_ID}/automations/35kVg1llbsOBYvx9XKr9eOtsD9z" \ --header "Authorization: Bearer ${AUTH_TOKEN}" ``` ## Step 3: Retrieve the funding instructions The `active` response includes `source.funding_instructions`: ```json Response theme={null} { "id": "35kVg1llbsOBYvx9XKr9eOtsD9z", "name": "Customer XYZ Onramp", "status": "active", "source": { "value_type": "USD", "transfer_type": null, "funding_instructions": { "beneficiary_name": "Company ABC", "beneficiary_address": "25 Main Ave, Suite 100, Example City, IA 50000", "bank_name": "Example Bank", "bank_address": "123 Example St, Example City, NY 10001", "routing_number": "000111222", "account_number": "000123456789", "memo": null } }, "destination": { "address_id": "35LWXNTO2jem13nXCLyciFdi162", "value_type": "SBC", "transfer_type": "solana" }, "created_at": "2026-10-15T15:56:03.531196Z", "updated_at": "2026-10-15T15:56:05.017508Z" } ``` Always share the values returned for your Automation. Do not hard-code bank coordinates from documentation or from another Automation. Treat `routing_number` and `account_number` as strings so leading zeros are preserved. ## Step 4: The payer sends a FedNow credit Give the payer the `routing_number`, `account_number`, and `beneficiary_name`. The payer initiates an instant payment from their bank. Their bank must support sending FedNow payments. If it does not, the payer can use another rail the virtual account accepts, such as wire or ACH. ## Step 5: Track the deposit and the mint Brale creates the Transfer automatically. Track it with webhooks, polling, or both. ### Webhooks | Event | What it tells you | | - | - | | `payment.completed` | Brale received the fiat payment. `data.id` is a payment ID, not a Transfer ID. This does not confirm the mint. | | `transfer.created` | Brale created the Transfer. `data.id` is the Transfer ID. | | `transfer.completed` | The Transfer reached `complete`. The stablecoins were minted to the destination. | | `transfer.failed` / `transfer.canceled` | The Transfer did not complete. Inspect `failure` when present. | Deliveries are at-least-once and can arrive in any order. Deduplicate on the envelope `id` (or the `idempotency-key` delivery header), and use `data.account_id` to attribute events to a managed account. Retrieve the Transfer for its current state instead of relying on event order. See [Webhook events](/webhooks/webhook-events). ### Find the Transfer Payment IDs and Transfer IDs are different. To find the Transfer for a deposit, list Transfers for the Automation, then keep the ones where `source.transfer_type` is `fednow_credit`. The `transfer_type` query parameter filters by blockchain only, so do not pass `fednow_credit` to it. ```bash theme={null} curl --request GET \ --url "https://api.brale.xyz/accounts/${ACCOUNT_ID}/transfers?automation_id=35kVg1llbsOBYvx9XKr9eOtsD9z" \ --header "Authorization: Bearer ${AUTH_TOKEN}" ``` Match a `payment.completed` event to a Transfer using the account (`data.account_id`), the amount, and the time received (`source.payment_details.received_at` on the Transfer). ```json Response (inbound FedNow Transfer) theme={null} { "transfers": [ { "id": "36JqT2nF4kW8xYbR1sLmPz9cVdA", "status": "complete", "automation_id": "35kVg1llbsOBYvx9XKr9eOtsD9z", "amount": { "value": "1.00", "currency": "USD" }, "source": { "value_type": "USD", "transfer_type": "fednow_credit", "payment_details": { "received_at": "2026-10-15T16:02:11.514000Z" } }, "destination": { "address_id": "35LWXNTO2jem13nXCLyciFdi162", "value_type": "SBC", "transfer_type": "solana", "transaction_id": "5Fq9b2Zt7nYx3kq8E4mWc6Vh1sLp9aRd2GjU7oTe3NfB" }, "failure": null, "note": null, "created_at": "2026-10-15T16:02:12.104000Z", "updated_at": "2026-10-15T16:02:40.882000Z" } ] } ``` `payment_details` fields are optional and vary by rail. Wire fields such as `imad` and ACH fields such as `trace_number` do not apply to FedNow. When `status` is `complete`, `destination.transaction_id` is the onchain mint transaction. ## Test on testnet Testnet Automations return placeholder bank coordinates that cannot receive real payments. Use [Simulate an Automation deposit](/api-reference/brale/simulate-automation-deposit) to run the FedNow onramp flow without moving real money. Requirements: * Testnet API credentials with the `automations:write` and `network:testnet` scopes. See [Environments](/overview/sandbox-and-testnet). * An `active` Automation that belongs to the account in the path. * A testnet destination, such as `solana_devnet` or `base_sepolia`. ```bash theme={null} curl --request POST \ --url "https://api.brale.xyz/accounts/${ACCOUNT_ID}/automations/${AUTOMATION_ID}/simulations/deposits" \ --header "Authorization: Bearer ${AUTH_TOKEN}" \ --header "Content-Type: application/json" \ --header "Idempotency-Key: 6f1c2a9e-3b7d-4e0a-9c55-2d8e7f4b1a63" \ --data '{ "amount": { "value": "1.00", "currency": "USD" }, "transfer_type": "fednow" }' ``` * The simulator input is `fednow`. The resulting Transfer has `source.transfer_type: "fednow_credit"`. Do not send `fednow_credit` to the simulator. * Brale returns `202 Accepted` with the Transfer, including `automation_id`. `202` means the simulated deposit was accepted, not that the mint is complete. * Retrying with the same `Idempotency-Key` and body returns the original response without creating another deposit. Use a new key for each new simulated deposit. * Brale emits the normal `payment.completed` and `transfer.*` events. * Fetch the Transfer with `GET /accounts/{account_id}/transfers/{transfer_id}`. When `status` is `complete`, look up `destination.transaction_id` on the testnet explorer to verify the mint. Simulation creates simulated fiat funding only. It does not test the payer's bank or the FedNow network. ## Errors | Status | `type` | Cause | | - | - | - | | `400` | Schema validation | Simulator `transfer_type` is not `ach`, `wire`, or `fednow`. | | `403` | | Credentials lack `network:testnet` or another required scope. | | `422` | `automation_not_active` | The Automation is not `active`. | | `422` | `mainnet_destination` | Simulation is only available for testnet Automations. | ## Related * [FedNow overview](/guides/fednow) * [Send FedNow payouts](/guides/fednow-outbound) * [Fiat to stablecoin onramp](/guides/fiat-to-stablecoin-onramp) * [Automations](/key-concepts/automations) # Send FedNow payouts Source: https://docs.brale.xyz/guides/fednow-outbound Pay out USD over FedNow from stablecoins held in a Brale internal Address by creating a fednow_credit Transfer. Outbound FedNow uses a [Transfer](/key-concepts/transfers). Brale redeems stablecoins from a funded Brale internal Address and sends USD to a recipient bank Address over FedNow. You create one Transfer for each payout. > [!NOTE] > > FedNow payouts are available on Brale accounts where FedNow has been enabled. Contact [support@brale.xyz](mailto:support@brale.xyz) to confirm enablement. ## Prerequisites * A Brale [Account](/key-concepts/accounts) with `status: complete`. * API credentials with the `addresses:write`, `addresses:read`, `transfers:write`, and `transfers:read` scopes. * A Brale internal (custodial) Address that holds the stablecoin you will redeem. * The recipient's bank details: owner name, account number, routing number, and account type. The recipient's bank must participate in FedNow. > [!WARNING] > > Brale can only pay out stablecoins already held in a Brale internal Address. The API cannot debit an external or self-custody wallet. Send those stablecoins onchain to your Brale internal Address first, then create the payout. ## Step 1: Fund a Brale internal Address Fund the internal Address you will use as the payout source. For example, mint to it with an [onramp](/guides/fiat-to-stablecoin-onramp) or send stablecoins to its onchain address. Check its balance before you create a payout. See [Get a balance](/guides/how-to/get-a-balance). Note the Address's `id`, the stablecoin `value_type` it holds (for example, `USDB`), and the network `transfer_type` it holds it on (for example, `spark`). You will use all three in the Transfer. ## Step 2: Register or upgrade the recipient bank Address FedNow recipients use the `fednow_credit` transfer type on an external bank Address. Register recipients with Direct bank entry or Plaid. `fednow_credit` is available only on accounts it has been enabled for. | Path | `fednow_credit` support | | - | - | | Direct bank entry (`POST /accounts/{account_id}/addresses/external`) | Supported | | Add to an existing Direct bank entry Address (`PATCH /accounts/{account_id}/addresses/{address_id}`) | Supported | | Plaid-linked bank account (`POST /accounts/{account_id}/plaid/register-account` with `fednow_credit` in `transfer_types`) | Supported | ### Option A: Create a new FedNow recipient `bank_address` and `beneficiary_address` are not required for a FedNow-only recipient. They are required only when `transfer_types` includes `wire`. ```bash theme={null} curl --request POST \ --url "https://api.brale.xyz/accounts/${ACCOUNT_ID}/addresses/external" \ --header "Authorization: Bearer ${AUTH_TOKEN}" \ --header "Content-Type: application/json" \ --header "Idempotency-Key: 0b8f3c1e-5a2d-4f6b-8e9a-7c4d2b1f0e35" \ --data '{ "owner": "Jane Doe", "name": "Example Bank", "account_number": "0012345678", "routing_number": "063108680", "account_type": "checking", "transfer_types": ["fednow_credit"] }' ``` Send `account_number` and `routing_number` as strings so leading zeros are preserved. You can request other rails in the same call, for example `["ach_credit", "fednow_credit"]`. If you include `wire`, also send `bank_address` and `beneficiary_address`. ```json Response (201) theme={null} { "id": "2MhCCIHulVdXrHiEuQDJvnKbSkl", "name": "Example Bank", "owner": "Jane Doe", "status": "active", "transfer_types": ["fednow_credit"], "account_number": "****5678", "account_type": "checking", "bank_address": null, "beneficiary_address": null, "needs_update": false, "created": "2026-10-15T16:05:25.965990Z", "last_updated": "2026-10-15T16:05:26.801044Z", "routingNumber": "063108680" } ``` ### Option B: Add FedNow to an existing recipient To add FedNow to an existing bank Address, such as an ACH recipient, send `additional_transfer_types`: ```bash theme={null} curl --request PATCH \ --url "https://api.brale.xyz/accounts/${ACCOUNT_ID}/addresses/2MhCCIHulVdXrHiEuQDJvnKbSkl" \ --header "Authorization: Bearer ${AUTH_TOKEN}" \ --header "Content-Type: application/json" \ --data '{ "additional_transfer_types": ["fednow_credit"] }' ``` * Brale merges `fednow_credit` into the Address's existing `transfer_types`. An Address with `["ach_credit"]` becomes `["ach_credit", "fednow_credit"]`. * The Address `id` does not change. Keep using the same `address_id` for all rails. * Sending a transfer type that is already enabled has no additional effect. * `PATCH` requests do not take an `Idempotency-Key` header. ### Registration errors | Status | `type` | What to do | | - | - | - | | `422` | `fednow_routing_number_not_supported` | The routing number does not participate in FedNow. Do not retry the same request. Use another rail for this recipient. | | `422` | `fednow_provider_registration_failed` | Registration with Brale's banking provider failed. This can be temporary. Retry the same request after a backoff. For `POST`, reuse the same `Idempotency-Key` and body. | ```json Response (422) theme={null} { "type": "fednow_provider_registration_failed", "detail": "The recipient could not be registered for FedNow. Try again later.", "status": 422 } ``` ## Step 3: Confirm the recipient supports FedNow Retrieve the Address and confirm that `status` is `active` and `transfer_types` includes `fednow_credit`: ```bash theme={null} curl --request GET \ --url "https://api.brale.xyz/accounts/${ACCOUNT_ID}/addresses/2MhCCIHulVdXrHiEuQDJvnKbSkl" \ --header "Authorization: Bearer ${AUTH_TOKEN}" ``` Only create a FedNow payout after both conditions are true. If `fednow_credit` is missing, do not send the payout on another rail automatically. Choose the rail explicitly. ## Step 4: Create the payout Transfer ```http theme={null} POST /accounts/{account_id}/transfers Authorization: Bearer Idempotency-Key: ``` ```json Request theme={null} { "amount": { "value": "1.00", "currency": "USD" }, "source": { "value_type": "USDB", "transfer_type": "spark", "address_id": "2VcUIonJeVQzFoBuC7LdFT0dRe4" }, "destination": { "value_type": "USD", "transfer_type": "fednow_credit", "address_id": "2MhCCIHulVdXrHiEuQDJvnKbSkl" } } ``` * `source.address_id` is your funded Brale internal Address. * `source.value_type` and `source.transfer_type` must match the token and network that Address holds. If the Address holds `SBC` on `solana`, send `"value_type": "SBC"` and `"transfer_type": "solana"`. * `destination.address_id` is the recipient bank Address with `fednow_credit` enabled. * Generate one `Idempotency-Key` per logical payout and store it with your payout record before you send the request. * `amount.value` must not exceed the FedNow per-transaction limit of \$10,000. See [Transfer limits](/key-concepts/transfers#transfer-limits). ```json Response (201) theme={null} { "id": "36JqTB7hN3pQe5ZuWv0XkLr2sGc", "status": "pending", "amount": { "value": "1.00", "currency": "USD" }, "source": { "address_id": "2VcUIonJeVQzFoBuC7LdFT0dRe4", "value_type": "USDB", "transfer_type": "spark" }, "destination": { "address_id": "2MhCCIHulVdXrHiEuQDJvnKbSkl", "value_type": "USD", "transfer_type": "fednow_credit" }, "automation_id": null, "failure": null, "note": null, "created_at": "2026-10-15T16:10:03.531196Z", "updated_at": "2026-10-15T16:10:03.531196Z" } ``` `201 Created` means Brale created the Transfer. It does not mean the recipient has been paid. ### Branded payouts To show your business or your customer's business as the sender instead of Brale, add a top-level `brand` object with `account_id`. See [Branded FedNow payouts](/guides/2nd-and-3rd-party-transfers#branded-fednow-payouts). ## Step 5: Track the payout Track the Transfer until it reaches `complete`, `canceled`, or `failed`: * Subscribe to `transfer.*` webhooks. `transfer.completed` means the Transfer reached `complete`. See [Webhook events](/webhooks/webhook-events). * Or poll `GET /accounts/{account_id}/transfers/36JqTB7hN3pQe5ZuWv0XkLr2sGc` with exponential backoff. * To list payouts to a recipient, call `GET /accounts/{account_id}/transfers?address_id=` and check `destination.transfer_type`. The `transfer_type` query parameter filters by blockchain only and does not accept `fednow_credit`. Webhook deliveries are at-least-once and unordered. Deduplicate on the envelope `id`, and retrieve the Transfer when you need its current state. ### Handle a pending payout safely 1. Keep tracking the original Transfer by its `id`. A FedNow payout can stay `pending` or `processing` while Brale reviews and submits it. 2. If your create request timed out or returned `5xx` or `429`, retry with the **same** `Idempotency-Key` and the **same** body. Brale returns the original Transfer instead of creating a second one. 3. Do not create a replacement payout with a new key because the first one is still `pending`. Both could be paid. 4. If you need to stop a payout, contact [support@brale.xyz](mailto:support@brale.xyz) immediately. Brale can cancel a payout only before it is submitted to FedNow. A `processing` payout cannot be canceled, and `pending` does not guarantee that cancellation is still possible. 5. Create a new payout only after the original reaches `canceled` or `failed`, and use a new `Idempotency-Key`. ### Cancellation compared with returns A `canceled` Transfer was stopped before Brale sent the payment. A return after settlement is a separate event. Do not assume an automatic refund. The Transfer `status` enum also includes `compliance review`, `refunding`, and `refunded`. Treat them as not complete and keep tracking the Transfer. Check `failure` on `failed` Transfers when it is present. ## Migrate from `rtp_credit` to `fednow_credit` RTP payouts (`rtp_credit`) ended on October 30, 2026, and FedNow replaces them. Brale rejects any request that still sends `rtp_credit`: | Endpoint | Status | `type` | `detail` | | - | - | - | - | | `POST /accounts/{account_id}/addresses/external` | `400` | `invalid_transfer_types` | `Invalid transfer types; Address transfer types must be compatible chains` | | `POST /accounts/{account_id}/transfers` | `400` | `invalid_transfer_type` | `Invalid transfer type` | The address error mentions chains, but the cause is `rtp_credit` in `transfer_types`. Use this checklist to move your integration to FedNow: 1. **New Direct bank entry recipients.** Replace `rtp_credit` with `fednow_credit` in `transfer_types` on `POST /accounts/{account_id}/addresses/external`. For example, change `["ach_credit", "same_day_ach_credit", "rtp_credit"]` to `["ach_credit", "same_day_ach_credit", "fednow_credit"]`. See [Option A](#option-a-create-a-new-fednow-recipient). 2. **Existing Direct bank entry recipients.** Send `PATCH /accounts/{account_id}/addresses/{address_id}` with `{ "additional_transfer_types": ["fednow_credit"] }`. The `address_id` stays the same. See [Option B](#option-b-add-fednow-to-an-existing-recipient). 3. **Plaid-linked recipients.** Have the user complete Plaid Link again. Then call `POST /accounts/{account_id}/plaid/register-account` with `fednow_credit` in `transfer_types`, for example `["ach_credit", "fednow_credit"]`. See [Register via Plaid](/api-reference/brale/register-financial-institution-account-via-plaid-and-return-address-id). The `PATCH` path above applies to Direct bank entry addresses. 4. **Confirm each recipient.** [Retrieve the address](#step-3-confirm-the-recipient-supports-fednow) and check that `transfer_types` includes `fednow_credit`. If registration returns `422 fednow_routing_number_not_supported`, the recipient's bank does not participate in FedNow. Pay that recipient with `same_day_ach_credit` or `wire` instead. 5. **Update payout requests.** Set `destination.transfer_type` to `fednow_credit` instead of `rtp_credit` on `POST /accounts/{account_id}/transfers`. 6. **Check payout amounts.** FedNow payouts are limited to \$10,000 per transaction. Route larger payouts over `wire`, or over ACH up to the ACH limit. See [Transfer limits](/key-concepts/transfers#transfer-limits). 7. **Resubmit rejected payouts.** A Transfer that failed with `400 invalid_transfer_type` was not created. After you update the request, send it with a new `Idempotency-Key`. ## Errors and retries | Status | Cause | Retry? | | - | - | - | | `400` `invalid_transfer_type` | `destination.transfer_type` is `rtp_credit`, which is no longer available | No. Switch to `fednow_credit`. See [Migrate from `rtp_credit`](#migrate-from-rtp_credit-to-fednow_credit). | | `401` | Expired or invalid token | Refresh the token and retry with the same key. | | `422` `insufficient_balance` | The source Address does not hold enough of `source.value_type` after Brale subtracts its `pending` and `processing` transfers | Fund the Address or wait for in-flight transfers to finish, then retry with the same key and body. | | `422` on a bank Address that received a return | Brale disabled the destination bank Address after a return | Contact support to re-enable the Address. See [Troubleshooting](/documentation/troubleshooting#422-on-transfers-to-a-bank-address-that-received-a-return). | | `422` idempotency key reused with a different body | The request body changed under the same key | Fix the request and use a new key. | | `429` or `5xx`, or a timeout | Temporary failure | Retry with the same key and body using exponential backoff. | ## Test outbound payouts Testnet does not send real FedNow payments. When you submit a redemption on testnet, Brale burns the stablecoin onchain and skips the fiat payout. See [Burn tokens on testnets](/overview/sandbox-and-testnet#3-burn-tokens-on-testnets). On testnet you can: * Fund internal Addresses on testnet networks with testnet mints. * Exercise redemption Transfers, idempotency handling, and status tracking without moving real USD. * Validate your FedNow request construction against the examples on this page. If a testnet request with `destination.transfer_type: "fednow_credit"` is rejected on your account, contact support to confirm testnet FedNow enablement. Confirm end-to-end FedNow payouts on mainnet with a small amount, such as `1.00` USD, to a recipient you control. ## Related * [FedNow overview](/guides/fednow) * [Receive FedNow deposits](/guides/fednow-inbound) * [Stablecoin to fiat offramp](/guides/stablecoin-to-fiat-offramp) * [Update an Address](/api-reference/brale/update-address) * [Idempotency](/key-concepts/idempotency) # wire or ach_debit to custodial wallet Source: https://docs.brale.xyz/guides/fiat-to-stablecoin-onramp Fund stablecoins in custodial wallets via wire or ACH debit transfers, or set up automations for automatic minting. Brale makes it easy for you to fund stablecoins in custodial wallets via offchain transfer types like `wire`, `ach_debit`, and `fednow_credit`. There are three common ways of funding a custodial wallet at Brale (`type: internal`) using offchain transfers: * Submit a [Transfer](/key-concepts/transfers) request with a source `transfer_type` of `wire` * Submit a [Transfer](/key-concepts/transfers) request with a source `transfer_type` of `ach_debit` * Create an [Automation](/key-concepts/automations), which automatically mints stablecoins to a pre-configured destination wallet when funds are received via ACH, wire, or FedNow. > [!TIP] > > To receive FedNow deposits, use an Automation. You do not create a Transfer for each FedNow deposit. See [Receive FedNow deposits](/guides/fednow-inbound) and the [FedNow overview](/guides/fednow). ## Submitting a Transfer request with a source transfer\_type of `wire` Here is an example of onramping to your own stablecoin (SBC) via wire transfer by calling the Transfers endpoint with the source `transfer_type` of `wire`. **POST** `https://api.brale.xyz/accounts/account_id/transfers` ```json Request theme={null} { "amount": { "value": "100", "currency": "USD" }, "source": { "value_type": "USD", "transfer_type": "wire" }, "destination": { "address_id": "2VcUIonJeVQzFoBuC7LdFT0dRe4", "value_type": "SBC", "transfer_type": "solana" } } ``` ```json Response theme={null} { "id": "36JqTWc5Yt2mVr8LpQa0NkH3sDe", "status": "pending", "amount": { "value": "100", "currency": "USD" }, "source": { "transfer_type": "wire", "value_type": "USD" }, "destination": { "transfer_type": "solana", "value_type": "SBC", "address_id": "2VcUIonJeVQzFoBuC7LdFT0dRe4" }, "wire_instructions": { // ...Brale bank details } } ``` Initially, the status of the transfer will be `pending`. Once Brale receives the funds at the bank account provided in `wire_instructions` the stablecoins will immediately be minted to the destination wallet. ## Submitting a Transfer request with a source transfer\_type of `ach_debit` You can initiate ACH debits from Plaid-linked addresses. See [Addresses](/key-concepts/addresses) for the full flow of linking Plaid accounts as addresses you can pull from. This guide is specifically designed for first party funding of stablecoin mints, into a Brale custodial wallet. **POST** `https://api.brale.xyz/accounts/account_id/transfers` ```json Request theme={null} { "amount": { "value": "100", "currency": "USD" }, "source": { "address_id": "2MhCCIHulVdXrHiEuQDJvnKbSkl", "value_type": "USD", "transfer_type": "ach_debit" }, "destination": { "address_id": "2VcUIonJeVQzFoBuC7LdFT0dRe4", "value_type": "SBC", "transfer_type": "canton" } } ``` ```json Response theme={null} { "id": "36JqTXd6Zu3nWs9MqRb1OlI4tEf", "status": "pending", "amount": { "value": "100", "currency": "USD" }, "source": { "address_id": "2MhCCIHulVdXrHiEuQDJvnKbSkl", "value_type": "USD", "transfer_type": "ach_debit" }, "destination": { "address_id": "2VcUIonJeVQzFoBuC7LdFT0dRe4", "value_type": "SBC", "transfer_type": "canton" } } ``` ## Fetching Transfers Query a transfer that has been created. **GET** `https://api.brale.xyz/accounts/account_id/transfers/:id` ```json Response theme={null} { "id": "3C0QcbwVywOGyU2HBSenljm5dhU", "status": "complete", "failure": null, "amount": { "value": "102.0", "currency": "USD" }, "created_at": "2026-04-07T00:01:27.756775Z", "updated_at": "2026-04-07T00:01:44.824834Z", "source": { "transfer_type": "wire", "financial_institution_id": "3AjRnbvj9Mq6crkviJv08d0KLB2", "value_type": "USD", "payment_details": { "received_at": "2026-04-07T00:01:24.514000Z", "sender_name": "Originator Name", "sender_bank_name": "JPMorgan Chase Bank", "sender_bank_routing_number": "000000123", "payment_reference": "Simulated Wire", "imad": "20260406XOIZJDPP953495" } }, "destination": { "transaction_id": "0x41c66f1d059dad7a55a854e157a1b5b938780c77ba5296e434a02dfb1727fe5e", "transfer_type": "base", "address_id": "3ARaM0I93ObWOIFDIztsTx4TAsp", "value_type": "ARB" }, "note": null, "automation_id": "3AjRnDClEzwuCKlRioG3OXMS4pH" } ``` > [!NOTE] > > `source.payment_details` appears when Brale has underlying payment metadata to expose for the source leg of a transfer. Wire transfers typically include the full set of fields (`sender_name`, `sender_bank_name`, `imad`, etc.). ACH transfers may include only a subset — fields may be `null` or omitted depending on available rail metadata, and may include `trace_number` as the ACH trace identifier. See [Transfers — `source.payment_details`](/key-concepts/transfers#sourcepayment_details) for the full field reference. ### Wire payment references If a sender enters a reference in their bank's "Message to receiving bank" field, Brale can expose it in `source.payment_details.payment_reference`. Some banks call this field "Instruction for Creditor Agent." Brale uses it only when the instruction is received and no higher-priority reference is available. An existing memo, Originator-to-Beneficiary Information (OBI), or remittance reference keeps its current precedence. `payment_reference` is an existing response-only field. It is not a request parameter, and it may be `null` or absent. Availability depends on the metadata the sending bank supplies and Brale receives, so not every inbound wire includes a reference. Illustrative Transfer response excerpt: ```json Response excerpt theme={null} { "source": { "transfer_type": "wire", "payment_details": { "payment_reference": "CUSTOMER-REF-123" } } } ``` ## Fiat to Stablecoin Automation (Automatic Onramp) Automations provide a unique account number and routing number that accepts wire transfers, ACH deposits, and FedNow credits (on accounts with FedNow enabled), and automatically reconciles funds received and mints them to a bound wallet address. See [Receive FedNow deposits](/guides/fednow-inbound). Here is an example of onramping to your own stablecoin (SBC) via wire transfer by creating a fiat-to-stablecoin automation. > [!NOTE] > > Automations mint Brale-issued stablecoins, such as `SBC`. USDC is not a supported Automation destination. To deliver USDC, mint a Brale-issued stablecoin with the Automation, then create a separate [swap Transfer](/guides/stablecoin-to-stablecoin-swap) to USDC. See [Onramp to USDC](/key-concepts/automations#onramp-to-usdc). **POST** `https://api.brale.xyz/accounts/account_id/automations` ```json Request theme={null} { "name": "XYZ Onramp", "source": { "value_type": "USD" }, "destination": { "address_id": "35LWXNTO2jem13nXCLyciFdi162", "value_type": "SBC", "transfer_type": "solana" } } ``` Omit `source.transfer_type`. A USD Automation accepts the inbound rails enabled for its virtual account, and responses may return `source.transfer_type: null`. Automations are created in a `pending` state and transition to `active` when the virtual account is ready. When an automation becomes active, the source.funding\_instructions object is populated with the virtual account’s bank details (routing number, account number, beneficiary name, etc.). These are the coordinates you share with your customer to fund the automation. **GET** `https://api.brale.xyz/accounts/{account_id}/automations/{automation_id}` ```json Response theme={null} { "id": "35kVg1llbsOBYvx9XKr9eOtsD9z", "name": "Customer XYZ Automation", "status": "active", "source": { "transfer_type": null, "value_type": "USD", "funding_instructions": { "bank_address": "123 Example St, Example City, NY 10001", "beneficiary_address": "25 Main Ave, Suite 100, Example City, IA 50000", "beneficiary_name": "Company ABC", "routing_number": "000111222", "account_number": "000123456789", "bank_name": "Example Bank", "memo": null } }, "destination": { "transfer_type": "solana", "address_id": "35LWXNTO2jem13nXCLyciFdi162", "value_type": "SBC" }, "updated_at": "2025-11-20T15:56:05.017508Z", "created_at": "2025-11-20T15:56:03.531196Z" } ``` > When an automation is no longer needed, archive it by sending `PATCH /accounts/{account_id}/automations/{automation_id}` with `{ "status": "archived" }`. This closes the virtual account and stops future deposits from being processed. ## Test an Automation on testnet Testnet Automations return placeholder banking coordinates that cannot receive real deposits. Use [Simulate an Automation deposit](/api-reference/brale/simulate-automation-deposit) to test the full onramp flow without moving real fiat. Prerequisites: * Testnet API credentials with the `automations:write` and `network:testnet` scopes. See [Environments](/overview/sandbox-and-testnet). * A custodial wallet address on a testnet chain, such as `base_sepolia` or `solana_devnet`. * A [webhook subscription](/webhooks/quickstart) that includes `payment.completed`. ### 1. Create an Automation **POST** `https://api.brale.xyz/accounts/{account_id}/automations` ```json Request theme={null} { "name": "Testnet Onramp", "source": { "value_type": "USD" }, "destination": { "address_id": "3ARaM0I93ObWOIFDIztsTx4TAsp", "value_type": "SBC", "transfer_type": "base_sepolia" } } ``` ### 2. Wait until the Automation is active Poll `GET /accounts/{account_id}/automations/{automation_id}` until `status` is `active`. Brale returns `422 automation_not_active` if you simulate a deposit before then. ### 3. Simulate a deposit **POST** `https://api.brale.xyz/accounts/{account_id}/automations/{automation_id}/simulations/deposits` ```bash theme={null} curl --request POST \ --url "https://api.brale.xyz/accounts/${ACCOUNT_ID}/automations/${AUTOMATION_ID}/simulations/deposits" \ --header "Authorization: Bearer ${AUTH_TOKEN}" \ --header "Content-Type: application/json" \ --header "Idempotency-Key: $(uuidgen)" \ --data '{ "amount": { "value": "10.00", "currency": "USD" }, "transfer_type": "wire" }' ``` `transfer_type` accepts `ach`, `wire`, or `fednow`. A `fednow` simulation produces a Transfer with `source.transfer_type: "fednow_credit"`. Brale returns `202 Accepted` with the resulting Transfer. Save its `id`. Use a new `Idempotency-Key` for each new simulated deposit. Retrying with the same key returns the original response without creating another deposit or mint. See [Idempotency](/key-concepts/idempotency). ### 4. Receive webhooks Brale emits the normal `payment.completed` [webhook event](/webhooks/webhook-events) for the simulated inbound payment. There is no simulation-specific webhook type, so your production handler works unchanged. ### 5. Fetch the Transfer **GET** `https://api.brale.xyz/accounts/{account_id}/transfers/{transfer_id}` ```json Response theme={null} { "id": "3F1kP8vQ2mZrT6yN0bXcW4hJd7s", "status": "complete", "failure": null, "amount": { "value": "10.00", "currency": "USD" }, "source": { "value_type": "USD", "transfer_type": "wire" }, "destination": { "address_id": "3ARaM0I93ObWOIFDIztsTx4TAsp", "value_type": "SBC", "transfer_type": "base_sepolia", "transaction_id": "0x41c66f1d059dad7a55a854e157a1b5b938780c77ba5296e434a02dfb1727fe5e" }, "note": null, "automation_id": "3AjRnDClEzwuCKlRioG3OXMS4pH", "created_at": "2026-09-29T17:00:00.000000Z", "updated_at": "2026-09-29T17:00:05.000000Z" } ``` ### 6. Verify the testnet mint Confirm that `automation_id` matches your Automation and `status` is `complete`. Look up `destination.transaction_id` in a block explorer for the testnet chain to verify the mint. # Add an External Destination Source: https://docs.brale.xyz/guides/how-to/add-external-destination Register an external address (onchain or offchain) to use as a transfer source or destination. ## Overview Register an external address so you can use it as a transfer source or destination. External addresses can be onchain wallets, offchain bank accounts, or Canton parties. When you create an external address, Brale returns an `address_id` (KSUID) that binds the destination (wallet, party, or bank account) to its supported `transfer_types`. Use this `address_id` in all subsequent transfers. If the same user has wallets on multiple non-EVM chains (e.g., Solana and Stellar), create separate external addresses and you'll receive distinct `address_id` values for each. ## Endpoint `POST /accounts/{account_id}/addresses/external` ## Onchain wallets Each blockchain has its own address format. EVM-compatible chains share addresses, but non-EVM chains require separate entries. **EVM (one address, multiple chains)** ```json theme={null} { "name": "User EVM Wallet", "address": "0xb518d4d6221d9a41d23d71cbce8e106e7aab8f9b", "transfer_types": ["ethereum", "base", "polygon", "arbitrum"] } ``` **Solana** ```json theme={null} { "name": "User Solana Wallet", "address": "7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU", "transfer_types": ["solana"] } ``` **Stellar** ```json theme={null} { "name": "User Stellar Wallet", "address": "GCZJM35NKGVK47BB4SPBDV25477PZYIYPVVG453LPYFNXLS3FGHDXOCM", "transfer_types": ["stellar"] } ``` **XRP Ledger** ```json theme={null} { "name": "User XRP Wallet", "address": "rN7n3473SaZBCG4dFL83w7a1RXtXtbk2D9", "transfer_types": ["xrp_ledger"] } ``` **Canton** ```json theme={null} { "name": "External Canton Party", "address": "canton-party-id", "transfer_types": ["canton"] } ``` > **Note:** Canton transfers to external parties require acceptance within 72 hours or they expire. Transfers to parties also custodied by Brale are accepted automatically. ## Offchain bank account (Direct bank entry) Direct bank entry supports `wire`, `ach_credit`, `same_day_ach_credit`, and `fednow_credit` (on accounts with FedNow enabled). RTP payouts (`rtp_credit`) ended on October 30, 2026. `bank_address` and `beneficiary_address` are required only when `transfer_types` includes `wire`. Omit those fields for ACH-only addresses unless you have accurate values—do not enter placeholder or generic bank addresses. > [!NOTE] > > Need `ach_debit`? Use the [Plaid-linked bank account flow](/key-concepts/addresses#create-via-plaid-linked-bank-account). Direct bank entry supports `wire`, `ach_credit`, `same_day_ach_credit`, and `fednow_credit`, but **not** `ach_debit`. **ACH Direct bank entry** ```json theme={null} { "owner": "Jane Doe", "name": "Jane Checking Account", "account_number": "123456789", "routing_number": "071000013", "account_type": "checking", "transfer_types": ["ach_credit", "same_day_ach_credit"] } ``` **Wire Direct bank entry** ```json theme={null} { "owner": "Jane Doe", "name": "Jane Checking Account", "account_number": "123456789", "routing_number": "071000013", "account_type": "checking", "transfer_types": ["wire"], "bank_address": { "street_line_1": "10 N Upper Wacker Dr", "city": "Chicago", "state": "IL", "zip": "60606" }, "beneficiary_address": { "street_line_1": "200 Main St", "city": "Naperville", "state": "IL", "zip": "60540" } } ``` ## Example request ```bash theme={null} curl --request POST \ --url "https://api.brale.xyz/accounts/${ACCOUNT_ID}/addresses/external" \ --header "Authorization: Bearer ${AUTH_TOKEN}" \ --header "Content-Type: application/json" \ --header "Idempotency-Key: $(uuidgen)" \ --data '{ "name": "User Solana Wallet", "address": "7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU", "transfer_types": ["solana"] }' ``` ## Example response ```json theme={null} { "id": "2VcUIIsgARwVbEGlIYbhg6fGG57" } ``` Use this `id` as the `address_id` in transfers. ## Notes * External addresses have `type: external` when fetched via `GET /addresses`. * Balance queries are supported for internal custodial addresses and Plaid-linked bank addresses. Other external addresses—including self-custody wallets and bank addresses created through Direct bank entry—do not expose balances through Brale. * Bank accounts can also be linked via [Plaid](/key-concepts/addresses#register-address-exchange-the-public-token) instead of manual entry. * You can add `transfer_types` to an existing address via [`PATCH /accounts/{account_id}/addresses/{address_id}`](/api-reference/brale/update-address). * If you need to stop using a previously linked external bank address without deleting the record, use the [PATCH address endpoint](/api-reference/brale/update-address) to archive it (`{ "status": "archived" }`). You can later restore it by unarchiving (`{ "status": "active" }`). * See [Transfer Types](/coverage/transfer-types) for all supported chains/rails. # Get A Balance Source: https://docs.brale.xyz/guides/how-to/get-a-balance Query the stablecoin balance of an internal (custodial) address or the USD balance of a Plaid-linked bank address. Use `GET /accounts/{account_id}/addresses/{address_id}/balance` for both address types. Balances require both `transfer_type` and `value_type`. ## Wallet balance **1. Prerequisites** * Get your `account_id`: [How to get your account\_id](/guides/how-to/get-your-account-id) * Get a custodial `address_id`: list addresses and choose one with `type=internal`: ```bash theme={null} curl --request GET \ --url "https://api.brale.xyz/accounts/${ACCOUNT_ID}/addresses" \ --header "Authorization: Bearer ${AUTH_TOKEN}" ``` **2. Call the balance endpoint** Use your `account_id` and an internal `address_id`. `GET /accounts/{account_id}/addresses/{address_id}/balance` | Parameter | Description | Example | | - | - | - | | `transfer_type` | Blockchain network | `solana`, `base`, `ethereum` | | `value_type` | Token symbol (case-sensitive) | `SBC`, `USDC`, `PYUSD` | ```bash theme={null} curl --request GET \ --url "https://api.brale.xyz/accounts/${ACCOUNT_ID}/addresses/${ADDRESS_ID}/balance?transfer_type=base&value_type=SBC" \ --header "Authorization: Bearer ${AUTH_TOKEN}" ``` **3. Review the response** ```json theme={null} { "address": { "id": "2VcUIonJeVQzFoBuC7LdFT0dRe4", "address": "0xcdEA458750b9A8D6C4Ba8B3D68CE98Ba2330352A" }, "balance": { "value": "45314.07", "currency": "USD" }, "value_type": "SBC", "transfer_type": "base" } ``` ## Plaid-linked bank balance **1. Prerequisites** * Get your `account_id`: [How to get your account\_id](/guides/how-to/get-your-account-id) * Get the `address_id` of a bank account registered through Plaid. See [Create addresses through Plaid](/key-concepts/addresses#create-via-plaid-linked-bank-account). **2. Call the balance endpoint** | Parameter | Value | | - | - | | `transfer_type` | `ach_debit` | | `value_type` | `USD` | ```bash theme={null} curl --request GET \ --url "https://api.brale.xyz/accounts/${ACCOUNT_ID}/addresses/${ADDRESS_ID}/balance?transfer_type=ach_debit&value_type=USD" \ --header "Authorization: Bearer ${AUTH_TOKEN}" ``` **3. Review the response** ```json theme={null} { "address": { "id": "34yknnMShvDbSW6tQg4HLlN41QO", "address": null, "account_number": "****1234" }, "balance": { "value": "1250.42", "currency": "USD" }, "value_type": "USD", "transfer_type": "ach_debit" } ``` * Brale uses Plaid's available balance when Plaid supplies it. Otherwise, Brale uses the current balance. * Successful reads may be cached for up to 30 seconds. * The balance is a point-in-time snapshot. It does not guarantee that an ACH debit will settle. * Brale never returns the full bank account number. `account_number` is masked. * Only Plaid-linked USD bank addresses support balance lookup. Bank addresses created through Direct bank entry do not. For error responses, see [Get an address balance](/api-reference/brale/get-address-balance#errors). > [!NOTE] > > Balance queries are supported for internal custodial addresses and Plaid-linked bank addresses. Other external addresses—including self-custody wallets and bank addresses created through Direct bank entry—do not expose balances through Brale. ## Notes * Always send both `transfer_type` and `value_type`; a custodial address can hold multiple tokens across chains. * See [Value Types](/coverage/value-types) and [Transfer Types](/coverage/transfer-types) for supported combinations. # Get your account_id Source: https://docs.brale.xyz/guides/how-to/get-your-account-id Fetch your account_id and managed account IDs using the Accounts API with a bearer token. ## An account\_id is used in API request URLs. Use the Accounts API to fetch your own account\_id and any managed accounts that you've created. You’ll need a bearer token from your client credentials first. **1. Authenticate and get a bearer token** Create client credentials in the Brale dashboard, then exchange them for a bearer token. ```bash theme={null} curl --request POST \ --url https://auth.brale.xyz/oauth2/token \ --header 'Authorization: Basic ${BASE_64_OF(client_id:client_secret)}' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data grant_type=client_credentials ``` Response includes `access_token` and `token_type` (Bearer). Use `Authorization: Bearer ${access_token}` for subsequent calls. **2. List your accounts** Call `GET /accounts` with your bearer token to fetch account\_ids: ```bash theme={null} curl --request GET \ --url https://api.brale.xyz/accounts \ --header "Authorization: Bearer ${ACCESS_TOKEN}" ``` Example response: ```json theme={null} { "accounts": [ "2Js1YFqlfxgNqC2KTPEjrWIwKU7", // Your primary account_id "2VcUIIsgARwVbEGlIYbhg6fGG57" // Managed client account_id (if applicable) ] } ``` **3. Select the right account\_id for downstream calls** * Use your primary account\_id for operations on your own balances and resources. * If you manage client accounts (managed accounts), use the client’s account\_id in path parameters for downstream endpoints (e.g., transfers, addresses). * Do not send account\_id in the request body or querystring—only in the path where required. > [!TIP] > > If you only see one account\_id returned, that’s your primary account. Managed client accounts will appear in the same list once created. # Get your custodial address_ids Source: https://docs.brale.xyz/guides/how-to/get-your-address-ids Use the Addresses API to retrieve your custodial address_id values, which are required for transfers and balance checks. Use the Addresses API to fetch your custodial `address_id` values. These are required for transfers and balance checks. **1. Prerequisite: get your account\_id and a bearer token** * Get `account_id`: [How to get your account\_id](/guides/how-to/get-your-account-id) * Get a bearer token using your client credentials: ```bash theme={null} curl --request POST \ --url https://auth.brale.xyz/oauth2/token \ --header 'Authorization: Basic ${BASE_64_OF(client_id:client_secret)}' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data grant_type=client_credentials ``` Use `Authorization: Bearer ${ACCESS_TOKEN}` for the next call. **2. List your addresses** Call `GET /accounts/{account_id}/addresses` to retrieve custodial and external addresses. Filter for `type=internal` to get custodial addresses managed by Brale. ```bash theme={null} curl --request GET \ --url "https://api.brale.xyz/accounts/${ACCOUNT_ID}/addresses" \ --header "Authorization: Bearer ${ACCESS_TOKEN}" ``` Example response (truncated): ```json theme={null} { "addresses": [ { "id": "2MhCCIHulVdXrHiEuQDJvnKbSkl", "name": "Custodial", "status": "active", "type": "internal", "address": "0xB2952EDba91FeAeaDBeCC4030203367A5B9b4701", "transfer_types": [ "avalanche", "ethereum", "base", "polygon", "solana" ] } // ... ] } ``` **3. Pick the right address\_id** * Use `id` from an entry with `type=internal` for onchain/offchain transfers and balance checks. * Choose an address that supports the `transfer_type` you need (e.g., `base`, `solana`, `ethereum`). * Keep this `address_id` for subsequent calls (e.g., transfers, balances). * To re-fetch the latest details for a known address, call [`GET /accounts/{account_id}/addresses/{address_id}`](/api-reference/brale/get-address). > [!TIP] > > For balances, pair the `address_id` with both `transfer_type` and `value_type` in `GET /accounts/{account_id}/addresses/{address_id}/balance`. > [!TIP] > > To find a specific registered onchain address, call `GET /accounts/{account_id}/addresses?address=0x...` with the exact onchain address. You can also filter by `type` and `transfer_type`. # Individual accounts Source: https://docs.brale.xyz/guides/individual-accounts Create a KYC-verified individual account, custodial or transactional. Individual accounts register a natural person as a Brale account, verified with KYC. They come in two shapes, selected by `account_type`: * **Custodial** — the account receives Brale-custodied wallets and can hold stablecoin balances at Brale. U.S.-only, with a narrower state list than business custodial accounts. * **Transactional** — the account is non-custodial: it receives no custodial wallets, cannot create custodial addresses, and is shaped for inbound value. Use it when your end user needs to receive stablecoins on-chain or be the destination of an on-ramp, but should not hold a Brale-custodied wallet. The request shape is identical for both; only `account_type` changes. For the dimension fields and how individual accounts relate to business accounts, see [Account types](/key-concepts/account-types). For the U.S. states where individual custodial accounts can be created, and the U.S. states and approved countries for individual transactional accounts, see [Account availability](/coverage/account-availability). Eligibility is based on the individual's principal residential address. ## What it does * Registers a natural person as a Brale account (`entity_type: individual`, with `account_type: custodial` or `account_type: transactional`). * Runs KYC identity verification on the individual. * Emits the same `account.verification.*` webhook events as business KYB. * Custodial: provisions Brale-custodied (`type=internal`) wallets the account can hold balances in. * Transactional: lets you register external on-chain destination addresses so the account can receive value. ## Who it's for Use cases include: * End users of a wallet or fintech app who hold stablecoin balances in Brale-custodied wallets (custodial). * Payout recipients who need to receive stablecoins on-chain but do not hold balances at Brale (transactional). * End users of a wallet or fintech app who receive on-ramps to their own self-custody wallet (transactional). * Any natural person your platform needs to identify and pay, without provisioning custody (transactional). ## Choosing custodial or transactional Set `account_type: "custodial"` to create an individual custodial account. Everything else in the request is the same as the transactional path below: the `individual` object and `tos_attestation` are required, and business-only fields are rejected. A custodial individual account receives Brale-custodied wallets on supported chains, like a business custodial account. Individual custodial accounts are U.S.-only and are available in 44 states and territories — a narrower list than business custodial. See [Account availability](/coverage/account-availability#custodial-availability-by-state) for the state table. A request from an unsupported jurisdiction returns `422 unsupported_jurisdiction`. ## What a transactional account cannot do > [!WARNING] > > A transactional account is inbound by design. It does not get a Brale-custodied wallet and cannot originate on-chain transfers. * **No Brale-custodied wallets, ever.** A transactional account has no automatic custodial wallet at creation and cannot hold internal (`type=internal`) addresses. This is enforced. * **External addresses are destination-only.** An external address on a transactional account can receive value but cannot be the source of a transfer. * **The account cannot originate an on-chain transfer.** An attempt returns `422` with type `compatible_address_not_found`. Checking the address balance first does not predict this, because the constraint is about the address role, not funds. * **Automations from a transactional account may only target external destinations.** A Brale-custodied destination is rejected. ## How it works The workflow below shows the transactional flow. For a custodial account, set `account_type: custodial` in step 1; on approval the account receives Brale-custodied wallets automatically, and steps 3–5 do not apply — work with its internal addresses instead, as described in [Custodial Accounts](/guides/custodial-accounts). 1. **Create the account.**\ Call [`POST /accounts`](/api-reference/brale/create-account) with `entity_type: individual`, `account_type: transactional`, an `individual` object, and a `tos_attestation`. Business-only fields (`business_name`, `ein`, `website`, `business_controller`, `beneficial_owners`, `regulatory_profile`) must not be sent. See [Accounts — Creating an individual account](/key-concepts/accounts#creating-an-individual-account) for the full payload and field reference. ```json Request theme={null} { "entity_type": "individual", "account_type": "transactional", "verification_mode": "standard", "individual": { "first_name": "Jane", "last_name": "Doe", "date_of_birth": "1990-01-01", "email": "jane@example.com", "phone_number": "2125550182", "country": "US", "address": { "street_line_1": "123 Main St", "street_line_2": "Apt 4", "city": "Des Moines", "state": "IA", "zip": "50309" }, "identity": { "number": "222-22-2222", "type": "SSN9" } }, "tos_attestation": { "version": "2025-04-01", "accepted_at": "2026-05-13T20:45:15Z", "ip": "203.0.113.42", "user_agent": "Mozilla/5.0 ..." } } ``` ```json 201 Response theme={null} { "id": "3Ar9BnQCKIrB3SYjKGBzCtFs6XL", "name": "Jane Doe", "status": "pending", "created": "2026-05-13T20:45:16Z", "updated": "2026-05-13T20:45:16Z" } ``` The created account's `name` is derived from the individual's first and last name. Non-US individuals in approved countries are supported; see [Account availability](/coverage/account-availability#international-transactional-availability) for the country list. `individual.address.state` is optional and free-form, and the postal code accepts any format; send the identity document type that matches the individual's country. See [Identity types](/key-concepts/accounts#identity-types) for the accepted values and [Creating a non-US individual account](/key-concepts/accounts#creating-a-non-us-individual-account) for an example. 2. **Wait for verification.**\ Brale runs identity verification asynchronously. On approval the account is enabled, `status` becomes `complete`, and `account.verification.completed` fires. This is typically fast — on the order of seconds. If more documents are needed, `account.verification.documents_required` fires with the required documents; stage and link them exactly as [documented for business accounts](/key-concepts/accounts#verification). Polling is also supported. 3. **Add an external destination address.**\ Register the on-chain wallet that will receive value with [`POST /accounts/{account_id}/addresses/external`](/api-reference/brale/create-address). External addresses on a transactional account are destination-only. ```json Request theme={null} { "name": "Recipient EVM Wallet", "address": "0xb518d4d6221d9a41d23d71cbce8e106e7aab8f9b", "transfer_types": ["ethereum", "base"] } ``` 4. **Receive value.**\ The account's external addresses can be used as the destination in transfers originating elsewhere (for example, an on-ramp automation owned by your managing account). Inbound events carry `data.account_id` so a subscription on the managing account can attribute them to the correct managed account. See [Webhook Events](/webhooks/webhook-events). 5. **Do not attempt to originate transfers from this account.**\ Any attempt to use an external address on a transactional account as a transfer source returns `422 compatible_address_not_found`. To pay the individual out to their bank account, see [Off-ramp to a bank account](#off-ramp-to-a-bank-account). ## Off-ramp to a bank account A transactional individual cannot off-ramp from their own account because it has no internal address. Route the payout through your managing account instead: 1. The individual sends stablecoins from their self-custody wallet to an internal address on your managing account. This can be an omnibus address or a dedicated address per user. 2. You register the individual's bank account as an external address, under either the managing account or the individual's account. 3. You submit a stablecoin-to-USD transfer from the managing account's internal address to that bank address. For ACH, pass your managing account as `brand.account_id` so the individual sees your business as the sender. See [Off-ramp for transactional accounts](/guides/stablecoin-to-fiat-offramp#off-ramp-for-transactional-accounts) for the full walkthrough and request examples. A per-user off-ramp automation is expected in Q1 2027. ## Managed by the API key owner An individual account created through the API is automatically managed by the account that owns the API key. The managing account's credentials authorize requests scoped to it. These accounts are managed entirely through the API — there is no end-user dashboard for them. See [Custodial Accounts](/guides/custodial-accounts) for the sibling business flow, and [Managed Accounts](/guides/managed-accounts) for an overview of the account models. ## Use an individual account as an Automation brand A verified individual account, custodial or transactional, can be used as `brand.account_id` on an onramp Automation, subject to applicable program eligibility. In this example, create the Automation under your managing account and pass the individual's account ID as `brand.account_id`. This selects the beneficiary identity without changing which account owns the Automation. When you pass an individual account, `source.funding_instructions.beneficiary_name` and `beneficiary_address` show the individual's legal name and address. ```json Request theme={null} { "name": "Jane Doe Onramp", "source": { "value_type": "USD" }, "destination": { "address_id": "2MhCCIHulVdXrHiEuQDJvnKbSkl", "value_type": "SBC", "transfer_type": "solana" }, "brand": { "account_id": "3Ar9BnQCKIrB3SYjKGBzCtFs6XL" } } ``` See [Branded Automations](/key-concepts/automations#branded-automations) for the full behavior and business-account example. ## Related API references * [`POST /accounts`](/api-reference/brale/create-account) — create an individual account. * [`GET /accounts/{account_id}`](/api-reference/brale/get-account) — check verification status. * [`POST /accounts/{account_id}/addresses/external`](/api-reference/brale/create-address) — register a destination address. * [`POST /documents`](/api-reference/brale/stage-verification-document) and [Link verification documents](/api-reference/brale/link-verification-documents) — supply KYC documents when requested. * [Webhook Events](/webhooks/webhook-events) — `account.verification.completed`, `account.verification.rejected`, `account.verification.documents_required`, and inbound payment events with `data.account_id`. # Para Wallet integration Source: https://docs.brale.xyz/guides/integrations/para-wallet Use Para to provision self-custody wallets and Brale to on/off-ramp and orchestrate stablecoin flows to those wallets. ## Overview This guide shows a common pairing: * [**Para**](https://www.getpara.com/) for embedded / self-custody wallet UX and key management * **Brale** for regulated stablecoin issuance + on/off-ramps + orchestration At a high level: 1. Para provisions a wallet and gives you an onchain address 2. You register that address with Brale as an `Address` (`type=external`) 3. Brale returns an `address_id` 4. Use that `address_id` as the destination (or source) in Brale Transfers > [!NOTE] > > Para’s Brale walkthrough includes example Brale requests for convenience. For the latest Brale auth, required headers (like `Idempotency-Key`), and request body shapes, refer to Brale API Docs. ## What is Para? Para is an embedded wallet platform that helps fintech and payments teams ship **self-custody wallets** with a polished wallet UX and **modern authentication** (like passkeys), without forcing users into seed phrases or external wallet apps. **Why teams choose Para (briefly):** * **Smooth onboarding:** familiar sign-in flows with embedded wallet UX. * **Self-custody security model:** 2-of-2 MPC + passkeys and a defense-in-depth security architecture. * **Flexible integration options:** SDK-first (React and more) plus a REST API for server-side wallet + signing workflows. * **User-friendly signing controls:** permission prompts for transaction/message approvals (so you don’t have to build the entire approval UI). ## Prerequisites * Para SDK integrated in your app (web/mobile/server) and you can access the user wallet address * Brale API credentials (`client_id`, `client_secret`) * You’ve chosen the chain(s) you want to support (examples below use EVM chains like `base`) *** ## Step 1 — Authenticate with Brale Exchange your Brale client credentials for a bearer token: ```bash theme={null} CLIENT_CREDENTIALS=$( printf "%s:%s" "${CLIENT_ID}" "${CLIENT_SECRET}" | base64 | tr -d '\n' ) curl --request POST \ --url https://auth.brale.xyz/oauth2/token \ --header "Authorization: Basic ${CLIENT_CREDENTIALS}" \ --header "Content-Type: application/x-www-form-urlencoded" \ --data grant_type=client_credentials ``` Store the returned `access_token` and refresh it before it expires (`expires_in`). ## Step 2 — Get your `account_id` ```bash theme={null} curl --request GET \ --url https://api.brale.xyz/accounts \ --header "Authorization: Bearer ${AUTH_TOKEN}" ``` If you operate managed accounts, select the correct `account_id` for the customer you’re funding. *** ## Step 3 — Get the user’s wallet address from Para (minimal) You only need one thing from Para to use Brale: the onchain address you want to fund. ### Option A: Current selected wallet (React) `useWallet` returns the wallet currently selected in the `ParaModal`. ```tsx theme={null} import { useWallet } from "@getpara/react-sdk"; export default function CurrentWallet() { const { data: wallet } = useWallet(); if (!wallet) return
No wallet connected
; return (

Address: {wallet.address}

Type: {wallet.scheme}

ID: {wallet.id}

); } ``` ### Option B: All wallets (embedded + external) (React) Use `useAccount` to access wallet information for both embedded and external types. ```tsx theme={null} import { useAccount } from "@getpara/react-sdk"; export default function AllWallets() { const { embedded, external } = useAccount(); const embeddedList = Object.values(embedded?.wallets ?? {}); const externalList = Object.values(external?.wallets ?? {}); return (

Embedded

{embeddedList.map((w) => (

{w.scheme}: {w.address}

))}

External

{externalList.map((w) => (

{w.scheme}: {w.address}

))}
); } ``` > [!NOTE] > > Not using React? Para supports other environments (REST API, server-side, React Native, etc.). Use Para’s docs as the source of truth for retrieving wallet data and for signing/broadcasting transactions. *** ## Step 4 — Register the Para wallet in Brale (create an external Address) Create an external address and capture the returned `address_id`. ```bash theme={null} curl --request POST \ --url "https://api.brale.xyz/accounts/${ACCOUNT_ID}/addresses/external" \ --header "Authorization: Bearer ${AUTH_TOKEN}" \ --header "Content-Type: application/json" \ --header "Idempotency-Key: $(uuidgen)" \ --data '{ "name": "User Para Wallet (EVM)", "address": "0xE57e438aE0b1557bFC1ad70BD7751635E473D888", "transfer_types": ["base", "ethereum"] }' ``` Response: ```json theme={null} { "id": "2VcUIIsgARwVbEGlIYbhg6fGG57" } ``` That `id` is the Brale `address_id` you’ll use in Transfers. > [!TIP] > > If the same address format is valid across multiple networks (e.g., EVM chains), include all relevant onchain `transfer_types`. Otherwise, create separate external Addresses per chain/wallet type. *** ## Step 5 — Fund the Para wallet via Brale Transfers ### Option A: Wire → stablecoin → Para wallet ```bash theme={null} PARA_ADDRESS_ID="2VcUIIsgARwVbEGlIYbhg6fGG57" curl --request POST \ --url "https://api.brale.xyz/accounts/${ACCOUNT_ID}/transfers" \ --header "Content-Type: application/json" \ --header "Authorization: Bearer ${AUTH_TOKEN}" \ --header "Idempotency-Key: $(uuidgen)" \ --data '{ "amount": { "value": "10", "currency": "USD" }, "source": { "value_type": "USD", "transfer_type": "wire" }, "destination": { "address_id": "'"${PARA_ADDRESS_ID}"'", "value_type": "SBC", "transfer_type": "base" } }' ``` > [!NOTE] > > Examples use `SBC` as a placeholder stablecoin. Replace it with the value type you intend to mint or pay out. ### Option B: ach\_debit → stablecoin → Para wallet `ach_debit` flows require additional setup (end-user funding addresses, Plaid flows, etc.). Once configured, the Transfer pattern is the same: the destination is your Para `address_id`. See: [ach\_debit to end user wallet](/guides/ach-on-ramp) *** ## Step 6 — Spending / sending from the Para wallet Once funds land in the Para wallet, your app uses Para to sign and broadcast onchain transactions to send stablecoins onward. Brale does not custody the keys for external wallets. *** ## Offramping (stablecoin → USD) with a self-custody wallet To offramp to USD: 1. Send stablecoins **from the Para wallet** to a Brale custodial deposit address (`type=internal`) for the customer’s Brale account. 2. Use Brale’s stablecoin-to-fiat workflow to send USD to an external bank Address. See: [Stablecoin to Fiat (Offramp)](/guides/stablecoin-to-fiat-offramp) *** ## Troubleshooting * `401`: refresh the Brale bearer token and retry POST requests with the **same** `Idempotency-Key` * `404 compatible_address_not_found`: confirm: * you used the correct `account_id` * the destination `address_id` supports the `transfer_type` you’re using * Balance visibility: * Brale can return balances for custodial addresses (`type=internal`) * external wallets are outside Brale custody *** ## References **Brale** * [Quick Start - Your First Brale Stablecoin Transfer](/overview/quick-start) * [Authentication](/key-concepts/authentication) * [Create a new external address](/api-reference/brale/create-address) * [Add an External Destination](/guides/how-to/add-external-destination) * [Stablecoin to Fiat (Offramp)](/guides/stablecoin-to-fiat-offramp) **Para** * [Integrate Brale with Para](https://docs.getpara.com/v2/walkthroughs/brale) * [Get Wallet Data (useWallet / useAccount)](https://docs.getpara.com/v2/react/guides/web3-operations/get-wallet-address) * [Key Management System](https://docs.getpara.com/v2/concepts/key-management) * [Security Mechanisms](https://docs.getpara.com/v2/concepts/security) * [Permissions (Transaction Prompts)](https://docs.getpara.com/v2/react/guides/permissions) * [REST API Overview](https://docs.getpara.com/v2/rest/overview) # Turnkey Wallet integration Source: https://docs.brale.xyz/guides/integrations/turnkey Register Turnkey wallets as external Brale addresses to use them as sources or destinations in transfers, with Turnkey handling signing in secure enclaves. ## **Overview** Turnkey is a key management platform that pairs naturally with Brale's stablecoin rails. * Turnkey handles wallet creation and transaction signing inside hardware-backed secure enclaves. * Brale handles regulated stablecoin issuance, on/off-ramps, and transfer orchestration. Turnkey wallets are registered with Brale as external Addresses (type=external), giving you a Brale address\_id you can use as a source or destination in any Transfer. Stablecoins land directly in the user’s Turnkey wallet after onramps. Any outbound transactions, including offramp deposits back to Brale, are signed with Turnkey before being broadcast onchain. ## **Architecture / flow** At a high level: 1. Turnkey provisions a wallet and gives you an onchain address. 2. You register that address with Brale as an external Address (type=external). 3. Brale returns an address\_id. 4. You use that address\_id as a Transfer source or destination. 5. When funds are in the Turnkey wallet, your app uses Turnkey to sign and broadcast onchain transactions. ## **What is Turnkey?** [Turnkey](https://turnkey.com) is a secure key management infrastructure for provisioning and managing wallets at any scale. Every private key exists inside a[ hardware-backed secure enclave](https://docs.turnkey.com/security/secure-enclaves) (TEE), and typical workflows never directly handle private key material. **Why teams choose Turnkey:** * **Hardware-backed security**: Private keys live in verifiable secure enclaves and are never directly exposed. * **Programmable signing policies**: Define fine-grained rules governing which transactions can be signed, by whom, and under what conditions. * **Per-user sub-organizations**: Give each team or end-user an isolated key hierarchy for embedded wallet applications. * **Server-side or client-side**: Works equally well for backend automation, treasury, B2B, and user-facing embedded wallet flows. ## **Prerequisites** * A[ Brale account](https://app.brale.xyz/signup) with KYB started or completed, and an API client created in the Brale Dashboard * A[ Turnkey account](https://app.turnkey.com) with an organization and API key pair * A decision on which network(s) you want to support (for example, EVM chains like base) ## **Authenticate with Brale** Exchange your Brale client credentials for a bearer token: ```bash theme={null} CLIENT_CREDENTIALS=$( printf "%s:%s" "${CLIENT_ID}" "${CLIENT_SECRET}" | base64 | tr -d '\n' ) curl --request POST \ --url \ --header "Authorization: Basic ${CLIENT_CREDENTIALS}" \ --header "Content-Type: application/x-www-form-urlencoded" \ --data grant_type=client_credentials ``` Store the returned access\_token as AUTH\_TOKEN. Refresh it before it expires (expires\_in). ## **Get your account\_id** ```bash theme={null} curl --request GET \ --url \ --header "Authorization: Bearer ${AUTH_TOKEN}" ``` Select the correct account\_id from the response. * If you only have a single Brale account, use that account\_id. * If you operate managed accounts, use the managed account’s account\_id for the end customer you are funding. Store this as ACCOUNT\_ID. ## **Get the wallet address from Turnkey** You only need one thing from Turnkey to use Brale: the onchain address you want to fund (or receive funds from). The examples below cover two common patterns. Turnkey supports additional SDKs. See the[ SDK overview](https://docs.turnkey.com/sdks/introduction) for the full list. ### **Option A: Embedded wallet with @turnkey/react-wallet-kit** Once your user is authenticated, read the wallet address from the wallets array returned by the useTurnkey hook: ```javascript theme={null} import { useTurnkey } from "@turnkey/react-wallet-kit"; const { wallets } = useTurnkey(); const walletAddress = wallets?.[0]?.accounts?.[0]?.address; // e.g. "0xb518d4d6221d9a41d23d71cbce8e106e7aab8f9b" ``` See[ Getting started with the Embedded Wallet Kit](https://docs.turnkey.com/sdks/react/getting-started) for the full provider and authentication setup. ### **Option B: Server-side wallet with @turnkey/sdk-server** For server-side or treasury use cases, retrieve addresses from the Turnkey API using @turnkey/sdk-server: ```javascript theme={null} import { Turnkey } from "@turnkey/sdk-server"; ... const { accounts } = await client.getWalletAccounts({ organizationId: process.env.TURNKEY_ORGANIZATION_ID!, walletId, }); const walletAddress = accounts[0].address; // e.g. "0xb518d4d6221d9a41d23d71cbce8e106e7aab8f9b" ``` See the[ TypeScript Server SDK docs](https://docs.turnkey.com/sdks/javascript-server) for authentication and wallet creation. ## **Register the Turnkey wallet in Brale** Create an external address and capture the returned address\_id: ```bash theme={null} curl --request POST \ --url \ --header "Authorization: Bearer ${AUTH_TOKEN}" \ --header "Content-Type: application/json" \ --header "Idempotency-Key: $(uuidgen)" \ --data '{ "name": "User Turnkey Wallet (EVM)", "address": "0xb518d4d6221d9a41d23d71cbce8e106e7aab8f9b", "transfer_types": ["base", "ethereum"] }' ``` On retries, reuse the same Idempotency-Key you used on the original request. Do not generate a new key on retry. Response: ```json theme={null} { "id": "2VcUIIsgARwVbEGlIYbhg6fGG57" } ``` Persist the returned id as the user’s Brale address\_id. This is the reference you’ll pass into every Transfer involving this wallet. * If the same address format is valid across multiple networks (for example, EVM chains), include all relevant onchain transfer\_types in a single call. * If the address format differs by chain (for example, non-EVM), create separate external Addresses. **Note:** Balance queries are supported for internal custodial addresses and Plaid-linked bank addresses. Other external addresses—including self-custody wallets and bank addresses created through Direct bank entry—do not expose balances through Brale. Read self-custody wallet balances directly from the chain. ## **Onramp: send stablecoins to the Turnkey wallet** ### **Option A: wire → stablecoin → Turnkey wallet** ```bash theme={null} DESTINATION_ADDRESS_ID="2VcUIIsgARwVbEGlIYbhg6fGG57" # Turnkey wallet address_id from above curl --request POST \ --url \ --header "Authorization: Bearer ${AUTH_TOKEN}" \ --header "Content-Type: application/json" \ --header "Idempotency-Key: $(uuidgen)" \ --data '{ "amount": { "value": "100", "currency": "USD" }, "source": { "value_type": "USD", "transfer_type": "wire" }, "destination": { "address_id": "'"${DESTINATION_ADDRESS_ID}"'", "value_type": "SBC", "transfer_type": "base" } }' ``` Replace SBC with your stablecoin value type, and base with your target chain transfer type. ### **Option B: ach\_debit → stablecoin → Turnkey wallet** ach\_debit flows require additional setup (end-user funding addresses, Plaid flows, etc.). Once configured, the Transfer pattern is the same: the destination is your Turnkey address\_id. See:[ ach\_debit to end user wallet](/guides/ach-on-ramp) ## **Sign and send from the Turnkey wallet** This section is Turnkey-specific. Brale does not require a particular signing library or transaction stack for external wallets. With stablecoins in the Turnkey wallet, all onchain activity is signed by Turnkey. Keys never leave the enclave. Your app constructs an onchain transaction, Turnkey produces a signed payload, and you broadcast it. Be sure your onchain transaction configuration matches the chain and token you’re using (contract address, decimals, gas settings, and chain ID). * ERC-20 transfer example (viem, react-wallet-kit) Use viem to encode the ERC-20 transfer calldata, sign it with signTransaction from useTurnkey, then broadcast via a public client. ```javascript theme={null} import { useTurnkey } from "@turnkey/react-wallet-kit"; import { createPublicClient, encodeFunctionData, erc20Abi, http, parseUnits, serializeTransaction, } from "viem"; import { base } from "viem/chains"; const publicClient = createPublicClient({ chain: base, transport: http() }); function SendStablecoinButton() { const { signTransaction, wallets } = useTurnkey(); const handleSend = async () => { const walletAccount = wallets?.[0]?.accounts?.[0]; const walletAddress = walletAccount?.address; const STABLECOIN_ADDRESS = "0x..."; // your stablecoin contract on Base const RECIPIENT_ADDRESS = "0x..."; // destination const AMOUNT = "..."; // amount to send const data = encodeFunctionData({ abi: erc20Abi, functionName: "transfer", args: [RECIPIENT_ADDRESS, parseUnits(AMOUNT, 6)], }); const nonce = await publicClient.getTransactionCount({ address: walletAddress, }); const gasPrice = await publicClient.getGasPrice(); const unsignedTx = serializeTransaction({ to: STABLECOIN_ADDRESS, data, nonce, gasPrice, gas: 100000n, chainId: base.id, }); const signedTx = await signTransaction({ walletAccount, unsignedTransaction: unsignedTx, transactionType: "TRANSACTION_TYPE_ETHEREUM", }); const txHash = await publicClient.sendRawTransaction({ serializedTransaction: signedTx, }); console.log("Transfer:", `https://basescan.org/tx/${txHash}`); }; return ; } ``` Turnkey’s policy engine can restrict which contracts and recipients are signable. See[ Turnkey policies](https://docs.turnkey.com/concepts/policies/overview) for how to configure signing controls. ## **Offramping (stablecoin → USD)** Brale’s offramp converts stablecoins to fiat from Brale-custodied addresses (type=internal). For a Turnkey wallet, that means: 1. Send stablecoins from the Turnkey wallet to a Brale custodial deposit address. 2. Wait for the inbound onchain deposit to be credited to the Brale custodial address. 3. Initiate the stablecoin-to-fiat payout workflow. **Get your Brale custodial deposit address:** ```bash theme={null} curl --request GET \ --url \ --header "Authorization: Bearer ${AUTH_TOKEN}" ``` Find the entry with "type": "internal" and transfer\_types containing your target chain (for example, base). Copy its address field. That is the onchain deposit address Turnkey will send to. Once Brale sees the inbound transfer credited to the custodial address, you can initiate the stablecoin-to-fiat conversion. See:[ Stablecoin to Fiat (Offramp)](/guides/stablecoin-to-fiat-offramp) ## **References** **Brale** * [Quick Start, Your First Brale Stablecoin Transfer](/overview/quick-start) * [Authentication](/key-concepts/authentication) * [Add an External Destination](/guides/how-to/add-external-destination) * [Self-custody Wallets](/guides/self-custody-wallets) * [Stablecoin to Fiat (Offramp)](/guides/stablecoin-to-fiat-offramp) * [ach\_debit to end user wallet](/guides/ach-on-ramp) **Turnkey** * [Quickstart](https://docs.turnkey.com/getting-started/quickstart) * [React Wallet Kit, Getting started](https://docs.turnkey.com/sdks/react/getting-started) * [React Wallet Kit, Using embedded wallets](https://docs.turnkey.com/sdks/react/using-embedded-wallets) * [React Wallet Kit, Signing](https://docs.turnkey.com/sdks/react/signing) * [TypeScript Server SDK](https://docs.turnkey.com/sdks/javascript-server) * [Policies overview](https://docs.turnkey.com/concepts/policies/overview) * [Security model](https://docs.turnkey.com/security/non-custodial-key-mgmt) # Managed Accounts Source: https://docs.brale.xyz/guides/managed-accounts Create and operate verified stablecoin accounts for your customers. Choose custodial accounts for Brale-managed wallet addresses and balances, or transactional accounts for approved self-custody destination flows. ## Create stablecoin accounts for your customers Managed accounts let your platform create and operate verified accounts for your end customers through Brale. Each managed account has its own `account_id`. Choose the account model that matches the customer experience you are building: * **Custodial accounts** include Brale-managed internal wallet addresses on supported chains and can hold stablecoin balances. * **Transactional accounts** are non-custodial. They use external destination addresses and do not hold Brale-custodied balances. Your platform owns the customer experience and uses the API to create accounts, check status, retrieve addresses and balances where applicable, and initiate supported activity. Brale operates the applicable account, custody, verification, and compliance infrastructure. > [card] [Build with Custodial Accounts](/guides/custodial-accounts) > > Give verified customers Brale-managed wallet addresses and stablecoin balances. > [card] [Build with Transactional Accounts](/guides/transactional-accounts) > > Support verified customers with self-custody destination flows, without a Brale-held balance. ## Why use managed accounts? * **Give each customer an account structure.** Associate onboarding, addresses, balances, transfers, and events with one account ID. * **Avoid building wallet infrastructure.** Custodial accounts receive Brale-managed internal wallet addresses on supported chains. * **Embed stablecoin movement in your product.** Use the API to support account onboarding, balance visibility where applicable, and supported transfers or payouts. ## Choose an account model | Customer need | Recommended model | What it provides | | - | - | - | | A verified business needs a Brale-custodied stablecoin balance and supported movement | Business custodial | Internal wallet addresses and custodied balances | | A verified individual needs a Brale-custodied stablecoin balance and supported movement | Individual custodial | Internal wallet addresses and custodied balances | | A verified business needs a self-custody destination, not a Brale-held balance | Business transactional | External destination addresses; no internal wallet | | A verified individual needs a self-custody destination, not a Brale-held balance | Individual transactional | External destination addresses; no internal wallet | > [!NOTE] > > Transactional accounts do not receive internal wallet addresses, do not hold Brale-custodied balances, and cannot originate on-chain transfers. See [Transactional Accounts](/guides/transactional-accounts). ## How the model works | Your platform | Managed customer account | Brale | | - | - | - | | Owns the product experience, customer relationship, and API integration | Is the verified business or individual represented by an `account_id` | Operates the applicable account, custody, verification, and compliance infrastructure | | Designs the end-user experience and collects information required for the selected account flow | Uses the selected custodial or transactional account model | Supports the account lifecycle and provisions internal addresses for custodial accounts | > [!NOTE] > > Account availability depends on customer type, account type, jurisdiction, verification, and program approval. Availability in a jurisdiction does not guarantee approval for every customer, payment rail, transfer direction, or funds flow. See [Account availability](/coverage/account-availability). Before calling `POST /accounts`, your onboarding flow must present the current [Brale End User Agreement](https://brale.xyz/legal/end-user-agreement) to the end user and capture the required consent. See [Accounts](/key-concepts/accounts) for account-creation requirements. ## Before you build * [Compare account types](/key-concepts/account-types) * [Check account availability](/coverage/account-availability) * [Review prohibited businesses](/coverage/prohibited-businesses) * [Review the Accounts resource](/key-concepts/accounts) * [Create an account](/api-reference/brale/create-account) ## Common questions ### Is a managed account the same as a wallet? No. A managed account is the verified customer account identified by an `account_id`. A custodial managed account can have one or more internal wallet addresses on supported chains. ### What is the difference between custodial and transactional accounts? Custodial accounts can hold Brale-custodied stablecoin balances in internal wallet addresses. Transactional accounts are non-custodial. They use external destination addresses and do not hold a Brale-custodied balance. ### Where are managed accounts available? Availability depends on customer type, account type, and jurisdiction. See [Account availability](/coverage/account-availability). ### Do I need to build separate wallet infrastructure? Not for approved custodial account flows. Brale provisions internal wallet addresses on supported chains. You still build the customer experience and integrate through the API. # Self-custody wallets Source: https://docs.brale.xyz/guides/self-custody-wallets Provider-agnostic integration pattern for pairing Brale rails with any self-custody wallet provider. ## Overview Brale is a flexible stablecoin rail that works with **any self-custody wallet**. Pairing Brale with a self-custody wallet provider gives you everything you need to run stablecoin-powered money movement—while keeping wallet choice and key control inside your product. This guide describes a **provider-agnostic pattern** you can reuse across current or future wallet partners. > [!TIP] > > Want a concrete example implementation? See [Para Wallet integration](/guides/integrations/para-wallet). ### What “self-custody” means in Brale In Brale, wallets and bank endpoints are represented as **Addresses** (`address_id`). Addresses come in two types: * `type=internal` — Brale-custodied addresses generated for an Account * `type=external` — an address managed outside Brale (e.g., a user-owned wallet, external bank account, or Canton party) Self-custody = your end users’ wallets are represented as `type=external` Addresses. *** ## Why Brale + a self-custody wallet Using a self-custody wallet provider for the wallet layer and Brale for rails gives you: * **Full rails + orchestration:** onramps, offramps, transfers, swaps using one set of core primitives. * **Wallet optionality:** standardize once, then add/swap wallet providers without rewriting the rails. * **End-user trust + control:** users control keys (or an MPC equivalent); Brale never holds end-user keys. * **A clean integration boundary:** wallet provider handles key mgmt + signing; Brale handles regulated money movement. *** ## Core model (what maps to the Brale API) Brale is built around a small set of resources: * **Accounts (`account_id`)** represent KYB’d business entities. Your application has its own `account_id`, and you can create additional `account_id` values for business clients. * **Addresses (`address_id`)** are the universal source/destination primitive for transfers. * **Transfers (`transfer_id`)** move value across fiat rails and blockchains and always reference `address_id` for source + destination. ### Identifiers: `transfer_type` and `value_type` Brale is strict about canonical identifiers: * `transfer_type` = the rail or chain (e.g., `wire`, `ach_debit`, `base`, `solana`) * `value_type` = the currency/token (e.g., `usd`, `USDC`, `SBC`) and is **case-sensitive** > [!NOTE] > > Offchain USD is `value_type=usd` (lowercase). Many onchain stablecoins are uppercase (e.g., `USDC`, `SBC`). Always use Coverage as the source of truth. *** ## Integration pattern (provider-agnostic) ### 1) Authenticate to Brale Create API credentials in the Brale dashboard, then exchange them for a bearer token. ```bash theme={null} CLIENT_CREDENTIALS=$( printf "%s:%s" "${CLIENT_ID}" "${CLIENT_SECRET}" | base64 | tr -d '\n' ) curl --request POST \ --url https://auth.brale.xyz/oauth2/token \ --header "Authorization: Basic ${CLIENT_CREDENTIALS}" \ --header "Content-Type: application/x-www-form-urlencoded" \ --data grant_type=client_credentials ``` Use `Authorization: Bearer ${access_token}` for subsequent calls. Tokens are short-lived—refresh using `expires_in`. *** ### 2) Get your `account_id` ```bash theme={null} curl --request GET \ --url https://api.brale.xyz/accounts \ --header "Authorization: Bearer ${AUTH_TOKEN}" ``` Use: * your primary `account_id` for your own program operations * a managed customer `account_id` when moving funds for an end business/customer *** ### 3) Get your internal custodial wallets (`type=internal`) Brale automatically generates internal custodial addresses on supported chains for an onboarded Account. You can filter addresses using query parameters on `GET /accounts/{account_id}/addresses`, including: * `type=internal|external` * `transfer_type=...` (repeatable) * `address=...` (exact onchain address match) ```bash theme={null} curl --request GET \ --url "https://api.brale.xyz/accounts/${ACCOUNT_ID}/addresses?type=internal&transfer_type=base" \ --header "Authorization: Bearer ${AUTH_TOKEN}" ``` Pick an internal `address_id` whose `transfer_types` include the chain(s) you need. #### Query an internal balance (custodial only) Balances require both `transfer_type` and `value_type`. For wallets, balance queries work only for `type=internal`. ```bash theme={null} curl --request GET \ --url "https://api.brale.xyz/accounts/${ACCOUNT_ID}/addresses/${ADDRESS_ID}/balance?transfer_type=base&value_type=SBC" \ --header "Authorization: Bearer ${AUTH_TOKEN}" ``` *** ### 4) Register the user’s self-custody wallet as an external Address (`type=external`) Your wallet provider provisions a wallet and returns an onchain address. Register it with Brale so it can be used as a transfer source/destination. ```bash theme={null} curl --request POST \ --url "https://api.brale.xyz/accounts/${ACCOUNT_ID}/addresses/external" \ --header "Authorization: Bearer ${AUTH_TOKEN}" \ --header "Content-Type: application/json" \ --header "Idempotency-Key: $(uuidgen)" \ --data '{ "name": "User Wallet (EVM)", "address": "0xb518d4d6221d9a41d23d71cbce8e106e7aab8f9b", "transfer_types": ["ethereum", "base", "polygon", "arbitrum"] }' ``` Response: ```json theme={null} { "id": "2VcUIIsgARwVbEGlIYbhg6fGG57" } ``` Store that `id` as the user’s Brale `address_id`. Notes: * If the same user has wallets on **multiple non-EVM chains** (e.g., Solana + Stellar), create separate external Addresses (you’ll get distinct `address_id` values). * Balance queries are supported for internal custodial addresses and Plaid-linked bank addresses. Other external addresses—including self-custody wallets and bank addresses created through Direct bank entry—do not expose balances through Brale. * For more chain-specific examples, see [Add an External Destination](/guides/how-to/add-external-destination). *** ### 5) Create transfers using `address_id` Transfers are how you do onramps/offramps, payouts, and swaps. Every transfer references `address_id` for source + destination and includes both `transfer_type` and `value_type`. **Idempotency rules** * Always send `Idempotency-Key` on create POSTs; never on GETs. * Reuse the same key only when retrying the **same** logical request; never reuse with a different payload or URI. #### Example A — Stablecoin payout (internal → external wallet) ```bash theme={null} DESTINATION_ADDRESS_ID="2VcUIIsgARwVbEGlIYbhg6fGG57" # the user wallet (type=external) SOURCE_ADDRESS_ID="2VcUIonJeVQzFoBuC7LdFT0dRe4" # your custodial wallet (type=internal) curl --request POST \ --url "https://api.brale.xyz/accounts/${ACCOUNT_ID}/transfers" \ --header "Authorization: Bearer ${AUTH_TOKEN}" \ --header "Content-Type: application/json" \ --header "Idempotency-Key: $(uuidgen)" \ --data '{ "amount": { "value": "25", "currency": "USD" }, "source": { "address_id": "'"${SOURCE_ADDRESS_ID}"'", "value_type": "SBC", "transfer_type": "base" }, "destination": { "address_id": "'"${DESTINATION_ADDRESS_ID}"'", "value_type": "SBC", "transfer_type": "base" } }' ``` #### Example B — ach\_debit funded mint to a self-custody wallet Brale supports `ach_debit` flows that mint to a custodial **or self-custody** wallet. This assumes you’ve already created a funding Address for the end user’s bank account (typically via Plaid) and have its `address_id`. ```bash theme={null} FUNDING_ADDRESS_ID="34yGFQf7tP1HJCPAWNGaN4rh4nX" # end user bank funding address (type=external) DESTINATION_ADDRESS_ID="2VcUIIsgARwVbEGlIYbhg6fGG57" # end user wallet (type=external) curl --request POST \ --url "https://api.brale.xyz/accounts/${ACCOUNT_ID}/transfers" \ --header "Authorization: Bearer ${AUTH_TOKEN}" \ --header "Content-Type: application/json" \ --header "Idempotency-Key: $(uuidgen)" \ --data '{ "amount": { "value": "100", "currency": "USD" }, "source": { "address_id": "'"${FUNDING_ADDRESS_ID}"'", "value_type": "usd", "transfer_type": "ach_debit" }, "destination": { "address_id": "'"${DESTINATION_ADDRESS_ID}"'", "value_type": "SBC", "transfer_type": "base" } }' ``` For full setup and testing flow, see [ach\_debit to end user wallet](/guides/ach-on-ramp). #### Example C — Stablecoin swap / cross-chain move (1:1, no slippage) Stablecoins can be swapped 1:1 across chains; Brale burns on the source chain and mints on the destination chain. ```bash theme={null} SOURCE_ADDRESS_ID="2VcUIonJeVQzFoBuC7LdFT0dRe4" DESTINATION_ADDRESS_ID="2VcUIjvaXjMUVAWLT8R9LzEUDed" curl --request POST \ --url "https://api.brale.xyz/accounts/${ACCOUNT_ID}/transfers" \ --header "Authorization: Bearer ${AUTH_TOKEN}" \ --header "Content-Type: application/json" \ --header "Idempotency-Key: $(uuidgen)" \ --data '{ "amount": { "value": "100", "currency": "USD" }, "source": { "address_id": "'"${SOURCE_ADDRESS_ID}"'", "value_type": "SBC", "transfer_type": "solana" }, "destination": { "address_id": "'"${DESTINATION_ADDRESS_ID}"'", "value_type": "SBC", "transfer_type": "base" } }' ``` *** ## Offramping (stablecoin → USD) with self-custody To offramp to USD, stablecoins must be held in a Brale custodial address (`type=internal`). For self-custody users, the common pattern is: 1. User sends stablecoins from their wallet → your Brale custodial deposit address 2. You initiate a stablecoin→USD offramp to the customer’s bank Address See: [Stablecoin to Fiat (Offramp)](/guides/stablecoin-to-fiat-offramp) *** ## Provider optionality (recommended abstraction) To keep wallet choice flexible, model wallet providers behind a small interface. ```tsx theme={null} export interface SelfCustodyWalletProvider { createOrGetWallet(params: { userId: string; transferType: string; // e.g., "base", "solana" }): Promise<{ walletAddress: string }>; } ``` Recommended records to store: * `user_id` * `wallet_provider` * `wallet_address` (chain-format address) * `transfer_types` enabled for this wallet (e.g., `["base","ethereum"]` or `["solana"]`) * Corresponding Brale `address_id` * `created_at`, `updated_at` *** ## Troubleshooting & known pitfalls * **Account is pending:** you may need to wait for KYB to complete before creating/linking resources for that Account. * **Internal vs external confusion:** use `type=internal` for Brale-custodied; `type=external` for user wallets/bank accounts. * **Case sensitivity:** use canonical identifiers from Coverage; they are case-sensitive. * **Environment mismatch:** don’t mix testnet and mainnet credentials/resources (common cause of `network_not_supported`). * **Branding:** `brand` applies to ACH, outbound wire payouts, and FedNow payouts. *** ## Related docs * [Addresses (Key concepts)](/key-concepts/addresses) * [Accounts (Key concepts)](/key-concepts/accounts) * [Transfers (Key concepts)](/key-concepts/transfers) * [Add an External Destination](/guides/how-to/add-external-destination) * [Get A Balance](/guides/how-to/get-a-balance) * [ach\_debit to end user wallet](/guides/ach-on-ramp) * [Stablecoin to Fiat (Offramp)](/guides/stablecoin-to-fiat-offramp) * [Stablecoin to Stablecoin (Swap)](/guides/stablecoin-to-stablecoin-swap) * [Coverage: Transfer Types](/coverage/transfer-types) * [Coverage: Value Types](/coverage/value-types) * [Para Wallet integration](/guides/integrations/para-wallet) # Stablecoin Issuance Source: https://docs.brale.xyz/guides/stablecoin-issuance Create your own stablecoin in minutes and earn program revenue on fully-backed reserves managed by Brale. Brale enables businesses to create their own stablecoins in minutes and earn program revenue on underlying reserves, managed by Brale. Stablecoins are fully backed by cash, cash equivalents, and short-duration U.S. treasuries held in segregated accounts. ## Overview Once issued, stablecoins are made available via the API for you and anyone with production API keys (see [Transfers](/key-concepts/transfers), [Automations](/key-concepts/automations)). ## Why create your own stablecoin Issuance allows businesses to benefit from the treasury economics of a stablecoin and provides an additional degree of control not available with third-party stablecoins: * **Treasury revenue**: Earn treasury revenue on funds at rest. This allows fintechs, emerging ecosystems, and app chains to monetize. * **On and off ramps:** Once issued, your stablecoin is available to your customers to acquire via USD, USDC, USDT, or other supported stablecoins. * **Branded**: Create branded, cohesive product experiences leveraging the trust and familiarity of your brand. * **Issue natively on emerging blockchains**: Issue a native-fiat backed stablecoin on your L1 / L2 / Appchain. ## How to create a stablecoin Issue natively on 20+ blockchains in less than 10 minutes. Below is a live walkthrough. [Brale stablecoin issuance overview](https://www.youtube.com/embed/0M7bdTS4l2w) ## How it works 1. Launch your stablecoin through the Brale dashboard by choosing your name, ticker symbol, logo, and chain(s). 2. The stablecoin will be immediately listed on Brale's exchange and can be acquired via USD or USDC. 3. Brale manages the regulated reserves. 4. Brale shares treasury revenue with you monthly. ## Supported currencies Brale supports U.S. Dollar and Mexican Peso stablecoins, with additional currencies coming soon. You can also issue stablecoins managed by your own reserves. Supported currencies: * U.S. Dollar * Mexican Peso To request additional currencies, please reach out to our team at [support@brale.xyz](mailto:support@brale.xyz). ## Cross Chain Swaps Stablecoins are issued natively on each chain and can be swapped 1:1 between chains at any time. Stablecoins are burned on the source chain, and minted on the destination chain. Brale does not use any wrapping or locking mechanism - all stablecoins are issued natively and enforce natural supply. ### Swap from Solana to Base **POST** `https://api.brale.xyz/accounts/account_id/transfers` ```json Request theme={null} { "amount": { "value": "100", "currency": "USD" }, "source": { "address_id": "a1b2c3d4-5678-90ab-cdef-1234567890ab", "value_type": "SBC", "transfer_type": "solana" }, "destination": { "address_id": "b2c3d4e5-6789-01ab-cdef-2345678901bc", "value_type": "SBC", "transfer_type": "base" } } ``` # Stablecoin Payouts Source: https://docs.brale.xyz/guides/stablecoin-payouts Send stablecoin payouts from custodial addresses to external onchain wallets anywhere in the world. Leverage stablecoin payouts alongside traditional payment methods to send money to on-chain addresses anywhere in the world. Payouts are Transfers from an internal (Brale custodial) address to one or many external addresses. ## USDC Payout **POST** `https://api.brale.xyz/accounts/account_id/transfers` ```json title="Request" theme={null} { "amount": { "value": "100", "currency": "USD" }, "source": { "addressId": "2VcUIonJeVQzFoBuC7LdFT0dRe4", "valueType": "USDC", "transferType": "solana" }, "destination": { "addressId": "2VcUImV6vUAo1v0cspsjD4TsmMQ", "valueType": "USDC", "transferType": "solana" } } ``` ## Payouts from your Stablecoin A common workflow is to hold custodial balances in the form of your created stablecoin, but to process payouts in another stablecoin, like USDC. Here is an example of paying out of your stablecoin balance to USDC on Solana. **POST** `https://api.brale.xyz/accounts/account_id/transfers` ```json title="Request" theme={null} { "amount": { "value": "100", "currency": "USD" }, "source": { "address_id": "2VcUIonJeVQzFoBuC7LdFT0dRe4", "value_type": "YSBC", "transfer_type": "solana" }, "destination": { "address_id": "2VcUImV6vUAo1v0cspsjD4TsmMQ", "value_type": "USDC", "transfer_type": "solana" } } ``` # Stablecoin to Fiat (Offramp) Source: https://docs.brale.xyz/guides/stablecoin-to-fiat-offramp Convert stablecoins to USD and withdraw to bank accounts via wire, ACH, or FedNow payment rails. In order to submit a stablecoin-to-fiat transaction, first you need to: * Create an [Account](/key-concepts/accounts) representing your customer * Create an [Address](/key-concepts/addresses) which is your customer's bank account where Brale will deposit USD * Deposit stablecoins to a Brale custodial address (address with type `internal`) > [!WARNING] > > **Important** — Brale can only off-ramp stablecoins that are already held in a Brale internal address. > If stablecoins are currently in an external or self-custody wallet, they must first be transferred to a Brale internal address before you submit the fiat payout request. ## Link an Address to your customer's Account Destination bank addresses can be created in two ways: * **Plaid-linked bank account** — Securely connect a bank account via the Plaid Link SDK. Supports `ach_debit` and `ach_credit`. * **Direct bank entry** — Submit bank details directly via the Addresses API. Supports `wire`, `ach_credit`, `same_day_ach_credit`, and `fednow_credit`. | Capability | Plaid-linked bank account | Direct bank entry | | - | - | - | | `ach_debit` | Supported | Not supported | | `ach_credit` | Supported | Supported | | `rtp_credit` | No longer available | No longer available | | `fednow_credit` | Supported | Supported | | `wire` | Not supported | Supported | **Direct bank entry** is the right path when you already have bank account details or need `wire` transfers. For the full comparison and guidance, see [External bank addresses](/key-concepts/external-bank-addresses). ### Direct bank entry Here is an example of adding an ACH offchain address via Direct bank entry using [Create a new external address](/api-reference/brale/create-address). **POST** `https://api.brale.xyz/accounts/account_id/addresses/external` > [!NOTE] > > For Direct bank entry addresses without `wire` (ACH or FedNow only), `bank_address` and `beneficiary_address` are optional. They are **required** when creating a wire-capable address (when `transfer_types` includes `wire`). Do not enter placeholder or generic bank addresses—omit these fields unless you have accurate values. ```json title="Request (ACH Credit)" theme={null} { "owner": "Jane Doe", "account_number": "1234567890", "routing_number": "987654321", "account_type": "checking", "name": "Example Bank", "transfer_types": ["ach_credit", "same_day_ach_credit"] } ``` For a wire-capable address, include `bank_address` and `beneficiary_address`: ```json title="Request (Wire)" theme={null} { "owner": "Jane Doe", "account_number": "1234567890", "routing_number": "987654321", "account_type": "checking", "name": "Example Bank", "transfer_types": ["wire"], "bank_address": { "street_line_1": "100 Example St", "street_line_2": "Suite 500", "city": "Springfield", "state": "CA", "zip": "90001" }, "beneficiary_address": { "street_line_1": "100 Example St", "street_line_2": "Suite 500", "city": "Springfield", "state": "CA", "zip": "90001" } } ``` ```json title="Response (ACH Credit)" theme={null} { "id": "34yxvqP90NfeeYkQGriO6bSfn1K", "name": "Example Bank", "owner": "Jane Doe", "status": "active", "transfer_types": ["ach_credit", "same_day_ach_credit"], "created": "2025-11-03T19:57:25.965990Z", "bank_address": null, "beneficiary_address": null, "account_number": "****7890", "needs_update": false, "last_updated": "2025-11-03T19:57:26.801044Z", "routingNumber": "987654321", "account_type": "checking" } ``` > [!NOTE] > > Need `ach_debit`? Use the [Plaid-linked bank account flow](/api-reference/brale/create-plaid-link-token) instead. See [External bank addresses](/key-concepts/external-bank-addresses) for details. ### RTP payouts > [!WARNING] > > RTP payouts (`rtp_credit`) ended on October 30, 2026. FedNow (`fednow_credit`) replaces RTP for instant USD payouts. Requests that still send `rtp_credit` return `400 invalid_transfer_types` on address creation or `400 invalid_transfer_type` on transfer creation. To switch, follow [Migrate from `rtp_credit` to `fednow_credit`](/guides/fednow-outbound#migrate-from-rtp_credit-to-fednow_credit). For recipient banks that do not participate in FedNow, use `same_day_ach_credit` or `wire`. ### FedNow payouts To pay out over FedNow, the destination Address must be `active` and list `fednow_credit` in `transfer_types`. Add `fednow_credit` when you create the Address, or add it to an existing Direct bank entry Address with `PATCH /accounts/{account_id}/addresses/{address_id}` and `{"additional_transfer_types": ["fednow_credit"]}`. The Address ID does not change. Then create a Transfer with `destination.transfer_type: "fednow_credit"`. Do not assume `fednow_credit` is enabled asynchronously. Confirm the Address lists `fednow_credit` in `transfer_types` before you send a payout. See [Send FedNow payouts](/guides/fednow-outbound) for the full flow, including errors, safe retries, and handling pending payouts. ## Stablecoin to USD via Wire Once your customer has an address and stablecoins are held in a Brale controlled address, you can submit a Transfer request with the destination of the address. For outbound wire transfers, you can optionally pass `destination.wire_memo` to include a memo or payment reference with the wire. **POST** `https://api.brale.xyz/accounts/account_id/transfers` ```json title="Request" theme={null} { "amount": { "value": "100", "currency": "USD" }, "source": { "address_id": "2VcUIonJeVQzFoBuC7LdFT0dRe4", "value_type": "YSBC", "transfer_type": "solana" }, "destination": { "address_id": "2AbCdEfGHiJkLmN0pQrStUvWxYz", "value_type": "USD", "transfer_type": "wire", "wire_memo": "Invoice 1048" } } ``` Brale will burn the stablecoins from the Source Address immediately, and then transfer USD to the destination bank account. ### Optional: brand the wire sender To send the wire under your business's or your customer's verified identity instead of Brale, add a top-level `brand` object with `brand.account_id`. `brand` selects the wire sender (originator). It does not change which Account funds the transfer, the source or destination, or the memo. `destination.wire_memo` still sets the payment reference. If you omit `brand`, the wire is sent unbranded. See [Branded outbound wires](/guides/2nd-and-3rd-party-transfers#branded-outbound-wires) for a full example. ```json title="Request (branded wire)" theme={null} { "amount": { "value": "100", "currency": "USD" }, "source": { "address_id": "2VcUIonJeVQzFoBuC7LdFT0dRe4", "value_type": "YSBC", "transfer_type": "solana" }, "destination": { "address_id": "2AbCdEfGHiJkLmN0pQrStUvWxYz", "value_type": "USD", "transfer_type": "wire", "wire_memo": "Invoice 1048" }, "brand": { "account_id": "" } } ``` ### Tracking the outbound wire with `destination.payment_details.imad` When you retrieve the transfer, the response may include a `destination.payment_details` object containing the wire IMAD for tracing and reconciliation. ```json title="Response" theme={null} { "id": "3D1RcbwVywOGyU2HBSenljm5dhV", "status": "complete", "source": { "address_id": "2VcUIonJeVQzFoBuC7LdFT0dRe4", "value_type": "SBC", "transfer_type": "solana", "transaction_id": "5K8…" }, "destination": { "address_id": "2AbCdEfGHiJkLmN0pQrStUvWxYz", "value_type": "USD", "transfer_type": "wire", "wire_memo": "Invoice 1048", "payment_details": { "imad": "20260406XOIZJDPP953495" } }, "updated_at": "2026-04-07T00:05:12.102000Z", "created_at": "2026-04-07T00:01:27.756775Z", "amount": { "value": "100", "currency": "USD" }, "note": null } ``` > [!NOTE] > > `destination.payment_details` is response-only and is not accepted in create requests. The IMAD is assigned by the sending bank and may not be available immediately after the transfer is created — the field may be absent until Brale has the underlying bank metadata, at which point it appears on the transfer. Do not confuse this with `destination.wire_memo`, which remains a request field for outbound wires. See [Transfers — `destination.payment_details`](/key-concepts/transfers#destinationpayment_details) for the full field reference. ### Returned outbound wires The receiving bank can return an outbound wire, even after the transfer reached `complete`. When Brale recognizes the return, it updates the original transfer to `failed` and emits [`transfer.failed`](/webhooks/webhook-events#returned-outbound-wires). Brale does not create a new transfer or use a separate `returned` status. A recognized wire return has a [`failure`](/api-reference/brale/get-transfer#failure) object with `type: "wire_return"` and return details in `failure.wire_return`. `transfer.failed` does not confirm that stablecoins have been credited back. Do not automatically credit your end user's balance solely because `transfer.failed` arrived. See [Transfer status lifecycle](/documentation/platform/transfer-timing#transfer-status-lifecycle) for how statuses change. If Brale refunds the payout, it reports the refund separately with `transfer.refunding` (the refund has started) and `transfer.refunded` (the refund has completed). See [Refund events](/webhooks/webhook-events#refund-events). ## Self-custody redemption If your customer holds stablecoins in a self-custody or external wallet (for example, Crossmint), the redemption is a two-step process: 1. Transfer the stablecoins from the external wallet to a Brale internal address. 2. Submit the off-ramp transfer from that internal address to the customer's bank account. ### Step-by-step example 1. Your customer holds USDC in an external wallet. 2. You retrieve or display the appropriate Brale internal deposit address for the supported chain. 3. Your customer sends the stablecoins from their external wallet to that Brale internal address. 4. Wait until the on-chain deposit is confirmed and the funds are held in the Brale internal address. 5. Submit the stablecoin-to-fiat transfer using that internal address as the source and the customer's bank address as the destination. 6. Brale burns or converts the stablecoins and sends USD to the destination bank account. ```mermaid theme={null} sequenceDiagram participant C as Customer participant W as External Wallet participant B as Brale participant BA as Bank Account C->>W: Initiate redemption W->>B: Transfer stablecoins to Brale internal address B->>B: Receive stablecoins in internal address B->>B: Burn / convert stablecoins B->>BA: Send USD payout B->>C: Redemption complete ``` Once the stablecoins have arrived in the Brale internal address, submit the off-ramp transfer: **POST** `https://api.brale.xyz/accounts/account_id/transfers` ```json title="Request" theme={null} { "amount": { "value": "250", "currency": "USD" }, "source": { "address_id": "2VcUIonJeVQzFoBuC7LdFT0dRe4", "value_type": "YSBC", "transfer_type": "solana" }, "destination": { "address_id": "2AbCdEfGHiJkLmN0pQrStUvWxYz", "value_type": "USD", "transfer_type": "ach_credit" } } ``` > [!NOTE] > > Brale cannot redeem directly from an external wallet it does not control. The stablecoins must first be received into a Brale internal address so Brale can complete the redemption and fiat payout flow. ## Off-ramp for transactional accounts [Transactional accounts](/guides/transactional-accounts), including [individual transactional accounts](/guides/individual-accounts), have no internal address and cannot be the source of a transfer. To pay out a transactional account holder to their own bank account, route the off-ramp through your managing account. The managing account holds the stablecoins in its internal address and sends USD to the holder's bank account as a third-party payout. > [!NOTE] > > A per-user off-ramp automation is not available yet and is expected in Q1 2027. Until then, submit each payout as a transfer from the managing account. 1. **Choose a deposit address on the managing account.**\ The end user sends stablecoins from their self-custody wallet to an internal address owned by your managing account. You can use one omnibus internal address for all users, or segment funds with a dedicated internal address per user created with [`POST /accounts/{account_id}/addresses/internal`](/api-reference/brale/create-internal-address). A dedicated address per user makes it easier to attribute each deposit to the right user. With an omnibus address, your platform tracks which deposit belongs to which user. ```json Request (per-user internal address) theme={null} { "name": "Jane Doe deposit wallet", "transfer_types": ["base", "solana"] } ``` 2. **Register the user's bank account.**\ Create the user's bank account as an external address with [`POST /accounts/{account_id}/addresses/external`](/api-reference/brale/create-address). You can register it under the managing account or under the user's transactional account. Use the same request shape shown in [Direct bank entry](#direct-bank-entry), with the user as `owner`. 3. **Wait for the deposit to settle.**\ Confirm the on-chain deposit has arrived in the managing account's internal address before you submit the payout. 4. **Submit the off-ramp transfer from the managing account.**\ Call `POST /accounts/{account_id}/transfers` with the managing account's `account_id`. Set the managing account's internal address as the source and the user's bank address as the destination. Pass a `brand` object to control the sender the user sees. Most users expect to see your business as the sender, so pass your managing account's `account_id` as `brand.account_id`. For ACH payouts, this sets the name on their bank statement. For wire payouts (`destination.transfer_type: "wire"`), it sets the wire sender. For FedNow payouts (`destination.transfer_type: "fednow_credit"`), it sets the sender the receiving bank sees. Branding works the same way as any [branded transfer](/guides/2nd-and-3rd-party-transfers) and is supported for `ach_credit`, `same_day_ach_credit`, `wire`, and `fednow_credit` payouts. ```json Request theme={null} { "amount": { "value": "250", "currency": "USD" }, "source": { "address_id": "", "value_type": "SBC", "transfer_type": "base" }, "destination": { "address_id": "", "value_type": "USD", "transfer_type": "ach_credit" }, "brand": { "account_id": "" } } ``` Brale burns the stablecoins from the managing account's internal address and sends USD to the user's bank account. # Stablecoin to Stablecoin (Swap) Source: https://docs.brale.xyz/guides/stablecoin-to-stablecoin-swap Swap between stablecoins and move stablecoins across blockchains with burn and mint operations. ## Swap Your Stablecoin Cross Chain Stablecoins are issued natively on each chain and can be swapped 1:1 between chains at any time. Stablecoins are burned on the source chain, and minted on the destination chain. ## Swap from Solana to Base **POST** `https://api.brale.xyz/accounts/account_id/transfers` ```json title="Request" theme={null} { "amount": { "value": "100", "currency": "USD" }, "source": { "address_id": "2VcUIonJeVQzFoBuC7LdFT0dRe4", "value_type": "YSBC", "transfer_type": "solana" }, "destination": { "address_id": "2VcUIjvaXjMUVAWLT8R9LzEUDed", "value_type": "YSBC", "transfer_type": "base" } } ``` ## Swap between Your Stablecoin and USDC Swap between Brale-issued stablecoins, USDC, and Paxos-issued stablecoins 1:1 without slippage. **POST** `https://api.brale.xyz/accounts/account_id/transfers` ```json title="Request" theme={null} { "amount": { "value": "100", "currency": "USD" }, "sourceAddress": { "addressId": "2VcUIonJeVQzFoBuC7LdFT0dRe4", "valueType": "USDC", "transferType": "solana" }, "destinationAddress": { "addressId": "2VcUIonJeVQzFoBuC7LdFT0dRe4", "valueType": "YSBC", "transferType": "solana" } } ``` # Tokenization Overview Source: https://docs.brale.xyz/guides/tokenization Issue and operate your own tokens using Brale for key custody, mint and burn execution, and wallet orchestration. This guide is for **tokenization programs** - cases where Brale **does not** manage fiat reserves or act as the legal issuer of the token. If you're launching a fiat-backed stablecoin with Brale as issuer, see **Stablecoin Issuance** instead. Brale's tokenization API lets you issue and operate your own tokens (for example, a local currency stablecoin or a non-fiat asset) while using Brale for: * mint/burn execution on supported chains, * account & wallet orchestration, * key custody, * and unified reporting. In tokenization mode: * Brale **does not hold reserves** for your token and is not the legal issuer. * You are responsible for coordinating reserve assets. * Your tokens are of kind **`attested`**, and can only be used by you (and your managed accounts). * You do **not** use the USD rails (wire/ACH/FedNow) for these tokens. ## When to use Tokenization Use tokenization when: * You want to issue a non-USD asset (e.g., basket, points, non-fiat asset). * You hold and manage the underlying collateral yourself. * You still want Brale to manage wallets, signing, and on-chain execution. Use **standard stablecoin issuance** when: * You want Brale to be the regulated issuer of a fiat-backed stablecoin. * Brale holds reserves and manages bank relationships on your behalf. ## High-level flow 1. **Account & mode** * Brale marks your main account as **self-attested** (tokenization mode). * You may create managed accounts that inherit this mode. 2. **Token setup** * Brale configures your token as kind **`attested`** on the chains you care about (e.g., Solana, Base). 3. **Wallets & balances** * Use the existing **Accounts** and **Addresses** APIs to create accounts and read wallet addresses and balances. * In tokenization mode, **balances** are notional units mapped to any backing currency. 4. **Mint / Burn / Transfers** * Use `POST /accounts/{account_id}/tokens/mints` to **mint** tokens into a wallet. * Use `POST /accounts/{account_id}/tokens/burns` to **burn** tokens from a wallet. * Use `POST /accounts/{account_id}/tokens/transfers` to move tokens between custodial and external addresses. 5. **Reporting** * List and retrieve prior operations with the tokenization list/get endpoints (mints, burns, transfers). ## Minting tokens **POST** `https://api.brale.xyz/accounts/{account_id}/tokens/mints` ```json title="Request" theme={null} { "amount": "100", "destination": { "address_id": "2srdkF6Sm8TWOJpWt1oNlTVes1w", "value_type": "MY_TOKEN", "transfer_type": "base" } } ``` ## Burning tokens **POST** `https://api.brale.xyz/accounts/{account_id}/tokens/burns` ```json title="Request" theme={null} { "amount": "100", "source": { "address_id": "2srdkF6Sm8TWOJpWt1oNlTVes1w", "value_type": "MY_TOKEN", "transfer_type": "base" } } ``` ## Transferring tokens **POST** `https://api.brale.xyz/accounts/{account_id}/tokens/transfers` ```json title="Request" theme={null} { "amount": "100", "source": { "address_id": "2srdkF6Sm8TWOJpWt1oNlTVes1w", "value_type": "MY_TOKEN", "transfer_type": "base" }, "destination": { "address_id": "2VcUIIsgARwVbEGlIYbhg6fGG57", "value_type": "MY_TOKEN", "transfer_type": "base" } } ``` ## Tokenization API reference * [Create token mint](/api-reference/brale/create-token-mint) * [List token mints](/api-reference/brale/list-token-mints) * [Get token mint](/api-reference/brale/get-token-mint) * [Create token burn](/api-reference/brale/create-token-burn) * [List token burns](/api-reference/brale/list-token-burns) * [Get token burn](/api-reference/brale/get-token-burn) * [Create token transfer](/api-reference/brale/create-token-transfer) * [List token transfers](/api-reference/brale/list-token-transfers) * [Get token transfer](/api-reference/brale/get-token-transfer) # Transactional Accounts Source: https://docs.brale.xyz/guides/transactional-accounts Create verified managed accounts with external self-custody destinations, without Brale-managed wallet balances. > [!NOTE] > > Transactional Accounts are a managed-account configuration. For the account-model comparison and platform-to-customer relationship, see [Managed Accounts](/guides/managed-accounts). ## What transactional accounts are A transactional account is a verified business (KYB) or individual (KYC) account that your platform creates and operates through the API. Each one has its own `account_id`. This guide applies to both business and individual managed accounts. The account-creation payload and verification requirements differ by entity type; see [Accounts](/key-concepts/accounts) and [Individual Accounts](/guides/individual-accounts) for those details. Transactional accounts are non-custodial. They receive no internal wallet addresses and hold no Brale-custodied balance. A transactional account is not a wallet or a stored-value account. It is a verified identity with one or more registered external destination addresses. ## When to use them Use a transactional account when: * Your end customer needs a verified identity and an external, self-custody destination. * Your platform does not need the end customer to hold a Brale-custodied balance. If your customer needs Brale-managed wallet addresses and a stablecoin balance, use [Custodial Accounts](/guides/custodial-accounts) instead. ## Key limitations > [!WARNING] > > * **No internal or custodial addresses.** A transactional account has no automatic custodial wallet at creation and cannot hold internal (`type=internal`) addresses. > * **External addresses are destination-only.** An external address on a transactional account can receive value but cannot be the source of a transfer. > * **The account cannot originate an on-chain transfer.** An attempt returns `422` with type `compatible_address_not_found`. > * **Automations from a transactional account may only target external destinations.** A Brale-custodied destination is rejected. **Branded Automations:** Verified business and individual transactional accounts can be used as `brand.account_id`, subject to applicable program eligibility. Funding instructions show the business's verified name and address or the individual's legal name and address. This does not change the external-destination restrictions above. See [Branded Automations](/key-concepts/automations#branded-automations). ## How it works 1. **Create the account.**\ Call [`POST /accounts`](/api-reference/brale/create-account) with `entity_type` set to `business` or `individual` and `account_type: "transactional"`. See [Accounts](/key-concepts/accounts) for the request fields for each entity type. 2. **Wait for verification.**\ Brale runs verification asynchronously. When it succeeds, `status` becomes `complete` and `account.verification.completed` fires. See [Accounts](/key-concepts/accounts#verification) for how to handle document requests. 3. **Register an external destination address.**\ Add the customer's self-custody wallet with [`POST /accounts/{account_id}/addresses/external`](/api-reference/brale/create-address). See [Addresses](/key-concepts/addresses). 4. **Deliver value to the destination.**\ Use the external address as the destination in a transfer that originates elsewhere. A transactional account itself cannot be the source of an on-chain transfer. See [Transfers](/key-concepts/transfers) and [Automations](/key-concepts/automations) for supported funding and delivery flows. 5. **Attribute activity.**\ Inbound events carry `data.account_id`. A webhook subscription on your managing account receives events for every account it manages, so you can attribute activity to the correct managed customer account. See [Webhook Events](/webhooks/webhook-events). ## Off-ramp to a bank account A transactional account cannot be the source of an off-ramp. To pay a transactional account holder out to their own bank account, route the payout through your managing account: 1. The holder sends stablecoins from their self-custody wallet to an internal address on your managing account. This can be an omnibus address or a dedicated address per user. 2. You register the holder's bank account as an external address, under either the managing account or the holder's transactional account. 3. You submit a stablecoin-to-USD transfer from the managing account's internal address to that bank address. See [Off-ramp for transactional accounts](/guides/stablecoin-to-fiat-offramp#off-ramp-for-transactional-accounts) for the full walkthrough, branding guidance, and request examples. ## Business and individual accounts Both business and individual entities can use the transactional model, subject to your configured program, eligibility, and availability. The request shape and geographic rules differ by entity type: * [Accounts](/key-concepts/accounts) covers the request fields for business and individual accounts. * [Account types](/key-concepts/account-types) explains the `entity_type`, `account_type`, and `verification_mode` combinations. * [Account availability](/coverage/account-availability) lists the U.S. states and approved countries where each account type can be created. * [Individual accounts](/guides/individual-accounts) walks through the end-to-end individual flow. ## Related resources * [Accounts](/key-concepts/accounts) * [Account types](/key-concepts/account-types) * [Account availability](/coverage/account-availability) * [Individual accounts](/guides/individual-accounts) * [Addresses](/key-concepts/addresses) * [Transfers](/key-concepts/transfers) * [Automations](/key-concepts/automations) * [Webhook Events](/webhooks/webhook-events) * [`POST /accounts`](/api-reference/brale/create-account) # Account types Source: https://docs.brale.xyz/key-concepts/account-types Choose between business (KYB) and individual (KYC) accounts, custodial or transactional, using three optional dimension fields on POST /accounts. `POST /accounts` accepts three optional discriminator fields that determine how Brale verifies the account and what it can do: | Field | Values | Default when omitted | | - | - | - | | `entity_type` | `business`, `individual` | `business` | | `account_type` | `custodial`, `transactional` | `custodial` | | `verification_mode` | `standard`, `reliance` | `standard` | > [!NOTE] > > Omitting all three dimension fields produces exactly today's behavior. Existing integrations that create business accounts do not need to change. ## Supported combinations All eight combinations of the three dimension fields are supported: | `entity_type` | `account_type` | `verification_mode` | Verification | | - | - | - | - | | `business` | `custodial` | `standard` or `reliance` | KYB (default when all three fields are omitted) | | `business` | `transactional` | `standard` or `reliance` | KYB | | `individual` | `custodial` | `standard` or `reliance` | KYC | | `individual` | `transactional` | `standard` or `reliance` | KYC | `verification_mode: "reliance"` is enabled per managing account by Brale and is not self-serve. A caller without reliance enabled receives `422 unsupported_account_combination`. `verification_mode: "bypass"` is not supported for any combination and also returns `422 unsupported_account_combination`. An unsupported combination is rejected with `422 unsupported_account_combination`. The rejection is permanent, so it is safe for clients to cache the error against an idempotency key. Where each combination is geographically available depends on the account's location: the U.S. state for individual custodial accounts, the U.S. state or (for regulated businesses) approved country for business custodial accounts, and the U.S. state or approved country for transactional accounts. See [Account availability](/coverage/account-availability) for the canonical state table and the approved country list. ## When to choose each * **Business, custodial** — a business entity that will hold stablecoin balances in Brale-custodied wallets, initiate transfers, and use Brale as its record of funds. Available in supported U.S. states, and outside the United States to regulated businesses in approved countries that send a `regulatory_profile`. See [Account availability](/coverage/account-availability#international-custodial-availability-for-regulated-businesses) and [Custodial Accounts](/guides/custodial-accounts). * **Business, transactional** — a KYB-verified business that is non-custodial: it has no internal Brale wallet and no stored balance at Brale. It can register external, self-custody destination addresses, which are destination-only. Available in supported U.S. states and in approved countries outside the United States. See [Account availability](/coverage/account-availability) and [Transactional Accounts](/guides/transactional-accounts). * **Individual, custodial** — a natural person who holds stablecoin balances in Brale-custodied wallets. The request shape is identical to the individual transactional path; only `account_type` changes. U.S.-only, with a narrower state list than business custodial — see [Account availability](/coverage/account-availability). * **Individual, transactional** — a natural person who receives value on-chain (for example, as the destination of an on-ramp) but does not hold custody with Brale. See [Individual accounts](/guides/individual-accounts). On any of these rows, `verification_mode` is `standard` by default. Use `reliance` only when your integration operates under an agreement with Brale that specifies a reliance model and Brale has enabled it for your managing account. ## Reliance eligibility Under the reliance model, Brale relies on your managing entity's own CIP/KYC program to verify the accounts you create. To qualify, your managing entity must be regulated by a U.S. federal functional regulator: * The Federal Reserve * Federal Deposit Insurance Corporation (FDIC) * Office of the Comptroller of the Currency (OCC) * National Credit Union Administration (NCUA) * Securities and Exchange Commission (SEC) * Commodity Futures Trading Commission (CFTC) Regulation outside the United States does not qualify a managing entity for reliance. For example, an entity registered only with FINTRAC in Canada cannot use `verification_mode: "reliance"`. To assess eligibility, Brale asks for: * Your legal entity name and the U.S. federal functional regulator that oversees it. * An overview of your CIP/KYC program, including whether you have documented policies and procedures. * A summary of your use case, customer types, jurisdictions, and funds flow. Brale Risk & Compliance must approve any reliance arrangement before Brale enables it for your managing account. > [!NOTE] > > Reliance eligibility applies to your managing entity, not to the accounts you create. A `regulatory_profile` on `POST /accounts` describes the customer business's own regulator, which can be a non-U.S. authority such as FINTRAC. It determines whether that business can open a [custodial account outside the United States](/coverage/account-availability#international-custodial-availability-for-regulated-businesses). It does not make your managing account eligible for reliance. ## Backward compatibility The dimension fields are optional and default to the values that describe today's account. A request that omits `entity_type`, `account_type`, and `verification_mode` continues to create a KYB-verified business account with Brale-custodied wallets, exactly as before. ## Related * [Account availability](/coverage/account-availability) — where each customer and account type is available. * [Accounts](/key-concepts/accounts) — the full account resource, fields, and lifecycle. * [Individual accounts](/guides/individual-accounts) — end-to-end workflow for creating and using an individual account. * [`POST /accounts`](/api-reference/brale/create-account) — API reference. # Accounts Source: https://docs.brale.xyz/key-concepts/accounts Accounts represent verified entities identified by `account_id`: KYB-verified businesses and KYC-verified individuals, each custodial or transactional. Accounts are represented by `account_id` values, which are assigned to verified entities. If you have an API Key and Secret, your application has its own `account_id`. You can also create additional `account_id` values for your business clients or for individual end users. See [Managed Accounts](/guides/managed-accounts) for how your platform creates and operates accounts for its customers. Four shapes are supported: * **Business, custodial (KYB)** — the existing behavior. The account holds one or more Brale-custodied (`type=internal`) on-chain wallets, can originate transfers, and can hold off-chain bank Addresses. * **Business, transactional (KYB)** — a KYB-verified business that is non-custodial. It has no internal Brale wallet and no stored balance at Brale, and it registers external, self-custody destination addresses. * **Individual, custodial (KYC)** — a natural person verified with KYC whose account receives Brale-custodied (`type=internal`) wallets. The request shape is identical to the individual transactional path; only `account_type` differs. See [Individual accounts](/guides/individual-accounts). * **Individual, transactional (KYC)** — a natural person verified with KYC. The account holds no custody at Brale, cannot originate on-chain transfers, and only receives value through external destination addresses. See [Individual accounts](/guides/individual-accounts). Geographic eligibility for each shape is defined in [Account availability](/coverage/account-availability), the canonical page for U.S. state rules and the approved country list for transactional accounts. Brale does not onboard the business types listed in [Prohibited businesses](/coverage/prohibited-businesses), for either custodial or transactional accounts. Which shape you get is controlled by three optional dimension fields on `POST /accounts`. Omitting them all preserves today's business/KYB behavior. See [Account types](/key-concepts/account-types) for the full matrix. Each custodial `account_id` is associated with one or more custodial (`type=internal`) onchain wallets, which are represented by `address_id` values. Off-chain bank accounts are also represented as Addresses (using `address_id`). Transactional accounts (business or individual) have no internal addresses. The legacy `financial_institution_id` is deprecated — new integrations should use `address_id` and the [Addresses](/key-concepts/addresses) resource instead. The `account_id` is used in the request URL across many Brale API endpoints to scope the request to a specific application or client. To KYB and approve a business account, we collect key details such as business name and EIN. To KYC an individual account, we collect the person's legal name, date of birth, address, and government identifier. For more information, see our Compliance Requirements. If additional details are required, Brale will notify you with the steps to complete verification. > [!TIP] > > Business customers can also self onboard at [https://app.brale.xyz/signup](https://app.brale.xyz/signup). Individual accounts are managed entirely through the API — there is no end-user dashboard for them. ## Account dimensions `POST /accounts` accepts three optional discriminator fields: | Field | Values | Default when omitted | | - | - | - | | `entity_type` | `business`, `individual` | `business` | | `account_type` | `custodial`, `transactional` | `custodial` | | `verification_mode` | `standard`, `reliance` | `standard` | Supported combinations: | `entity_type` | `account_type` | `verification_mode` | Verification | | - | - | - | - | | `business` | `custodial` | `standard` or `reliance` | KYB (default when all three fields are omitted) | | `business` | `transactional` | `standard` or `reliance` | KYB | | `individual` | `custodial` | `standard` or `reliance` | KYC | | `individual` | `transactional` | `standard` or `reliance` | KYC | `verification_mode: "reliance"` is enabled per managing account by Brale and is not self-serve. A caller without reliance enabled receives `422 unsupported_account_combination`. Reliance requires your managing entity to be regulated by a U.S. federal functional regulator. See [Reliance eligibility](/key-concepts/account-types#reliance-eligibility). `verification_mode: "bypass"` is not supported for any combination and also returns `422 unsupported_account_combination`. An unsupported combination is rejected with `422 unsupported_account_combination`. The rejection is permanent, so it is safe for clients to cache the error against an idempotency key. > [!NOTE] > > Omitting all three dimension fields produces exactly today's behavior. Existing integrations that create business accounts do not need to change. For a fuller discussion of when to choose each combination, see [Account types](/key-concepts/account-types). For where each combination is available, see [Account availability](/coverage/account-availability). ## Creating a business account You are required to pass in business information, controller information, and ultimate beneficial owner information. **POST** `https://api.brale.xyz/accounts` ```json Request theme={null} { "business_name": "ABC Company Inc", "ein": "12-3456789", "address": { "street_line_1": "123 Main St", "street_line_2": "Apt C", "city": "Des Moines", "state": "IA", "zip": "50309" }, "phone_number": "2134678902", "email": "mark@example.com", "website": "abccompany.com", "business_controller": { "first_name": "John", "last_name": "Doe", "ssn": "222-22-2222", "dob": "1981-01-25", "email": "john@company.com", "phone_number": "2154688987", "ownership_percentage": "50", "address": { "street_line_1": "456 Elm St", "street_line_2": "Suite 5", // Optional "city": "Chicago", "state": "IL", "zip": "60601" } }, "beneficial_owners": [ // Required for all individuals who own 25% or greater of the business { "first_name": "Bob", "last_name": "Nguyen", "ssn": "888-77-6666", "dob": "1981-11-02", "email": "bob@skylineanalytics.io", "phone_number": "2675550456", "ownership_percentage": "50", "address": { "street_line_1": "301 Chestnut Street", "city": "Philadelphia", "state": "PA", "zip": "19106" } } ], "tos_attestation": { "version": "2025-04-01", "accepted_at": "2025-05-13 20:45:15Z", "ip": "203.0.113.42", // Optional "user_agent": "Mozilla/5.0 ..." // Optional } } ``` ### Presenting the Brale End-User Agreement Partners must show the exact Brale End-User Agreement (EUA) to their end users before calling `POST` `/accounts` and capture consent. The most recent version is hosted at [https://brale.xyz/legal/end-user-agreement](https://brale.xyz/legal/end-user-agreement). ### Business account — Required vs. Optional Fields | Field | Type | Required | Description | | - | - | - | - | | `business.name` | string | Yes | Registered legal name | | `business.website` | string | Yes | Full URL incl. https\:// | | `business.phone` | string | Yes | Accepts multiple common formats: digits only `8134688604`, dashed `813-468-8604`, or with country code `18134688604`. Area code must be valid. | | `business.address.street_line_1` | string | Yes | | | `business.address.street_line_2` | string | No | Apt / Suite / Floor. | | `business.address.city` | string | Yes | | | `business.address.state` | string | US only | Required when the business's country is `US` or omitted, and must be a US state or territory, as an abbreviation or full name (`CA`, `California`, `PR`). Optional and free-form for a non-US business. | | `business.address.zip` | string | Yes | Postal code. Any format is accepted. | | `business.address.country` | string | No | ISO 3166-1 alpha-2 country code of the business. Defaults to `US` when omitted. A non-US business can be created as a transactional account, or as a custodial account if it is regulated and sends `regulatory_profile`; see [Creating a non-US business account](#creating-a-non-us-business-account). | | `business_controller` | object | Yes | One natural person who exercises control. Controllers outside the US are supported; see [Non-US controllers and beneficial owners](#non-us-controllers-and-beneficial-owners). | | `beneficial_owners` | array | Yes | Individuals with ≥25% ownership. Owners outside the US are supported on the same terms as the controller. | | `regulatory_profile` | object | No | Regulated businesses only, for example money services businesses (MSBs) and virtual asset service providers (VASPs). Sending it declares the business regulated; omitting it means the business is not regulated. Required for a non-US custodial business; see [Creating a regulated non-US custodial business account](#creating-a-regulated-non-us-custodial-business-account). | | `regulatory_profile.regulator` | string | When `regulatory_profile` is sent | The authority the business is licensed or registered with, for example `FINTRAC`. Must be non-blank, otherwise the request returns `400 regulator_required`. | | `regulatory_profile.license_number` | string | When `regulatory_profile` is sent | The license or registration number that regulator issued. Must be non-blank, otherwise the request returns `400 license_number_required`. | | `tos_attestation` | object | Yes | | ### Non-US controllers and beneficial owners A controller or beneficial owner outside the US is created through the same `POST /accounts` call. Only the fields that depend on where the person lives change: | Field | US party | Party outside the US | | - | - | - | | `address.country` | `US`, or omitted | ISO 3166-1 code or country name, e.g. `CO` | | `address.state` | Required, must be a US state abbreviation | Optional and free-form; omit it for countries with no state or province | | `address.zip` | `#####` or `#####-####` | Any format | | `ssn` | Required, `###-##-####` | Not accepted | | `identity` | Optional, for a document other than an SSN | Required: the number and the document type | | `phone_number` | US number | Parsed against `address.country`, so a national-format number is accepted | `ssn` and `identity` are mutually exclusive and exactly one is required. Sending `ssn` for a party outside the US returns `400`, because an SSN has no meaning there. Use the [identity type](#identity-types) that matches the document. The business address follows its own `address.country`. For a business outside the US, see [Creating a non-US business account](#creating-a-non-us-business-account). ```json Request theme={null} { "business_name": "ABC Company Inc", "ein": "12-3456789", "address": { "street_line_1": "123 Main St", "city": "Des Moines", "state": "IA", "zip": "50309" }, "phone_number": "2134678902", "email": "mark@example.com", "website": "https://abccompany.com", "business_controller": { "first_name": "Ana", "last_name": "Gomez", "dob": "1985-01-15", "email": "ana@abccompany.com", "phone_number": "3001234567", "ownership_percentage": "40", "identity": { "number": "1020304050", "type": "NATIONAL_ID" }, "address": { "street_line_1": "Calle 93 #11-27", "street_line_2": "Oficina 402", "city": "Bogota", "state": "Cundinamarca", "zip": "110221", "country": "CO" } }, "beneficial_owners": [ { "first_name": "Wei", "last_name": "Chen", "dob": "1979-04-02", "email": "wei@abccompany.com", "phone_number": "+6591234567", "ownership_percentage": "35", "identity": { "number": "S1234567D", "type": "NATIONAL_ID" }, "address": { "street_line_1": "1 Raffles Place", "city": "Singapore", "zip": "048616", "country": "SG" } } ], "tos_attestation": { "version": "2025-04-01", "accepted_at": "2026-05-13T20:45:15Z" } } ``` The Singaporean owner above omits `state` entirely, which is what to do for a country with no subdivision to give. Owners and controllers can be mixed: a US controller sending `ssn` alongside an owner outside the US sending `identity` is a valid request. ### Creating a non-US business account A business in an approved country outside the US can be created as a transactional account. A regulated business in an approved country can also be created as a custodial account by sending a `regulatory_profile`; see [Creating a regulated non-US custodial business account](#creating-a-regulated-non-us-custodial-business-account). See [Account availability](/coverage/account-availability#international-transactional-availability) for the country list. A non-US business without a `regulatory_profile` sent with `account_type: "custodial"` or with `account_type` omitted returns `422 unsupported_jurisdiction`. For a transactional account, send the same business payload with these changes: * `entity_type`: `"business"` * `account_type`: `"transactional"` * `address.country`: the business's ISO 3166-1 alpha-2 country code, for example `GB` * `address.state`: optional and free-form (a state, province, or region) * `address.zip`: any postal-code format * `ein`: required. This is the existing business identifier field, sent the same way as for a US business ```json Request theme={null} { "entity_type": "business", "account_type": "transactional", "business_name": "Example Trading Ltd", "ein": "12345678", "address": { "street_line_1": "10 Example Street", "city": "London", "zip": "EC1A 1BB", "country": "GB" }, "phone_number": "+442071234567", "email": "ops@example.co.uk", "website": "https://example.co.uk", "business_controller": { "first_name": "Oliver", "last_name": "Smith", "dob": "1985-03-14", "email": "oliver@example.co.uk", "phone_number": "+447700900123", "identity": { "number": "123456789", "type": "PASSPORT" }, "address": { "street_line_1": "10 Example Street", "city": "London", "zip": "EC1A 1BB", "country": "GB" } }, "beneficial_owners": [], "tos_attestation": { "version": "2025-04-01", "accepted_at": "2026-05-13T20:45:15Z" } } ``` #### Creating a regulated non-US custodial business account A regulated business (for example, an MSB or a VASP) in one of the [approved countries](/coverage/account-availability#approved-countries-131) can be created as a business custodial account. Send the same payload as the transactional example above with these changes: * `account_type`: `"custodial"`, or omit it * `regulatory_profile.regulator`: the authority the business is licensed or registered with * `regulatory_profile.license_number`: the license or registration number that regulator issued * `verification_mode`: `"standard"`, or `"reliance"` if Brale has enabled reliance for your managing account Both `regulatory_profile` fields are required when the object is sent. Sending `regulatory_profile` declares the business regulated, but it is not approval: verification still checks the license and the supporting evidence listed under [Required documents for a regulated non-US business](#required-documents-for-a-regulated-non-us-business). A regulated business outside the approved countries returns `422 unsupported_jurisdiction`. ```json Request theme={null} { "entity_type": "business", "account_type": "custodial", "verification_mode": "standard", "business_name": "Example Payments Inc", "ein": "123456789", "address": { "street_line_1": "100 King Street West", "city": "Toronto", "state": "ON", "zip": "M5X 1A9", "country": "CA" }, "phone_number": "+14165550123", "email": "ops@example.ca", "website": "https://example.ca", "regulatory_profile": { "regulator": "FINTRAC", "license_number": "M12345678" }, "business_controller": { "first_name": "Emma", "last_name": "Tremblay", "dob": "1984-06-21", "email": "emma@example.ca", "phone_number": "+14165550188", "identity": { "number": "AB123456", "type": "PASSPORT" }, "address": { "street_line_1": "100 King Street West", "city": "Toronto", "state": "ON", "zip": "M5X 1A9", "country": "CA" } }, "beneficial_owners": [], "tos_attestation": { "version": "2025-04-01", "accepted_at": "2026-05-13T20:45:15Z" } } ``` ##### Required documents for a regulated non-US business Brale requires these documents from every regulated non-US custodial business created with `verification_mode: "standard"`. [Stage them](/api-reference/brale/stage-verification-document) and pass the IDs in `doc_submission_ids` on `POST /accounts`, or [link them](/api-reference/brale/link-verification-documents) after the account is created. Until each one is uploaded, [List Verification Documents](/api-reference/brale/list-verification-documents) shows it as `pending_upload`. | `document_kind` | Document | | - | - | | `regulatory_license` | Proof of the business's license or registration with the regulator named in `regulatory_profile` | | `entity_registration` | The business's registration with its company or corporate registry | | `articles_of_incorporation` | Formation documents: articles of incorporation or organization, or the equivalent in the business's country | | `certificate_of_good_standing` | Certificate of good standing, or the equivalent issued in the business's country | An EIN letter is not requested from a business outside the US. Also send the business's most recent independent AML assessment as `aml_program`. If no independent assessment is available, send the full AML program instead. `aml_program` is reviewed with the rest of the application but is not a required document, so it never appears in the required documents list. It can be sent at account creation or linked later. ## Creating an individual account On the individual path, set `entity_type` to `individual` and `account_type` to `custodial` or `transactional`. The request shape is identical for both account types. The `individual` object and `tos_attestation` are required. Business-only fields (`business_name`, `ein`, `website`, `business_controller`, `beneficial_owners`, `regulatory_profile`) must not be sent — they are rejected with `400 unexpected_business_fields`. A custodial individual account receives Brale-custodied (`type=internal`) wallets. A transactional individual account is non-custodial: it receives no custodial wallets and cannot create custodial addresses. Custodial individual accounts are U.S.-only and available in a narrower set of states than business custodial accounts — see [Account availability](/coverage/account-availability). **POST** `https://api.brale.xyz/accounts` ```json Request theme={null} { "entity_type": "individual", "account_type": "transactional", "verification_mode": "standard", "individual": { "first_name": "Jane", "last_name": "Doe", "date_of_birth": "1990-01-01", "email": "jane@example.com", "phone_number": "2125550182", "country": "US", "address": { "street_line_1": "123 Main St", "street_line_2": "Apt 4", "city": "Des Moines", "state": "IA", "zip": "50309" }, "identity": { "number": "222-22-2222", "type": "SSN9" } }, "tos_attestation": { "version": "2025-04-01", "accepted_at": "2026-05-13T20:45:15Z", "ip": "203.0.113.42", "user_agent": "Mozilla/5.0 ..." } } ``` The created account's `name` is derived from the individual's first and last name. ### Individual account — Required vs. Optional Fields | Field | Type | Required | Description | | - | - | - | - | | `entity_type` | string | Yes (for this path) | Must be `individual`. | | `account_type` | string | Yes (for this path) | `custodial` or `transactional`. | | `verification_mode` | string | No | `standard` (default) or `reliance`. Reliance is enabled per managing account by Brale and is not self-serve. | | `individual.first_name` | string | Yes | Legal first name. | | `individual.last_name` | string | Yes | Legal last name. | | `individual.date_of_birth` | string | Yes | ISO date, `YYYY-MM-DD`. | | `individual.email` | string | Yes | Contact email for the individual. | | `individual.phone_number` | string | Yes | Accepts common formats (digits only, dashed, with country code). | | `individual.country` | string | Yes | Top-level jurisdiction used for verification. Separate from `individual.address`. When `US` or `USA`, `individual.address.state` must be a valid US state or territory. | | `individual.address.street_line_1` | string | Yes | | | `individual.address.street_line_2` | string | No | Apt / Suite / Floor. | | `individual.address.city` | string | Yes | | | `individual.address.state` | string | US only | Required when `individual.country` is `US` or `USA`, and must be a US state or territory, as an abbreviation or full name (`CA`, `California`, and `PR` all work). Otherwise the request returns `422 invalid_us_state`. A US territory is a US jurisdiction, not a separate country: send `country: "US"` with the territory in `address.state` (`PR`, `GU`, `AS`, `VI`, `MP`). Optional for non-US individuals, since many countries have no state or province; free-form and not validated when supplied. A blank value is treated as absent. | | `individual.address.zip` | string | Yes | Postal code. Any format is accepted, so non-US postal codes are supported. | | `individual.address.country` | string | No | Optional. The verification jurisdiction comes from the top-level `individual.country`, not from this field. | | `individual.identity.number` | string | Yes | The government identifier value. For US individuals with `type: SSN9`, the 9-digit Social Security number. | | `individual.identity.type` | string | Yes | The kind of identifier submitted. One of the values in [Identity types](#identity-types) below. | | `tos_attestation` | object | Yes | Consent record. See [Presenting the Brale End-User Agreement](#presenting-the-brale-end-user-agreement). | | `doc_submission_ids` | array of strings (KSUID) | No | Optional pre-staged verification documents. Works the same way it does for business accounts. | ### Identity types One identity is submitted per person. Use `SSN9` for a US taxpayer, or the matching document type for someone outside the US. The same values apply wherever an `identity` object is accepted: an individual account, and a business controller or beneficial owner. | Region | Accepted `identity.type` values | | - | - | | United States | `SSN9`, `SSN4`, `DRIVER_LICENSE`, `TAX_ID`, `ALIEN_CARD` | | International | `PASSPORT`, `NATIONAL_ID`, `VOTER_ID`, `RESIDENT_ID`, `DRIVER_LICENSE` | | Nigeria | `BVN`, `NIN`, `NIN_SLIP` | | Ghana | `GHANA_CARD_NUMBER`, `SSNIT` | | Kenya | `KENYA_KRA_PIN` | | Colombia | `COLOMBIA_PPT` | The region column is guidance on which value to send, not a separate validation: any value in this list is accepted. Jurisdiction comes from the country on the person, `individual.country` for an individual account and `address.country` for a controlling party. ### Creating a non-US individual account Non-US individuals in approved countries are supported. See [Account availability](/coverage/account-availability#international-transactional-availability) for the country list. `individual.address.state` is optional and free-form, and the postal code accepts any format, so only the identity type and country change. Omit `state` for countries that have no state or province: ```json Request theme={null} { "entity_type": "individual", "account_type": "transactional", "individual": { "first_name": "Amara", "last_name": "Okafor", "date_of_birth": "1988-07-22", "email": "amara@example.com", "phone_number": "+2348012345678", "country": "NG", "address": { "street_line_1": "12 Awolowo Road", "city": "Lagos", "state": "Lagos", "zip": "101233" }, "identity": { "number": "22222222222", "type": "BVN" } }, "tos_attestation": { "version": "2025-04-01", "accepted_at": "2026-05-13T20:45:15Z" } } ``` ### What a transactional account cannot do > [!WARNING] > > Transactional accounts are inbound by design. The following constraints are enforced, not conventional: > > * **No Brale-custodied wallets, ever.** A transactional account has no automatic custodial wallet at creation and cannot hold internal (`type=internal`) addresses. > * **External addresses are destination-only.** An external address on a transactional account can receive value but cannot be the source of a transfer. > * **The account cannot originate an on-chain transfer.** An attempt returns `422` with type `compatible_address_not_found`. Checking the address balance first does not predict this, because the constraint is about the address role, not funds. > * **Automations from a transactional account may only target external destinations.** A Brale-custodied destination is rejected. The supported shape today is inbound: the account receives value on chain and can be the destination of an on-ramp. See [Transactional Accounts](/guides/transactional-accounts) and [Individual accounts](/guides/individual-accounts) for the end-to-end workflow. ## Common Errors when creating Accounts | HTTP Status | Code | Message | Potential Cause | Fix | | - | - | - | - | - | | `422` | `Unprocessable Entity` | Invalid format for business or controller information | Phone number area code is not valid | Include valid area code | ### Business path errors | HTTP | Error type | Cause | | - | - | - | | `400` | `controlling_party_identity_required` | A controller or beneficial owner sent neither `ssn` nor `identity`. | | `400` | `invalid_controlling_party_identity` | Both `ssn` and `identity` were sent, or `ssn` was sent for a party whose `address.country` is not the US. | | `422` | `invalid_country_code` | An `address.country` that is not a recognized ISO country code or name. | | `422` | `invalid_us_state` | `address.country` is the US and `address.state` is missing, blank, or not a recognized state or territory. | | `400` | `invalid_phone_number` | A `phone_number` that is not valid in that party's `address.country`. | | `400` | `regulator_required` | `regulatory_profile` was sent with `regulator` missing or blank. Permanent; safe to cache against an idempotency key. | | `400` | `license_number_required` | `regulatory_profile` was sent with `license_number` missing or blank. Permanent; safe to cache against an idempotency key. | | `422` | `unsupported_jurisdiction` | Brale does not serve the business's jurisdiction for the requested account type. For example, a non-US business requested a custodial account without a `regulatory_profile`, a regulated business outside the approved countries requested a custodial account, or a US state where the combination is unavailable. Permanent; safe to cache against an idempotency key. See [Account availability](/coverage/account-availability). | ### Individual path errors | HTTP | Error type | Cause | | - | - | - | | `422` | `unsupported_account_combination` | Dimension combination outside the supported rows: any `verification_mode: bypass`, or `verification_mode: reliance` from a caller without reliance enabled. Permanent; safe to cache against an idempotency key. | | `422` | `unsupported_jurisdiction` | Brale does not serve the applicant's jurisdiction for the requested account type (for example, a non-US country for a custodial account, or a state where the combination is unavailable). Permanent; safe to cache against an idempotency key. See [Account availability](/coverage/account-availability). | | `400` | `individual_details_required` | `entity_type: individual` with no `individual` object. | | `400` | `tos_attestation_required` | Individual path with no `tos_attestation`. | | `400` | `unexpected_business_fields` | A business-only field was sent on the individual path (`business_name`, `ein`, `website`, `business_controller`, `beneficial_owners`, `regulatory_profile`). | | `422` | `invalid_us_state` | `individual.country` is `US` or `USA` and `individual.address.state` is missing, blank, or not a recognized state or territory (abbreviation or full name). | | `400` | `invalid_attestation_timestamp` | `tos_attestation.accepted_at` is not an ISO-8601 timestamp. | ## Account Status Brale will review the Account and return a `status` field denoting the customer's verification status (KYB for business accounts, KYC for individual accounts). If the customer is in a pending status, you will need to wait for the customer to be verified before creating or linking addresses or bank accounts. **GET** `https://api.brale.xyz/accounts/:id` ```json Response theme={null} { "id": "2VcUIIsgARwVbEGlIYbhg6fGG57", "name": "ABC Company", "status": "pending", "created": "2023-09-19T14:46:20" } ``` ### Account Statuses | Value | Description | | - | - | | `pending` | Verification is in progress (KYB for business accounts, KYC for individual accounts) | | `complete` | Verification is completed and the account is approved | | `rejected` | The account's verification was rejected | ## Verification Account verification is asynchronous. After creating an account, Brale reviews the submitted information — KYB for business accounts, KYC for individual accounts. The lifecycle and webhook events are identical in shape across both. Two integration patterns are supported. **Proactive (at onboarding):** [Stage documents](/api-reference/brale/stage-verification-document), then either pass `doc_submission_ids` when creating the account or [link them later](/api-reference/brale/link-verification-documents). **Reactive (documents requested during review):** When Brale needs additional documents, subscribe to the `account.verification.documents_required` webhook event (see [Webhook Events](/webhooks/webhook-events#accountverificationdocuments_required)). The payload lists each required document (`document_kind`, `display_name`, `person_label`, `status`). [Stage the files](/api-reference/brale/stage-verification-document), then [link them](/api-reference/brale/link-verification-documents). Alternatively, [poll required documents](/api-reference/brale/list-verification-documents). ``` Create account → Brale reviews → [documents required?] → Yes: webhook account.verification.documents_required → Stage document → Link to account → Brale re-reviews → account.verification.completed (status: complete) or account.verification.rejected (status: rejected) ``` When verification succeeds, Brale emits `account.verification.completed` and the account `status` transitions to `complete`. When it is declined, Brale emits [`account.verification.rejected`](/webhooks/webhook-events#accountverificationrejected) and `status` becomes `rejected`. A decline is terminal. The account will not reach `complete` on its own and uploading further documents does not reopen it, so do not keep polling a rejected account. Contact Brale if you believe a decline is incorrect. ## Using Account ID in every request All resources in the Brale API (Addresses, Financial Institutions, Transfers, Automations, etc.) are scoped to specific accounts. Supply the ID in the path, never in the body. > [!NOTE] > > Every endpoint that contains `{account_id}` must be called by including the > account ID in the path. E.g. `GET` > `https://api.brale.xyz/accounts/2Js1YFqlfxgNqC2KTPEjrWIwKU7/addresses`. Do not > send the account ID in the body or query string. # Addresses Source: https://docs.brale.xyz/key-concepts/addresses Addresses represent onchain wallets and offchain bank accounts, identified by `address_id` for use in transfers. Addresses are represented by an `address_id`, which uniquely identifies a wallet or account for a specific `transfer_type`. > IDs are KSUIDs (27-char, time-sortable); copy/paste carefully. An `address_id` can represent either an onchain wallet or offchain account (ACH, Wire, or FedNow account), depending on the `transfer_type`. Use `address_id` wherever a source/destination is required in Transfers. Brale distinguishes between internal and external addresses using the type field: * `type`: `internal` - An `address_id` associated with wallets managed by Brale on behalf of you or your customers. * `type`: `external` - An `address_id` managed outside of Brale's infrastructure (e.g., user-owned wallet or external account). Whether internal or external, all addresses possess: * `name`: A human readable label * `transfer_types`: The `transfer_types` the address supports. * `status`: The lifecycle state of the address. See [Address lifecycle](#address-lifecycle). ## Address lifecycle Every address has a `status` that represents its lifecycle state: | Status | Description | | - | - | | `pending` | Address is being provisioned (e.g., a custodial wallet is being created on-chain). | | `active` | Address is ready to be used as a source or destination in transfers. | | `archived` | Address is disabled. It cannot be used in new transfers; existing pending transfers may complete. | To be notified instead of polling, subscribe to the [`address.created` and `address.ready` webhook events](/webhooks/webhook-events#address-events). Brale sends `address.created` when a wallet or bank account is added and `address.ready` when it becomes `active`. ### Archive and unarchive (external addresses only) You can change the lifecycle state of an **external** address by sending a `status` update to the [PATCH address endpoint](/api-reference/brale/update-address): * **Archive:** `PATCH /accounts/{account_id}/addresses/{address_id}` with `{ "status": "archived" }` disables the address for new transfers while preserving the historical record. * **Unarchive:** `PATCH /accounts/{account_id}/addresses/{address_id}` with `{ "status": "active" }` restores the address. > [!WARNING] > > Archive and unarchive are supported only for addresses with `type=external`. Internal (custodial) addresses are not archived or unarchived through this endpoint. Archived addresses remain visible in `GET /accounts/{account_id}/addresses` responses with `status: "archived"` but cannot be used as a source or destination in new transfers. See the [PATCH address endpoint reference](/api-reference/brale/update-address) for request and response examples. ## Supported Transfer Types * [Off-chain](/coverage/transfer-types#offchain) rails: `wire`, `ach_credit`, `same_day_ach_credit`, `ach_debit`, `rtp_credit` (no longer available), `fednow_credit` * [On-chain](/coverage/transfer-types#onchain) (examples): `canton`, `base`, `polygon`, `solana`, `stellar`, `xrp_ledger`\ (for full list, see [Coverage: Transfer Types](/coverage/transfer-types)) ## Custodial (Internal) Addresses Brale provides custodial wallets that allow businesses to securely hold and transfer stablecoins on behalf of themselves or their customers. Custodial addresses support all supported blockchains. See [Custodial Accounts](/guides/custodial-accounts). When your customer's Account is onboarded, Brale automatically generates internal custodial addresses on all supported blockchains, so the default wallets are ready to use without any manual setup. You can also provision **additional** custodial wallets on demand via [`POST /accounts/{account_id}/addresses/internal`](/api-reference/brale/create-internal-address). If an address is visible under an account-scoped endpoint but not globally, use the account-scoped endpoint. > [!WARNING] > > Internal (custodial) addresses are only available on custodial accounts, business or individual. Transactional accounts (`account_type: transactional`) do not get an automatic custodial wallet at creation and cannot hold internal (`type=internal`) addresses. Their external addresses are destination-only — they can receive value on-chain but cannot be the source of a transfer. See [Account types](/key-concepts/account-types), [Transactional Accounts](/guides/transactional-accounts), and [Individual accounts](/guides/individual-accounts). Holding multiple internal wallets within a single account lets you segment funds — for example per end-user, per-purpose (operating vs. escrow vs. reserve), or per-business-unit — distinguished by `name`. This replaces the prior workaround of creating separate accounts or organizations just to keep balances apart. ```json Request theme={null} { "name": "Escrow Wallet", "transfer_types": ["ethereum", "polygon"] } ``` ```json 201 Response theme={null} { "id": "3EdBHmAtfm7tct7varYqgAz6iYW", "status": "active", "name": "Escrow Wallet", "address": "0xc109f7016aF02fBF21E9f0d7d50a6A48f5F644Ad", "transfer_types": ["ethereum", "polygon"] } ``` For non-deterministic chains (Spark, Canton, Hedera), the address returns with `status: "pending"` and `address: null`, then transitions following the [Address lifecycle](#address-lifecycle) table above (`pending` → `active`). ## Non-Custodial (External) Addresses Create external addresses to link on-chain wallets or off-chain bank endpoints. ### Two ways to create an external bank address Brale supports two paths for creating an external off-chain bank address. The path you choose determines which `transfer_types` are available. | Capability | Plaid-linked bank account | Direct bank entry | | - | - | - | | `ach_debit` | Supported | Not supported | | `ach_credit` | Supported | Supported | | `rtp_credit` | No longer available | No longer available | | `fednow_credit` | Supported | Supported | | `wire` | Not supported | Supported | > [!WARNING] > > **ACH debit** is only available through the **Plaid-linked bank account** flow. You cannot enable `ach_debit` via Direct bank entry. > [!WARNING] > > **Wire** is only available through the **Direct bank entry** flow. You cannot enable `wire` via the Plaid-linked bank account flow. For a full comparison and guidance on which path to use, see [External bank addresses](/key-concepts/external-bank-addresses). ### Create onchain external address The blockchains the address supports. See [Supported Chains](/coverage/transfer-types) for the full list. Each address is associated with only one blockchain environment (e.g., Solana, EVM). ```json Request theme={null} { "name": "Non-Custodial (External) Wallet", "transfer_types": ["ethereum", "base"], "address": "0x123456789" } ``` ```json Response theme={null} { "id": "2VcUIIsgARwVbEGlIYbhg6fGG57" } ``` ### Create via Direct bank entry Use the [Create a new external address](/api-reference/brale/create-address) endpoint to register a bank account when you already have the bank details. This path supports `wire`, `ach_credit`, `same_day_ach_credit`, and `fednow_credit` (on accounts with FedNow enabled). `rtp_credit` is no longer available. It does **not** support `ach_debit`. **POST** `/accounts/{account_id}/addresses/external` > [!NOTE] > > For Direct bank entry, `bank_address` and `beneficiary_address` are required only when `transfer_types` includes `wire`. They are optional for `ach_credit`, `same_day_ach_credit`, and `fednow_credit`. Omit these fields for addresses without `wire` unless you have accurate values. Do not use placeholder or generic bank addresses. | Field | ACH Credit | Same Day ACH Credit | FedNow Credit (`fednow_credit`) | Wire | | - | - | - | - | - | | `owner` | Required | Required | Required | Required | | `account_number` | Required | Required | Required | Required | | `routing_number` | Required | Required | Required | Required | | `account_type` | Required | Required | Required | Required | | `transfer_types` | Required | Required | Required | Required | | `bank_address` | Optional | Optional | Optional | Required | | `beneficiary_address` | Optional | Optional | Optional | Required | Send `account_number` and `routing_number` as strings so leading zeros are preserved. > [!NOTE] > > Brale validates the format of Direct bank entry details, such as the routing number. Brale does not verify that the account exists or who owns it. An invalid account surfaces later as an ACH return (for example, `R03`) through a [`transfer.failed`](/webhooks/webhook-events#transfer-failed) webhook. See [External bank addresses → Validation](/key-concepts/external-bank-addresses#validation). #### ACH Credit example ```json Request theme={null} { "owner": "Jane Doe", "transfer_types": ["ach_credit", "same_day_ach_credit"], "account_number": "1234567890", "routing_number": "063108680", "account_type": "checking", "name": "Example Bank" } ``` ```json Response theme={null} { "id": "2VcUIIsgARwVbEGlIYbhg6fGG57" } ``` #### FedNow Credit (`fednow_credit`) example ```json Request theme={null} { "owner": "Jane Doe", "transfer_types": ["fednow_credit"], "account_number": "0012345678", "routing_number": "063108680", "account_type": "checking", "name": "Example Bank" } ``` ```json Response theme={null} { "id": "2MhCCIHulVdXrHiEuQDJvnKbSkl" } ``` If the routing number does not participate in FedNow, Brale returns `422` with `type: "fednow_routing_number_not_supported"`. Do not assume `fednow_credit` is added asynchronously. Confirm the Address's `transfer_types` before sending a payout. See [Send FedNow payouts](/guides/fednow-outbound). #### Wire example ```json Request theme={null} { "owner": "Jane Doe", "transfer_types": ["wire"], "account_number": "1234567890", "routing_number": "063108680", "name": "Example Bank", "bank_address": { "street_line_1": "100 Example St", "street_line_2": "Suite 500", "city": "Springfield", "state": "CA", "zip": "90001" }, "beneficiary_address": { "street_line_1": "100 Example St", "street_line_2": "Suite 500", "city": "Springfield", "state": "CA", "zip": "90001" }, "account_type": "checking" } ``` ```json Response theme={null} { "id": "2VcUIIsgARwVbEGlIYbhg6fGG57" } ``` > [!NOTE] > > Need `ach_debit`? Use the [Plaid-linked bank account flow](#create-via-plaid-linked-bank-account) instead. ### RTP Credit (`rtp_credit`) > [!WARNING] > > RTP payouts (`rtp_credit`) ended on October 30, 2026. FedNow (`fednow_credit`) replaces RTP for instant USD payouts. Requests that still send `rtp_credit` return `400 invalid_transfer_types` on address creation or `400 invalid_transfer_type` on transfer creation. To switch, follow [Migrate from `rtp_credit` to `fednow_credit`](/guides/fednow-outbound#migrate-from-rtp_credit-to-fednow_credit). For recipient banks that do not participate in FedNow, use `same_day_ach_credit` or `wire`. ### Update Address transfer types Sometimes you'll want an address to gain new capabilities over time. For example: * You want an EVM onchain address to start supporting an additional chain (e.g., `ethereum` in addition to `base`). * A bank account that initially only supports `wire` is upgraded to also support `ach_credit`. Instead of creating a new Address, you can add new `transfer_types` to an existing Address (and optionally update its `name`). The same [PATCH endpoint](/api-reference/brale/update-address) also supports [archiving or unarchiving](#archive-and-unarchive-external-addresses-only) external addresses. Onchain Address Example - add a new EVM chain Suppose you have a non-custodial EVM wallet Address that currently only supports `base` and want to add `ethereum`: **PATCH** `/accounts/{account_id}/addresses/{address_id}` ```json Request theme={null} { "additional_transfer_types": ["ethereum"] } ``` Response ```json Response theme={null} { "id": "2VcUIIsgARwVbEGlIYbhg6fGG57", "type": "external", "name": "EVM Wallet", "wallet_address": "0x123456789", "transfer_types": ["base", "ethereum"] } ``` Note: All onchain transfer\_types on a single Address must belong to the same blockchain environment (for example, all EVM mainnets). You cannot mix incompatible environments on the same Address. Offchain Address Example - add ACH Credit to a wire-only bank Address Suppose you have an off-chain bank Address that currently only supports wires and now want to update to include ACH and SDACH. **PATCH** `/accounts/{account_id}/addresses/{address_id}` ```json Request theme={null} { "additional_transfer_types": ["ach_credit", "same_day_ach_credit"] } ``` Response ```json Response theme={null} { "id": "35zDQqWZuiITc8emZc3T7viZSAV", "name": "checking 7890", "owner": "Jane Doe", "status": "active", "transfer_types": ["wire", "ach_credit", "same_day_ach_credit"], "created": "2025-11-25T20:53:12.655227Z", "bank_address": { "state": "CA", "zip": "90001", "city": "Springfield", "street_line_1": "100 Example St", "street_line_2": "Suite 500" }, "beneficiary_address": { "state": "CA", "zip": "90001", "city": "Springfield", "street_line_1": "100 Example St", "street_line_2": "Suite 500" }, "account_number": "****7890", "needs_update": false, "account_type": "checking", "last_updated": "2025-11-25T21:35:40.898085Z", "routingNumber": "063108680" } ``` Offchain Address Example - add FedNow to an existing ACH recipient Suppose a bank Address supports `ach_credit` and you want to send FedNow payouts to it. Add `fednow_credit`: **PATCH** `/accounts/{account_id}/addresses/{address_id}` ```json Request theme={null} { "additional_transfer_types": ["fednow_credit"] } ``` Brale merges `fednow_credit` into the existing `transfer_types`, so the Address lists `["ach_credit", "fednow_credit"]`. The Address `id` stays the same. If the routing number does not participate in FedNow, Brale returns `422` with `type: "fednow_routing_number_not_supported"`. #### Updating Address Name You can also use this endpoint to update the human-readable name (alias) of an Address. You can send name on its own, or together with additional\_transfer\_types: ```json Request theme={null} { "name": "My EVM Wallet", "additional_transfer_types": ["base"] } ``` #### Behavior `additional_transfer_types` is a list of transfer types to **add** to this Address. These are **merged** into the address's existing `transfer_types` — you do not need to resend the full existing list. * The values in `additional_transfer_types` are **added** to the Address's existing `transfer_types`. * Existing `transfer_types` are preserved even if you don't include them in the request. Only send the rails you want to add. * Sending a transfer type that is already enabled is idempotent and has no effect. * This endpoint can also be used to update the `name` of the address, a human readable alias. ## Create via Plaid-linked bank account This flow lets your customers securely link their bank accounts via Plaid. Addresses created through Plaid support `ach_debit`, `ach_credit`, and `rtp_credit` (no longer available). This is the **only** path that supports `ach_debit`. For a full comparison of both paths, see [External bank addresses](/key-concepts/external-bank-addresses). ### Overview of the Flow 1. Request a Plaid Link Token from Brale. 2. Initialize Plaid Link in your front-end using the `link_token`. 3. Plaid returns a `public_token` once the user has successfully linked their account. 4. Exchange the `public_token` with Brale to finalize the linking process. 5. Fetch the newly created Address for the end user, then proceed with transfers, etc. ### Request a Plaid Link Token **POST** `https://api.brale.xyz/accounts/{account_id}/plaid/link_token` ```json Request theme={null} { "date_of_birth": "1990-01-01", // Optional "email_address": "user@example.com", // Optional "legal_name": "John Doe", // Optional "phone_number": "+1234567890" // Optional } ``` ```json Response theme={null} { "expiration": "2025-03-23T03:22:34.086Z", "link_token": "link_token_XYZ", "callback_url": "https://api.brale.xyz/exchange_public_token/{unique-id}" } ``` | Parameters | Description | | - | - | | `link_token` | The token you will use to launch Plaid Link in your front-end or mobile app. | | `expiration` | Time at which the `link_token` will no longer be valid. | | `callback_url` | The endpoint to which you should send the `public_token` to finalize the exchange. | ### Render the Plaid Link SDK In your front-end, initialize Plaid Link using the link\_token you received. For production apps, it's recommended you send the public\_token to your own backend (over HTTPS), and then have your backend call our exchange endpoint. That way, you avoid exposing your own platform API keys in the browser. ### Register Address (exchange the public token) Send us the public\_token you received from Plaid Link. Brale securely exchanges it for a Plaid access\_token server-side and creates an Address on the specified Account. **POST** `https://api.brale.xyz/accounts/{account_id}/plaid/register-account` ```json Request theme={null} { "public_token": "public_token_XYZ", "customer_webhook_url": "https://mywebhook.com", "transfer_types": [ "ach_debit", "same_day_ach_debit", "ach_credit", "same_day_ach_credit" ] } ``` ```json Response theme={null} { "address_id": "34yknnMShvDbSW6tQg4HLlN41QO" } ``` After this call completes, our system retrieves the linked bank account and creates an Address for the account the user selected. ### Check for newly created Addresses Shortly after exchanging the public token, the user's bank accounts are idempotently created as an Address which you can query. **GET** `https://api.brale.xyz/accounts/account_id/addresses/{id}` ```json Response theme={null} { "name": "Business Checking Account", "transfer_type": ["ACH", "Wire"], "bank_details": { "owner": "Jane Doe", "account_number": "1234567890", "routing_number": "987654321", "name": "Example Bank", "address": { "street_line_1": "100 Example St", "street_line_2": "Suite 500", "city": "Springfield", "state": "CA", "zip": "90001" }, "account_type": "checking" } } ``` At this point, you can initiate ACH debits or other transactions using these new Addresses. ## Handling Re-Authentication When Plaid signals that an Item requires user action (e.g., credentials changed), Brale can notify you via webhook and you can present a Plaid update Link flow to the user. ### Receive Brale webhook Brale will `POST` a JSON payload when re-auth is required to the `customer_webhook` you provide during the exchange step. ```json Example payload theme={null} { "reason": "Plaid item requires re-authentication", "timestamp": "2025-09-13T17:17:00Z", "event_type": "ITEM_LOGIN REQUIRED", "address_id": "34yxvqP90NfeeYkQGriO6bSfn1K" } ``` ### Check status **GET** `https://api.brale.xyz/accounts/{account_id}/addresses/{address_id}` ```json Response theme={null} { "status": "active", "last_updated": "2025-09-13T17:17:00Z", "address_id": "34yxvqP90NfeeYkQGriO6bSfn1K", "needs_update": true } ``` ### Request an updated link token **POST** `https://api.brale.xyz/accounts/{account_id}/addresses/{address_id}/update-link-token` ```json Response theme={null} { "link_token": "link_token_XYZ" } ``` Open Plaid Link again with this `link_token`. Plaid will streamline the flow and only ask the user to re-authenticate. Run Step 3 again with the new `public_token` (same endpoint). The existing Address is updated in place and retains the same `address_id`. ## Fetching Addresses Retrieve all addresses associated with the authenticated Account. This endpoint returns all addresses (whether internal or external) linked to the Account. **GET** `/accounts/{account_id}/addresses` ```json Response theme={null} { "addresses": [ { "id": "2VcUIonJeVQzFoBuC7LdFT0dRe4", "status": "active", "name": "Internal Custodial Wallet", "type": "internal", "address": "73uyt9HkEqx9bThYXWaUBP67sWsiJEsyJ5rSCieDx5me", "created": "2023-03-07T17:31:37.997502Z", "transfer_types": ["solana", "solana_devnet"] }, { "id": "34yxvqP90NfeeYkQGriO6bSfn1K", "name": "THE BANK OF TAMPA", "owner": "Jane Doe", "status": "active", "transfer_types": ["ach_credit", "same_day_ach_credit"], "created": "2025-11-03T19:57:25.965990Z", "bank_address": { "state": "CA", "zip": "90001", "city": "Springfield", "street_line_1": "100 Example St", "street_line_2": "Suite 500" }, "beneficiary_address": { "state": "CA", "zip": "90001", "city": "Springfield", "street_line_1": "100 Example St", "street_line_2": "Suite 500" }, "account_number": "****7890", "needs_update": false, "last_updated": "2025-11-03T19:57:26.801044Z", "routingNumber": "063108680", "account_type": "checking" }, { "id": "34yGFQf7tP1HJCPAWNGaN4rh4nX", "name": "JPMORGAN CHASE BANK, NA", "owner": "Alberta Bobbeth Charleson", "status": "active", "transfer_types": ["ach_debit"], "created": "2025-11-03T13:58:14.528239Z", "bank_address": null, "beneficiary_address": null, "account_number": "****1111", "needs_update": false, "last_updated": "2025-11-03T13:58:14.528239Z", "routingNumber": "021000021", "account_type": "savings" } ] } ``` ### Fetching an Internal Balance You can query the stablecoin balance of an internal address. You can also query the USD balance of a Plaid-linked bank address with `transfer_type=ach_debit&value_type=USD`. See [Get A Balance](/guides/how-to/get-a-balance). **GET** `/accounts/{account_id}/addresses/address_id/balance?transfer_type=chain&value_type=token` ```json Response theme={null} { "address": { "id": "2VcUIonJeVQzFoBuC7LdFT0dRe4", "address": "0xcdEA458750b9A8D6C4Ba8B3D68CE98Ba2330352A" }, "balance": { "value": "45314.07", "currency": "USD" }, "value_type": "SBC", "transfer_type": "base" } ``` ### Filtering Addresses You can narrow results on `GET /accounts/{account_id}/addresses` with optional query parameters. ## Query parameters | Param | Type | Description | | - | - | - | | `address` | string | Filters results to addresses whose onchain address exactly matches the provided value (e.g., an EVM or Solana address). | | `type` | enum | Filter by address type: `internal` \| `external`. | | `transfer_type` | enum (repeatable) | Filter by one or more transfer types (e.g., `ethereum`, `base`, `solana`, `stellar`). | > [!TIP] > > If you already know the onchain address you are looking for, you can filter the addresses list by passing the exact address in the `address` query parameter. This is intended for exact address matching—partial matches are not supported. ## Examples Find a specific registered onchain address ```bash theme={null} curl --request GET \ --url "https://api.brale.xyz/accounts/${ACCOUNT_ID}/addresses?address=0xcdCfd05B57c6136F090658C123063d12DebaA51D" \ --header "Authorization: Bearer ${ACCESS_TOKEN}" ``` External addresses usable on Solana OR Base **GET** `/accounts/{account_id}/addresses?type=external&transfer_type=solana&transfer_type=base` Internal EVM addresses that support Ethereum **GET** `/accounts/{account_id}/addresses?type=internal&transfer_type=ethereum` # API Concepts Overview Source: https://docs.brale.xyz/key-concepts/api-concepts-overview An overview of accounts, addresses, transfers, automations, and other key resources in the Brale API. * [Accounts](/key-concepts/accounts) - Your customers * [Addresses](/key-concepts/addresses) - A single resource that represents both onchain wallet addresses and offchain fiat accounts. Use `address_id` everywhere a source or destination is needed. * [Financial Institutions (Legacy)](/key-concepts/financial-institutions) - Financial accounts that can receive or send funds. Kept for backwards compatibility - new integrations should use Addresses. * [Transfers](/key-concepts/transfers) - Convert into, out of, and between stablecoins and fiat * [Automations (virtual accounts)](/key-concepts/automations) - A unique bank account number that will send deposited fiat funds to a pre-set onchain address * [Idempotency](/key-concepts/idempotency) - Ensure each POST request is processed only once ## Coming from another provider? | If you're looking for | Use this in Brale | | :- | :- | | Virtual account, named virtual account, deposit account | [Automation](/key-concepts/automations) | | Customer, sub-account, end user | [Account](/key-concepts/accounts) | | Wallet, bank account, external account, counterparty | [Address](/key-concepts/addresses) | | Payment, payout, on/off-ramp transaction | [Transfer](/key-concepts/transfers) | | Sandbox | [Testnet](/overview/sandbox-and-testnet) | # Authentication Source: https://docs.brale.xyz/key-concepts/authentication Authenticate to the Brale API using OAuth2 client credentials to obtain short-lived bearer tokens. The Brale API uses Bearer Authentication and API keys to authenticate your requests. Tokens are short-lived (\~60 minutes); refresh automatically using `expires_in`. ## API Keys Your ability to authenticate to the API is granted through an API Key associated with an Application. Applications are specific to testnet or mainnet access, and have a specific set of permissions. You can create multiple API applications within the dashboard, each assigned specific API scopes. See [Environments](/overview/sandbox-and-testnet) for how testnet and mainnet differ. ## Create API Credentials Create an application on the Settings page in the Dashboard. Brale will make your API key available only once. Please save the key in a secure location. ![Image](https://mintcdn.com/brale/BPXdiJ8ZrIJOuZ2b/images/brale/settings-api-credentials-dark@2x.png?fit=max\&auto=format\&n=BPXdiJ8ZrIJOuZ2b\&q=85\&s=fd19384fafa0c8f09bf955b8d289f763) ## Obtain an Access Token Brale uses OAuth2 with the `client_credentials` grant type for secure access to our APIs. Sending a request to the Auth endpoint will return a bearer token to be used on all subsequent calls. The response will include the number of remaining seconds that the token is valid before a new one will need to be retrieved. The Authorization header uses Basic HTTP Authentication. This requires encoding your `client_id` and `client_secret` into a Base64 format. To generate the Base64 encoded string, you can use a command-line tool like base64 or an online encoder. Ensure that your `client_id` and `client_secret` are separated by a colon `:` and then encoded. This encoded string will be used in the Authorization header. ```shell theme={null} curl --request POST \ --url https://auth.brale.xyz/oauth2/token \ --header 'Authorization: Basic ${BASE_64_OF(client_id:client_secret)}' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data grant_type=client_credentials ``` ## Authenticated Requests Include the bearer token in the Authorization header of your API requests. ```shell theme={null} curl --request GET \ --url https://api.brale.xyz/tokens \ --header 'Authorization: Bearer OiVz67P7emAx0JUJRmYHP4pI-nSlYQn7ivTQE.A-tXeGnuzQBRSjq9QNGQXZ4aRl7Rbm8wY' ``` ## Mutual TLS (mTLS) For customers that want an additional layer of transport security, Brale offers mutual TLS. With standard TLS, only the server proves its identity. With mTLS, your client also presents a certificate, so both sides of the connection are authenticated before any request is processed. This ensures that only clients holding a valid certificate issued for your integration can reach your API endpoint, adding a strong network-level control on top of OAuth2 bearer token authentication. mTLS is enabled per customer. When you request it, Brale provisions a dedicated mTLS-enabled API endpoint for your integration and works with you to create, install, and test client certificates against that endpoint. To get started, request mTLS through Brale support. ## Token Expiration Access tokens are short-lived and expire \~60 minutes after issuance. When a token expires: * API calls will return a `401 Unauthorized` error. * Your application should request a new token using the same client credentials before retrying the request. * Best practice is to refresh automatically before expiry using `expires_in` and to retry idempotently after refresh. # Automations (virtual accounts) Source: https://docs.brale.xyz/key-concepts/automations Configure automatic onramps, offramps, and swaps that trigger when funds are received without manual transfer requests. An Automation is a virtual account: a dedicated bank account number that receives ACH, wire, or FedNow deposits and automatically mints stablecoins to a destination address you choose. With [Branded Automations](#branded-automations), the funding instructions show your customer's verified business or individual name as the beneficiary, so each customer gets their own named virtual account. ## Common Automation Flows * **Fiat to Stablecoin (Onramp)** - Automatically mints stablecoins when a fiat deposit is received. * **Stablecoin to Fiat (Offramp)** - Automatically converts stablecoins to fiat and withdraws to a bank account. *(Coming Q1 2027)* * **Stablecoin to Stablecoin (Swap)** - Automatically swaps one stablecoin for another. *(Coming Q3 2026)* > [!TIP] > > Automations can also be created in the Brale Dashboard on the Automations tab. > [!NOTE] > > A USD Automation mints a Brale-issued stablecoin, such as `SBC`, to its destination. Set `destination.value_type` to a Brale-issued stablecoin. USDC is not a supported Automation destination, so a direct USD → USDC Automation is not available. To deliver USDC, see [Onramp to USDC](#onramp-to-usdc). > [!WARNING] > > Automations on a transactional account (`account_type: transactional`) may only target external destinations. A Brale-custodied destination is rejected. See [Account types](/key-concepts/account-types), [Transactional Accounts](/guides/transactional-accounts), and [Individual accounts](/guides/individual-accounts). ## Onramp Automation with Virtual Accounts Automations provide a unique account number and routing number for wire transfers, ACH deposits, and FedNow credits (on accounts with FedNow enabled). When funds are received, stablecoins are automatically minted to a pre-defined wallet address. Businesses can use automations to direct unique pre-funding coordinates to their customers, which mint stablecoins in a customer's wallet. Here’s what happens end-to-end when you use an onramp automation: 1. **Create the automation**\ You define `source.value_type` as `USD` and set a `destination` wallet and stablecoin (e.g., `SBC` on `solana`) via the API or Dashboard. 2. **Virtual account is provisioned**\ Brale provisions a virtual account and populates `source.funding_instructions` with bank details (routing number, account number, bank name, beneficiary). 3. **Customer sends funds**\ You share those bank details with your customer. They send a wire, ACH, or FedNow payment to the virtual account. No additional API call is required. See [Receive FedNow deposits](/guides/fednow-inbound). 4. **Stablecoins are minted automatically**\ When funds arrive, Brale automatically creates a `Transfer` (USD → stablecoin), mints the stablecoin, and sends it to the `destination.address_id` configured on the automation. 5. **Track activity via Transfers**\ You can reconcile and monitor all onramp activity by querying Transfers for the account:\ `GET /accounts/{account_id}/transfers`.\ Transfers created by automations include `source.payment_details` when Brale has underlying payment metadata to expose. Use this to identify the sender and reconcile inbound fiat payments. See [Transfers — `source.payment_details`](/key-concepts/transfers#sourcepayment_details) for details. ## Creating an Automation Create an automation to receive USD and automatically mint SBC to a Solana wallet. **POST** `https://api.brale.xyz/accounts/{account_id}/automations` ```json Request theme={null} { "name": "XYZ Onramp", "source": { "value_type": "USD" }, "destination": { "address_id": "35LWXNTO2jem13nXCLyciFdi162", "value_type": "SBC", "transfer_type": "solana" } } ``` Set `source.value_type` to `USD` and omit `source.transfer_type`. A USD Automation is not tied to one deposit rail. Its virtual account accepts the inbound rails enabled for it, and responses may return `source.transfer_type: null`. The resulting Transfer records the rail that was actually used in `source.transfer_type`, such as `wire`, `ach_credit`, or `fednow_credit`. Existing USD Automations are expected to accept FedNow without recreation when FedNow is enabled. Automations are created in a `pending` state. Once virtual accounts are created and the automation is ready to use, it transitions to `active`. An `active` Automation is ready to receive deposits. It is not the same as a Transfer reaching `complete`. ```json Response theme={null} { "id": "35kVg1llbsOBYvx9XKr9eOtsD9z", "name": "XYZ Onramp", "status": "pending", "source": { "transfer_type": null, "value_type": "USD" }, "destination": { "transfer_type": "solana", "address_id": "35LWXNTO2jem13nXCLyciFdi162", "value_type": "SBC" }, "updated_at": "2025-11-20T15:56:03.531196Z", "created_at": "2025-11-20T15:56:03.531196Z" } ``` When an automation becomes active, the `source.funding_instructions` object is populated with the virtual account’s bank details (routing number, account number, beneficiary name, etc.). These are the coordinates you share with your customer to fund the automation. ## Onramp to USDC To turn a USD deposit into USDC, combine an Automation with a separate swap Transfer: 1. **Mint a Brale-issued stablecoin with an Automation**\ Create a USD Automation with a Brale-issued stablecoin destination, such as `SBC` on `solana`. See [Creating an Automation](#creating-an-automation). Share the Automation's `source.funding_instructions` with the sender. 2. **Swap to USDC with a Transfer**\ After the mint Transfer reaches `complete`, create a [stablecoin-to-stablecoin swap](/guides/stablecoin-to-stablecoin-swap) Transfer from `SBC` to `USDC`. Brale swaps Brale-issued stablecoins and USDC 1:1 without slippage. Set `destination.address_id` to the wallet that should receive the USDC, such as your customer's external address. **POST** `https://api.brale.xyz/accounts/{account_id}/transfers` ```json Request theme={null} { "amount": { "value": "100", "currency": "USD" }, "source": { "address_id": "35LWXNTO2jem13nXCLyciFdi162", "value_type": "SBC", "transfer_type": "solana" }, "destination": { "address_id": "2VcUIjvaXjMUVAWLT8R9LzEUDed", "value_type": "USDC", "transfer_type": "solana" } } ``` The swap is not part of the Automation. You create one swap Transfer for each amount you want to convert. > [!NOTE] > > Funding instructions belong to the Automation, not to a token. Find them in `source.funding_instructions` from [Retrieve an Automation](#retrieve-an-automation), or on the Automation in the Brale Dashboard Automations tab. The USDC token view in the Dashboard does not show Automations or funding instructions. ## Branded Automations Branded Automations let you select the verified identity (business or individual) shown as the beneficiary on funding instructions for a virtual account. Both custodial and transactional accounts can be used as `brand.account_id`, subject to applicable verification and program eligibility. | Brand account | Beneficiary shown on funding instructions | | :- | :- | | Individual transactional | Individual's legal name and address | | Individual custodial | Individual's legal name and address | | Business transactional | Business's verified name and address | | Business custodial | Business's verified name and address | Add a `brand` object to the create request to control which account name appears on funding instructions: | Field | Where | Type | Description | | :- | :- | :- | :- | | `brand` | Body | object | `{ "account_id": "" }` — your own account or a managed account (business or individual) whose verified identity will appear as the beneficiary on wire and ACH funding instructions. | Behavior: * Set `brand` with the [Create Automation](/api-reference/brale/create-automations) API. Automations created in the Brale Dashboard do not have a brand option, so their funding instructions show Brale as the beneficiary. * If `brand` is omitted, the beneficiary on funding instructions remains Brale. * If `brand.account_id` references a business account, `beneficiary_name` and `beneficiary_address` show the business name and address. * If `brand.account_id` references an individual account, `beneficiary_name` and `beneficiary_address` show the individual's legal name and address. * The account in `/accounts/{account_id}/automations` owns the Automation. `brand.account_id` selects the beneficiary identity, and `destination.address_id` selects the wallet receiving minted stablecoins. Branding does not change ownership, custody, or destination restrictions. Automations owned by transactional accounts must still target external destinations. ```json Request (business brand) theme={null} { "name": "XYZ Onramp", "source": { "value_type": "USD" }, "destination": { "address_id": "2MhCCIHulVdXrHiEuQDJvnKbSkl", "value_type": "SBC", "transfer_type": "solana" }, "brand": { "account_id": "" } } ``` ```json Request (individual brand) theme={null} { "name": "Jane Doe Onramp", "source": { "value_type": "USD" }, "destination": { "address_id": "2MhCCIHulVdXrHiEuQDJvnKbSkl", "value_type": "SBC", "transfer_type": "solana" }, "brand": { "account_id": "" } } ``` When the automation becomes active, `beneficiary_name` and `beneficiary_address` in `source.funding_instructions` reflect that account's verified identity — the business name and address for a business account, or the individual's legal name and address for an individual account. See [Individual accounts](/guides/individual-accounts) for how to create an individual account whose identity can be used as a brand. > [!NOTE] > > With testnet credentials, you can create branded Automations using a business or individual account you have access to, without completing mainnet KYB/KYC or enabling that account for mainnet. Testnet funding instructions contain placeholder banking details and cannot receive real deposits. See [Simulate a testnet deposit](#simulate-a-testnet-deposit) to fund one. Mainnet verification requirements are unchanged. ## Testnet Behavior > [!NOTE] > > Automations created on testnet deployments are fully functional for testing purposes, but no real banking account is provisioned. Instead of live banking coordinates, Brale returns placeholder account details in `source.funding_instructions`. These placeholder coordinates cannot receive real deposits, and no actual funds movement occurs. > > For both branded and unbranded testnet Automations, `source.funding_instructions.account_number` contains the Automation's alphanumeric ID as a placeholder, not a numeric bank account number. This is expected. ### Simulate a testnet deposit To fund a testnet Automation, call [Simulate an Automation deposit](/api-reference/brale/simulate-automation-deposit). Brale creates a simulated inbound ACH, wire, or FedNow payment and runs the normal Automation mint path. Brale does not contact a bank, and no real fiat moves. Requirements: * Testnet API credentials with the `automations:write` and `network:testnet` scopes * An Automation with `status: "active"` * An Automation destination on a testnet chain, such as `base_sepolia` or `solana_devnet` **POST** `https://api.brale.xyz/accounts/{account_id}/automations/{automation_id}/simulations/deposits` ```bash theme={null} curl --request POST \ --url "https://api.brale.xyz/accounts/${ACCOUNT_ID}/automations/${AUTOMATION_ID}/simulations/deposits" \ --header "Authorization: Bearer ${AUTH_TOKEN}" \ --header "Content-Type: application/json" \ --header "Idempotency-Key: $(uuidgen)" \ --data '{ "amount": { "value": "10.00", "currency": "USD" }, "transfer_type": "wire" }' ``` `transfer_type` accepts `ach`, `wire`, or `fednow`. These are simulator inputs, not Transfer rail identifiers. A `fednow` simulation produces a Transfer with `source.transfer_type: "fednow_credit"`. Brale returns `202 Accepted` with the resulting [Transfer](/key-concepts/transfers), including `automation_id`. `202` means the simulated deposit was accepted, not that the mint is complete. After the simulated payment completes: * Brale emits the normal `payment.completed` [webhook event](/webhooks/webhook-events). * Brale mints the stablecoin to the Automation's testnet destination. * The Transfer moves through the normal statuses. Fetch it with `GET /accounts/{account_id}/transfers/{transfer_id}` and read `destination.transaction_id` for the testnet mint. Use a new `Idempotency-Key` for each new simulated deposit. Retrying with the same key and body returns the original response without creating another payment, Transfer, or mint. See [Idempotency](/key-concepts/idempotency). ## Listing Automations for a Customer Retrieve all automations associated with a customer Account. **GET** `https://api.brale.xyz/accounts/{account_id}/automations` ```json Response theme={null} { "automations": [ { "id": "35kVg1llbsOBYvx9XKr9eOtsD9z", "name": "Customer ABC Automation", "status": "active", "source": { "transfer_type": null, "value_type": "USD", "funding_instructions": { "bank_address": "123 Example St, Example City, NY 10001", "beneficiary_address": "456 Sandbox Ave, Suite 100, Example City, IA 50000", "beneficiary_name": "Example Payments Inc", "routing_number": "000111222", "account_number": "100123456789", "bank_name": "Example Bank", "memo": null } }, "destination": { "transfer_type": "solana", "address_id": "35LWXNTO2jem13nXCLyciFdi162", "value_type": "ARB" }, "updated_at": "2025-11-20T15:56:05.017508Z", "created_at": "2025-11-20T15:56:03.531196Z" }, { "id": "35kVg1llbsOBYvx9XKr9eOtsD9z", "name": "Customer XYZ Automation", "status": "active", "source": { "transfer_type": null, "value_type": "USD", "funding_instructions": { "bank_address": "123 Example St, Example City, NY 10001", "beneficiary_address": "25 Main Ave, Suite 100, Example City, IA 50000", "beneficiary_name": "Company ABC", "routing_number": "000111222", "account_number": "000123456789", "bank_name": "Example Bank", "memo": null } }, "destination": { "transfer_type": "solana", "address_id": "35LWXNTO2jem13nXCLyciFdi162", "value_type": "ARB" }, "updated_at": "2025-11-20T15:56:05.017508Z", "created_at": "2025-11-20T15:56:03.531196Z" } ] } ``` ## Retrieve an Automation Retrieve a specific Automation. **GET** `https://api.brale.xyz/accounts/{account_id}/automations/{automation_id}` ```json Response theme={null} { "id": "35kVg1llbsOBYvx9XKr9eOtsD9z", "name": "Customer XYZ Automation", "status": "active", "source": { "transfer_type": null, "value_type": "USD", "funding_instructions": { "bank_address": "123 Example St, Example City, NY 10001", "beneficiary_address": "25 Main Ave, Suite 100, Example City, IA 50000", "beneficiary_name": "Company ABC", "routing_number": "000111222", "account_number": "000123456789", "bank_name": "Example Bank", "memo": null } }, "destination": { "transfer_type": "solana", "address_id": "35LWXNTO2jem13nXCLyciFdi162", "value_type": "ARB" }, "updated_at": "2025-11-20T15:56:05.017508Z", "created_at": "2025-11-20T15:56:03.531196Z" } ``` ## Archive an Automation Automations can be archived when they are no longer needed. Archiving permanently closes the automation's virtual account — no further deposits will be processed — and removes the Stripe billing seat for the automation. > [!WARNING] > > Archived is a terminal state. An archived automation cannot be re-enabled. **PATCH** `https://api.brale.xyz/accounts/{account_id}/automations/{automation_id}` ```json Request theme={null} { "status": "archived" } ``` ```json Response theme={null} { "id": "3D8pEQwvYY7cJXmQkojpZZ9vdr3", "name": "ACE Corp 5", "status": "archived", "source": { "transfer_type": null, "value_type": "USD", "funding_instructions": { "account_number": "488255579773", "beneficiary_name": "Brand Account 2", "bank_address": "8700 Perry Highway Pittsburgh, PA 15237", "beneficiary_address": "7834 pipe drive San Diego, CA 92115", "routing_number": "043087080", "bank_name": "SSB Bank" } }, "destination": { "address_id": "3D8odPs57kcf4kErbi8snLOQg0H", "transfer_type": "base", "value_type": "ACE" }, "updated_at": "2026-06-04T21:13:53.122105Z", "created_at": "2026-05-01T22:10:38.297457Z", "brand": { "account_id": "3D8occi363tmBYDByo0Rr292kBO" } } ``` Required scope: `automations:write` # External bank addresses Source: https://docs.brale.xyz/key-concepts/external-bank-addresses Two paths for creating external off-chain bank addresses: Plaid-linked bank account and Direct bank entry. Brale supports two paths for creating an external off-chain bank address, each unlocking different transfer types. When you create an external bank address, the path you choose determines which `transfer_types` are available for that address. Choose the right path based on the transfer rails you need. ## Comparison | Capability | Plaid-linked bank account | Direct bank entry | | - | - | - | | `ach_debit` | Supported | Not supported | | `ach_credit` | Supported | Supported | | `rtp_credit` | No longer available | No longer available | | `fednow_credit` | Supported | Supported | | `wire` | Not supported | Supported | | Balance lookup | Supported (`USD` only) | Not supported | > [!WARNING] > > **ACH debit** is only available through the **Plaid-linked bank account** > flow. You cannot enable `ach_debit` via Direct bank entry. > [!WARNING] > > **Wire** is only available through the **Direct bank entry** flow. You cannot > enable `wire` via the Plaid-linked bank account flow. ## Which path should you use? * **Plaid-linked bank account** — Use this when you need `ach_debit` or want to provide a Plaid bank-linking experience for your users. This flow uses Plaid Link to securely connect a bank account and supports `ach_debit`, `ach_credit`, and `fednow_credit` (on accounts with FedNow enabled). * **Direct bank entry** — Use this when you already have bank account details (account number, routing number) or need `wire` transfers. This flow supports `wire`, `ach_credit`, `same_day_ach_credit`, and `fednow_credit` (on accounts with FedNow enabled). RTP payouts (`rtp_credit`) ended on October 30, 2026. To pay out over FedNow, include `fednow_credit` when you register the recipient with either path, or add it to an existing address. The recipient's routing number must participate in FedNow. See [Send FedNow payouts](/guides/fednow-outbound). ## Direct bank entry field requirements For Direct bank entry, required fields depend on the transfer types you request. | Transfer type | Required bank details | | - | - | | `ach_credit` | `owner`, `account_number`, `routing_number`, `account_type`, `transfer_types` | | `same_day_ach_credit` | `owner`, `account_number`, `routing_number`, `account_type`, `transfer_types` | | `fednow_credit` | `owner`, `account_number`, `routing_number`, `account_type`, `transfer_types` | | `wire` | All of the above, plus `bank_address` and `beneficiary_address` | If `transfer_types` includes `wire`, wire requirements apply, even if the same address also includes ACH or FedNow rails. For addresses without `wire`, omit `bank_address` and `beneficiary_address` unless you have accurate values—do not enter placeholder or generic bank addresses. ## Account holder type Both paths accept an optional `account_holder_type` (`"individual"` or `"business"`). Brale uses it to choose the ACH SEC code for payouts to the address: `individual` → PPD, `business` → CCD. If you omit it, Brale uses the entity type of the account that owns the address. For Plaid-linked accounts, the holder category reported by Plaid takes precedence when available. You can set it later with the [PATCH address endpoint](/api-reference/brale/update-address) if it was not set at creation; once set, it cannot be changed. ## Recipient date of birth When you create a Direct bank entry address with `POST /accounts/{account_id}/addresses/external`, you can include an optional `date_of_birth` for an individual recipient in `YYYY-MM-DD` format. Brale includes it in the sanctions screening for the new recipient. * `date_of_birth` is accepted when `account_holder_type` is `individual` or not set. * Sending `date_of_birth` with `account_holder_type: "business"` returns `400` `date_of_birth_not_supported`. Brale does not create the address. * A malformed or future date returns `400` `validation_errors`. Error responses do not include the submitted value. * If an existing bank address has no date of birth on file, set it once with the [PATCH address endpoint](/api-reference/brale/update-address). Sending the stored value again succeeds with no change. A different value returns `400` `date_of_birth_already_set`. * Bank address responses return `date_of_birth` masked to the year (for example, `"1990-**-**"`), or `null` when none is on file. Brale never returns the full date. * The deprecated `POST /accounts/{account_id}/financial-institutions/external` endpoint does not accept `date_of_birth` and returns `400` `date_of_birth_not_accepted`. ## Plaid-linked bank account flow This flow uses the Plaid Link SDK to securely connect a bank account in two steps: 1. [Create a Plaid link token](/api-reference/brale/create-plaid-link-token) — Generate a `link_token` to launch Plaid Link in your front-end. 2. [Register the account via Plaid](/api-reference/brale/register-financial-institution-account-via-plaid-and-return-address-id) — Exchange the `public_token` from Plaid to create an `address_id`. For a full walkthrough, see [Key Concepts → Addresses → Create addresses through Plaid](/key-concepts/addresses#create-addresses-through-plaid). After registration, you can check the linked account's USD balance with `GET /accounts/{account_id}/addresses/{address_id}/balance?transfer_type=ach_debit&value_type=USD`. See [Get A Balance](/guides/how-to/get-a-balance#plaid-linked-bank-balance). ## Direct bank entry flow Submit bank account details directly using the Addresses API: * [Create a new external address](/api-reference/brale/create-address) — Addresses without `wire` require `owner`, `account_number`, `routing_number`, `account_type`, and `transfer_types`. Wire-capable addresses also require `bank_address` and `beneficiary_address`. This path supports `wire`, `ach_credit`, `same_day_ach_credit`, and `fednow_credit`. RTP payouts (`rtp_credit`) ended on October 30, 2026. For examples, see [Key Concepts → Addresses → Create via Direct bank entry](/key-concepts/addresses#create-via-direct-bank-entry). ### Validation When you create a Direct bank entry address, Brale validates the format of the bank details. For example, Brale checks that the routing number is valid. Brale does not verify that the account exists, that it is open, or who owns it. * **Bad account details surface after submission.** If the account number does not exist or cannot receive the payment, the receiving bank returns the ACH entry. For example, `R03` means no account was found or the account could not be located. * **Returns arrive as `transfer.failed`.** Brale updates the transfer to `failed` and sends a [`transfer.failed`](/webhooks/webhook-events#transfer-failed) webhook. Read the return code and reason from `failure.ach_return`. See [the transfer `failure` field](/api-reference/brale/get-transfer#failure) for the full schema. * **Returns can arrive late.** An ACH return can arrive after the transfer was already processed. Keep handling `transfer.failed` events for transfers you have already recorded. See [Transfer status lifecycle](/documentation/platform/transfer-timing#transfer-status-lifecycle). * **A return can disable the address.** After a return, Brale can disable the external bank address. New transfers to it fail with `422`. Registering the same bank account again returns `422` `external_address_disabled`. Contact support to re-enable the address. See [Troubleshooting](/documentation/troubleshooting#422-on-transfers-to-a-bank-address-that-received-a-return). If you need the account confirmed before you send funds, use the [Plaid-linked bank account flow](#plaid-linked-bank-account-flow) instead. That flow connects the account through Plaid Link rather than accepting manually entered details. ## Archive and unarchive If you need to stop using a previously linked external bank address without deleting the record, use the [PATCH address endpoint](/api-reference/brale/update-address) to archive it. If the customer later wants to restore the same external address, unarchive it. * Archive: `PATCH /accounts/{account_id}/addresses/{address_id}` with `{ "status": "archived" }` * Unarchive: `PATCH /accounts/{account_id}/addresses/{address_id}` with `{ "status": "active" }` Archive and unarchive apply only to external addresses. See [Address lifecycle](/key-concepts/addresses#address-lifecycle) for details. # Financial Institutions Source: https://docs.brale.xyz/key-concepts/financial-institutions Legacy resource for linking customer bank accounts for withdrawals and deposits. New integrations should use Addresses. Financial Institutions represent your customer's financial accounts (bank accounts) that can be used to withdraw or receive funds. > [!WARNING] > > **Legacy / Deprecated:** The Financial Institutions resource is superseded by Addresses. New integrations should create offchain accounts (ACH, wire) as Addresses and pass their `address_id` to Transfers. Plaid endpoints are now under `/plaid/*`. Existing FI integrations continue to work during a deprecation window. You can add external accounts through: 1. Financial Institutions API 2. Plaid ## Create through the Financial Institutions API Link your customer's bank account by adding it to their Account. **POST** `https://api.brale.xyz/accounts/{account_id}/financial-institutions/external` ```json Request theme={null} { "owner": "Jane Doe", "account_number": "1234567890", "routing_number": "063108680", "beneficiary_address": { "street_line_1": "100 Example St", "street_line_2": "Suite 500", "city": "Springfield", "state": "CA", "zip": "90001" }, "bank_address": { "street_line_1": "100 Example St", "street_line_2": "Suite 500", "city": "Springfield", "state": "CA", "zip": "90001" }, "account_type": "checking" } ``` > [!NOTE] > > You can also add Financial Institutions through the Brale Dashboard settings page at [https://app.brale.xyz/settings](https://app.brale.xyz/settings). ## Fetching Financial Institutions Retrieve details of a linked financial institution by ID. **GET** `https://api.brale.xyz/accounts/{account_id}/financial-institutions/{id}` ```json Response theme={null} { "owner": "Jane Doe", "account_number": "****7890", "routing_number": "063108680", "beneficiary_address": { "street_line_1": "100 Example St", "street_line_2": "Suite 500", "city": "Springfield", "state": "CA", "zip": "90001" }, "bank_address": { "street_line_1": "100 Example St", "street_line_2": "Suite 500", "city": "Springfield", "state": "CA", "zip": "90001" }, "account_type": "checking" } ``` ## Create Financial Institutions through Plaid This guide walks you through how to enable your customers to securely link their bank accounts via Plaid. After linking, the new Financial Institutions can be used for ACH pulls (debits). ### Overview of the Flow 1. Request a Plaid Link Token from Brale. 2. Initialize Plaid Link in your front-end using the `link_token`. 3. Plaid returns a `public_token` once the user successfully links their account. 4. Exchange the `public_token` with Brale to finalize the linking process. 5. Fetch the newly created Financial Institutions for the end user, then proceed with transfers. ### Request a Plaid Link Token **POST** `https://api.brale.xyz/accounts/{account_id}/financial-institutions/plaid/link_token` ```json Request theme={null} { "date_of_birth": "1990-01-01", "email_address": "user@example.com", "legal_name": "John Doe", "phone_number": "+1234567890" } ``` All fields above are optional; supply what you collect from the user. ```json Response theme={null} { "link_token": "link_token_XYZ", "expiration": "2025-03-23T03:22:34.086Z", "callback_url": "https://api.brale.xyz/exchange_public_token/{unique-id}" } ``` | Parameters | Description | | - | - | | `link_token` | The token you will use to launch Plaid Link in your front-end or mobile app. | | `expiration` | Time at which the `link_token` will no longer be valid. | | `callback_url` | The endpoint to which you should send the `public_token` to finalize the exchange. | ### Render the Plaid Link SDK In your front-end, initialize Plaid Link using the link\_token you received. For production apps, it's recommended you send the public\_token to your own backend (over HTTPS), and then have your backend call our exchange endpoint. That way, you avoid exposing your own platform API keys in the browser. ### Register Financial Institution (exchange the public token) Send us the public\_token you received from Plaid Link. Brale securely exchanges it for a Plaid access\_token server-side and creates/updates a Financial Institution on the specified Account. **POST** `https://api.brale.xyz/accounts/{account_id}/financial-institutions/register-account` ```json Request theme={null} { "public_token": "public_token_XYZ", "customer_webhook_url": "https://mywebhook.com" } ``` ```json Response theme={null} { "financial_institution_id": "fi_123456789" } ``` After this call completes, our system retrieves the linked bank account and creates a Financial Institution for the account the user selected. ### Check for newly created Financial Institutions Shortly after exchanging the public token, the user's bank accounts are idempotently created as Financial Institutions which you can query. **GET** `https://api.brale.xyz/accounts/{account_id}/financial-institutions/{id}` ```json Response theme={null} { "name": "Business Checking Account", "transfer_type": ["ACH", "Wire"], "bank_details": { "owner": "Jane Doe", "account_number": "1234567890", "routing_number": "987654321", "name": "Example Bank", "address": { "street_line_1": "100 Example St", "street_line_2": "Suite 500", "city": "Springfield", "state": "CA", "zip": "90001", "country": "US" }, "account_type": "checking" } } ``` At this point, you can initiate ACH pulls or other transactions using these new Financial Institutions. ## Handling Re-Authentication When Plaid signals that an Item requires user action (e.g., credentials changed), Brale can notify you via webhook and you can present a Plaid update Link flow to the user. ### Receive Brale webhook Brale will `POST` a JSON payload when re-auth is required to the `customer_webhook` you provide during the exchange step. ```json Example payload theme={null} { "reason": "Plaid item requires re-authentication", "timestamp": "2025-09-13T17:17:00Z", "event_type": "ITEM_LOGIN REQUIRED", "financial_institution_id": "fi_id123" } ``` ### Check status **GET** `https://api.brale.xyz/accounts/{account_id}/financial-institutions/{fi_id}/status` ```json Response theme={null} { "status": "active", "last_updated": "2025-09-13T17:17:00Z", "financial_institution_id": "fi_id123", "needs_update": true } ``` ### Request an updated link token **POST** `https://api.brale.xyz/accounts/{account_id}/financial-institutions/{fi_id}/update-link-token` ```json Response theme={null} { "link_token": "link_token_XYZ" } ``` Open Plaid Link again with this `link_token`. Plaid will streamline the flow and only ask the user to re-authenticate. Run Step 3 again with the new `public_token` (same endpoint). The existing Financial Institution is updated in place and retains the same `financial_institution_id`. # Idempotency Source: https://docs.brale.xyz/key-concepts/idempotency Use idempotency keys on POST requests to guarantee each operation executes exactly once and prevent duplicate transfers. ## What is an Idempotency Key? When you POST a request (create a transfer, etc.) you include a unique `Idempotency-Key` header. Brale stores that key along with the request signature so if you retry—because the network dropped or timed out—Brale recognizes the duplicate and returns the original response instead of performing the operation twice. The primary goal is to prevent double spends. Without idempotency keys, a retry after a network failure could result in two transfers being created and two debits hitting your customer's account. Keys are required on all `POST` requests and should be reused when retrying the exact same operation. Transient failures — like a server error, a timeout, or an `insufficient_balance` that the customer has since resolved — can all be retried with the same key. Generate a new key only when the request itself is intentionally changing (e.g. fixing a validation error or initiating a second distinct transfer). ```shell theme={null} Idempotency-Key: 123e4567-e89b-12d3-a456-426614174000 ``` ## When is it required? | Endpoint type | Idempotency-Key header | | - | - | | `POST /…` (create) | **Required** | | `GET /…`, `PUT/PATCH /…`, `DELETE /…` | **Do NOT include** | If the header is missing on a POST request, Brale returns `400 Bad Request`. ## Example ```shell theme={null} curl --request POST \ --url "https://api.brale.xyz/accounts/${ACCOUNT_ID}/transfers" \ --header "Authorization: Bearer ${AUTH_TOKEN}" \ --header "Content-Type: application/json" \ --header "Idempotency-Key: $(uuidgen)" \ --data '{ "amount": {"value": "10", "currency": "USD"}, "source": {"value_type": "usd", "transfer_type": "wire"}, "destination": { "address_id": "'"${ADDRESS_ID}"'", "value_type": "sbc", "transfer_type": "base" } }' ``` > [!TIP] > > Most HTTP clients let you generate a UUID at call time or set a default > header. ## Request Responses | Scenario | Status | Body | | - | - | - | | First successful call | `201`: `Created` | Normal JSON response | | Retry with *same* body | `201`: `Created` | Same JSON as first call | | Retry with same key but *different* body | `422`: `Unprocessable Entity` | `{ "This Idempotency-Key can't be reused with a different payload or URI"" }` | ## When to reuse the same key vs. generate a new one **Reuse the same key** when retrying the exact same operation: | Scenario | Action | | - | - | | Network timeout — no response received | Retry with same key | | `5xx` server error | Retry with same key (with backoff) | | `429` rate limited | Retry with same key (with backoff) | | `422 insufficient_balance` — customer has since funded their account | Retry with same key | | `422 brand_account_update_required`: support has fixed the brand account | Retry with same key | | `503 brand_identity_unavailable` | Retry with same key (with backoff) | **Generate a new key** when the request itself is changing: | Scenario | Action | | - | - | | Fixing a validation error before resubmitting | New key | | Intentionally initiating the same operation a second time | New key | | `422 idempotency_key_mismatch` | New key — and fix the request body | ### Insufficient balance `422 insufficient_balance` is a special case. The request is valid — the account simply didn't have enough funds at the time. Once the customer funds their account, they can retry with the **same idempotency key** and the transfer will be processed. Brale's balance check subtracts transfers from the source address that are still `pending` or `processing`. The onchain balance, or the [address balance endpoint](/api-reference/brale/get-address-balance), can show more than is available. If you get `insufficient_balance` while the address appears funded, wait for the in-flight transfers to finish, then retry with the same key. See [Troubleshooting](/documentation/troubleshooting#422-insufficient_balance-when-the-address-shows-enough-funds). This is different from permanent validation failures (e.g. `invalid_account_number`), which will always fail regardless of account state. For those, the request itself must change, which requires a new key. ### Simulated testnet deposits For [Simulate an Automation deposit](/api-reference/brale/simulate-automation-deposit), each new key creates a new simulated deposit. Retrying with the same key and body returns the original `202` response without creating another payment, Transfer, or mint. Reusing the key with a different body or URI returns `422`. ## Troubleshooting | Error | Likely cause | Fix | | - | - | - | | `400`: `Missing Idempotency-Key` | Header omitted on POST | Add a unique key (UUID). | | `422`: `Unprocessable Entity` | Re-used key with different request body | Generate a fresh key per *logical* action. | ## Best Practices * Generate a UUID per logical action. Store it with your job record so retries use the same value. * Do not share keys across different endpoints. Keep one key scoped to one operation. * On `insufficient_balance`, do not generate a new key — store the original key and reuse it after the account is funded. # Transfers Source: https://docs.brale.xyz/key-concepts/transfers Move funds between fiat and stablecoins, swap between stablecoins, and convert stablecoins back to fiat. **Key rules** * All IDs are KSUIDs (27-char, time-sortable); copy/paste carefully. * `address_id` is the universal source/destination primitive (covers wallets and fiat endpoints). * Always send `Idempotency-Key` on create POSTs; never on GETs. Do not reuse a key with a different payload/URI. Each transfer requires both a source and a destination, which can be: * Fiat sources (e.g., a bank account for ACH or wire) * On-chain wallet addresses Each source and destination includes: * `value_type`: The currency being transferred (USD, USDC, USDT, MXN, etc.) * `transfer_type`: The payment rail used (for example, `wire`, `ach_credit`, `fednow_credit`, `polygon`, `solana`) ## Required Fields | Field | Where | Type | Description | | :- | :- | :- | :- | | `account_id` | Path | string | Account whose funds are being moved | | `amount` | Body | object | `{ "value": "10", "currency": "USD" }` | | `source` | Body | object | Origin of funds (fiat rail or on-chain address) | | `value_type` | In `source` / `destination` | string | Currency/token (e.g., USD, USDC, SBC) | | `transfer_type` | In `source` / `destination` | string | Payment rail / chain (wire, ach\_credit, fednow\_credit, polygon, solana) | | `address_id` | In `source` / `destination` | string | Wallet or fiat account sending or receiving value | | `Idempotency-Key` | Header | string | UUID that guarantees exactly-once execution | ## Optional Fields | Field | Where | Type | Description | | :- | :- | :- | :- | | `brand` | Body | object | `{ "account_id": "" }` to select whose verified identity the counterparty sees. For ACH (`ach_debit`, `ach_credit`, `same_day_ach_credit`), it controls the name on bank statement line items. For outbound wires (`destination.transfer_type: "wire"`), it selects the wire sender (originator). For FedNow payouts (`destination.transfer_type: "fednow_credit"`), it selects the sender the receiving bank sees. Not supported for `rtp_credit`. See [Branded Transfers](/guides/2nd-and-3rd-party-transfers). | | `wire_memo` | In `destination` | string | **Wire only.** Memo or payment reference text sent with outbound wire transfers. Only applies when `destination.transfer_type` is `wire`. | | `ach_description` | In `destination` (payouts) or `source` (`ach_debit`) | string | **ACH only.** Short description shown after the sender name on the recipient's bank statement. Use `destination.ach_description` for `ach_credit` and `same_day_ach_credit` payouts, and `source.ach_description` for `ach_debit`. Does not apply to `wire`, `rtp_credit`, or `fednow_credit`. Only the first 10 characters are used. See [What recipients see on ACH](#what-recipients-see-on-ach). | ## Response-only fields ### `source.payment_details` `source.payment_details` appears when Brale has underlying payment metadata to expose for the source leg of a transfer. This is primarily relevant for inbound fiat-funded transfers (e.g., wire or ACH on-ramps, automation-triggered mints). The object is optional and may not be present on every transfer. Wire transfers typically include the fuller set of fields, while ACH transfers may include only a subset — fields may be `null` or omitted depending on available rail metadata. | Field | Type | Description | | :- | :- | :- | | `received_at` | string (ISO 8601) | When the underlying payment was received or posted | | `sender_name` | string \| null | Name of the originating sender, when available | | `sender_bank_name` | string \| null | Originating bank name, when available | | `sender_bank_routing_number` | string \| null | Originating bank routing number, when available | | `payment_reference` | string \| null | Sender-provided payment reference or memo, when available. For inbound wires, Brale may also populate this field from "Instruction for Creditor Agent," which some banks label "Message to receiving bank." This fallback is used only when no existing memo, Originator-to-Beneficiary Information (OBI), or remittance reference is available. Existing reference precedence is preserved. | | `imad` | string \| null | Wire IMAD / tracking identifier, when available | | `trace_number` | string \| null | ACH trace identifier for the underlying payment, when available. Primarily relevant for inbound ACH-funded transfers. | > [!NOTE] > > `source.payment_details` is a response-only field. It is not accepted as input when creating a transfer. Do not confuse it with `destination.wire_memo`, which is a request field for outbound wire transfers. ### `destination.payment_details` `destination.payment_details` appears when Brale has underlying payment metadata to expose for the destination leg of a transfer. This is primarily relevant for outbound wire and ACH transfers (stablecoin-to-fiat offramps and payouts). The object is optional and may be absent immediately after a transfer is created. For outbound wires, the IMAD is assigned by the sending bank and may not be available until after the wire has been submitted. For outbound ACH payouts, the trace number is assigned when the payout posts. Brale populates `destination.payment_details` later when the underlying bank metadata arrives. | Field | Type | Description | | :- | :- | :- | | `imad` | string \| null | Wire IMAD / tracking identifier for the outbound wire, when available | | `trace_number` | string \| null | ACH trace number for the outbound ACH payout (`ach_credit` or `same_day_ach_credit`), when available | | `sent_at` | string (date-time) \| null | When the outbound wire or ACH payout was sent, when available | > [!NOTE] > > `destination.payment_details` is a response-only field. It is not accepted as input when creating a transfer. Do not confuse it with `destination.wire_memo`, which remains a request field for outbound wire transfers. ### `created_by` `created_by` identifies who created the transfer. It is an object with `type` and `id`, or `null` when the creator is not one of the exposed types. Brale returns it on the create, get, and list transfer endpoints, on [Simulate an Automation deposit](/api-reference/brale/simulate-automation-deposit), and in [`transfer.completed` and `transfer.canceled` webhooks](/webhooks/webhook-events#transfer-completed). | `type` | `id` | | :- | :- | | `user` | ID of the user who created the transfer | | `application` | ID of the application that created the transfer | | `automation` | ID of the Automation that created the transfer | | `transfer` | The transfer is an on-chain deposit. `id` is the chain and the deposit's on-chain transaction hash, in the form `-`. It is not a Brale ID. | | `brale` | Brale created the transfer. `id` is `null`. | ```json theme={null} "created_by": { "type": "automation", "id": "3AjRnDClEzwuCKlRioG3OXMS4pH" } ``` Transfer responses keep `automation_id`. For Automation-created transfers, `created_by.id` matches `automation_id`. ## Transfer scenarios: understanding `value_type` and `transfer_type` | Flow | Source | Destination | Description | | - | - | - | - | | Onramp (Fiat → Stablecoin) | USD / wire | SBC / base | Mint SBC on Base funded by wire deposit | | Offramp (Stablecoin → Fiat) | SBC / solana | USD / ach\_credit | Redeem SBC on Solana to USD via ACH | | FedNow payout | USDB / spark | USD / fednow\_credit | Redeem USDB on Spark to USD via FedNow | | FedNow onramp (Automation-created) | USD / fednow\_credit | SBC / solana | Created by Brale when an Automation receives a FedNow credit. You do not create this Transfer. | | Swap (Stablecoin ↔ Stablecoin) | USDC / solana | SBC / solana | 1:1 swap from USDC to SBC with no slippage | | Onramp to USDC (Automation + swap) | SBC / solana | USDC / solana (external address) | Swap SBC minted by a USD Automation to USDC and send it to a recipient wallet. See [Onramp to USDC](/key-concepts/automations#onramp-to-usdc). | | On-chain Payout | USDC / polygon | USDC / polygon (external address) | Pay a recipient wallet | | USDC off-ramp (wire) | USDC / polygon | USD / wire | Offramp USDC to wire | | SBC branded ACH payout | SBC / base | USD / ach\_credit + brand | ACH payout with brand on statement | | SBC branded wire payout | SBC / base | USD / wire + brand | Wire payout with brand as the sender | Every request is scoped to an account, so the path always starts with: **POST** `https://api.brale.xyz/accounts/{account_id}/transfers // The ID of your or your customer's account` If the account is a managed customer account, note that [transactional accounts](/guides/transactional-accounts) cannot originate on-chain transfers. See [Managed Accounts](/guides/managed-accounts) to compare account models. ## USD to Stablecoin (Wire Transfer) Accept a USD deposit to mint stablecoins. **POST** `https://api.brale.xyz/accounts/account_id/transfers` ```shell theme={null} # Generate a fresh Idempotency-Key per logical transfer. Reuse it on retries of the same transfer. curl --request POST \ --url "https://api.brale.xyz/accounts/${ACCOUNT_ID}/transfers" \ --header "Content-Type: application/json" \ --header "Authorization: Bearer ${AUTH_TOKEN}" \ --header "Idempotency-Key: $(uuidgen)" \ --data '{ "amount": { "value": "10", "currency": "USD" }, "source": { "value_type": "USD", "transfer_type": "wire" }, "destination": { "address_id": "'"${ADDRESS_ID}"'", "value_type": "SBC", "transfer_type": "base" } }' ``` When initiating a fiat to stablecoin transfer via wire, we will return a set of `wire_instructions` so you can provide them to your customer. ```json title="Response" theme={null} { "id": "2xNL6PAF0cbcQHyjMQJ2RKRfbD9", "status": "pending", "source": { "value_type": "USD", "transfer_type": "wire" }, "destination": { "address_id": "2VcUIonJeVQzFoBuC7LdFT0dRe4", "value_type": "SBC", "transfer_type": "base" }, "updated_at": "2025-05-20T20:36:48.147281Z", "created_at": "2025-05-20T20:36:48.147281Z", "amount": { "value": "10", "currency": "USD" }, "note": null, "wire_instructions": { // Brale Bank instructions } } ``` ## USD to Stablecoin (ACH Debit) Onramp to your stablecoin by debiting a Plaid connected address. **POST** `https://api.brale.xyz/accounts/account_id/transfers` ```json title="Request" theme={null} { "amount": { "value": "1", "currency": "USD" }, "source": { "address_id": "2VcUIonJeVQzFoBuC7LdFT0dRe4", // address_id is the primitive, even for onchain sources "value_type": "USD", "transfer_type": "ach_debit" }, "destination": { "address_id": "34yGFQf7tP1HJCPAWNGaN4rh4nX", "value_type": "SBC", "transfer_type": "polygon" }, "brand": { "account_id": "34lCJZ2bxbPAzB3ou67Md01veUo" } } ``` Optional `brand` object You can specify which Account’s name appears on the receiver’s bank statement line items for ACH. For outbound wires, `brand` selects the wire sender instead. See [Stablecoin to USD (Wire Offramp or Payout)](#stablecoin-to-usd-wire-offramp-or-payout). For FedNow payouts, `brand` selects the sender the receiving bank sees. See [Branded FedNow payouts](/guides/2nd-and-3rd-party-transfers#branded-fednow-payouts). `brand` is not supported for RTP. Transfer responses return `brand` as `{ "account_id": "" }` when the transfer was branded, or `null` when it was not. See [Confirm the brand on a transfer](/guides/2nd-and-3rd-party-transfers#confirm-the-brand-on-a-transfer). ## Stablecoin to USD (Wire Offramp or Payout) Offramp your stablecoin to USD via wire transfer. **POST** `https://api.brale.xyz/accounts/account_id/transfers` ```json title="Request" theme={null} { "amount": { "value": "1", "currency": "USD" }, "source": { "address_id": "2VcUIonJeVQzFoBuC7LdFT0dRe4", "value_type": "SBC", "transfer_type": "polygon" }, "destination": { "address_id": "34yGFQf7tP1HJCPAWNGaN4rh4nX", "value_type": "USD", "transfer_type": "wire", "wire_memo": "Invoice 1048" } } ``` For outbound wire transfers, you can optionally pass `destination.wire_memo` to include a memo or payment reference for the receiving bank or recipient. ### Branded wire payout To send the wire under a specific sender identity, add the top-level `brand` object. `brand.account_id` is the ID of a verified Account whose identity appears as the wire sender (originator). It is not free-form display text. ```json title="Request" theme={null} { "amount": { "value": "1", "currency": "USD" }, "source": { "address_id": "2VcUIonJeVQzFoBuC7LdFT0dRe4", "value_type": "SBC", "transfer_type": "polygon" }, "destination": { "address_id": "34yGFQf7tP1HJCPAWNGaN4rh4nX", "value_type": "USD", "transfer_type": "wire", "wire_memo": "Invoice 1048" }, "brand": { "account_id": "" } } ``` ACH branding sets the name on the receiver's bank statement line item. Wire branding sets the sender (originator) on the wire. `destination.wire_memo` sets the wire's payment reference separately, so `brand` does not change the memo. Branding does not change which Account funds the transfer or which recipient receives it. If you omit `brand`, the wire is sent unbranded, as before. See [Branded Transfers](/guides/2nd-and-3rd-party-transfers#branded-outbound-wires) for details. ## Stablecoin to USD (ACH) Offramp your stablecoin to USD via ACH Credit. **POST** `https://api.brale.xyz/accounts/account_id/transfers` ```json title="Request" theme={null} { "amount": { "value": "1", "currency": "USD" }, "source": { "address_id": "2VcUIonJeVQzFoBuC7LdFT0dRe4", "value_type": "SBC", "transfer_type": "canton" }, "destination": { "address_id": "34yGFQf7tP1HJCPAWNGaN4rh4nX", "value_type": "USD", "transfer_type": "same_day_ach_credit" } } ``` ### What recipients see on ACH On the recipient's bank statement, an ACH transfer shows the sender name followed by a short description. The sender name is Brale, or the Account set in `brand.account_id`. `ach_description` sets the description. Set `ach_description` on the ACH leg of the transfer: * `destination.ach_description` for payouts (`ach_credit`, `same_day_ach_credit`). * `source.ach_description` for `ach_debit`. `ach_description` does not apply to `wire`, `rtp_credit`, or `fednow_credit`. Only the first 10 characters are used. Use letters, numbers, and spaces. Unsupported characters are removed and longer values are cut to 10 characters. If you omit `ach_description`, the description defaults to `PAYOUT` for payouts and `PAYMENT` for ACH debits. For example, a payout branded as Acme shows `Acme PAYOUT` by default, or `Acme INV1048` with `"ach_description": "INV1048"`. `brand` and `ach_description` are independent. `brand` sets who the payment is from. `ach_description` sets the short reference. Exact display varies by receiving bank. ```json title="Request" theme={null} { "amount": { "value": "1", "currency": "USD" }, "source": { "address_id": "2VcUIonJeVQzFoBuC7LdFT0dRe4", "value_type": "SBC", "transfer_type": "canton" }, "destination": { "address_id": "34yGFQf7tP1HJCPAWNGaN4rh4nX", "value_type": "USD", "transfer_type": "same_day_ach_credit", "ach_description": "INV1048" } } ``` `ach_description` is not currently returned on GET transfer responses. ## Stablecoin to USD (FedNow payout) Send USD over FedNow from stablecoins held in a funded Brale internal Address. The destination bank Address must be `active` and list `fednow_credit` in `transfer_types`. `source.value_type` and `source.transfer_type` must match the token and network held by the source Address. **POST** `https://api.brale.xyz/accounts/{account_id}/transfers` ```json Request theme={null} { "amount": { "value": "1.00", "currency": "USD" }, "source": { "value_type": "USDB", "transfer_type": "spark", "address_id": "2VcUIonJeVQzFoBuC7LdFT0dRe4" }, "destination": { "value_type": "USD", "transfer_type": "fednow_credit", "address_id": "2MhCCIHulVdXrHiEuQDJvnKbSkl" } } ``` `wire_memo` and `destination.payment_details.imad` are wire-only and do not apply to FedNow. Inbound FedNow deposits do not use `POST /transfers`. Brale creates those Transfers from an [Automation](/guides/fednow-inbound). See [Send FedNow payouts](/guides/fednow-outbound) for recipient setup, status tracking, and safe retries. ## Stablecoin Swaps Swap USDC to your own stablecoin (YSBC). All stablecoin swaps are 1:1 with no slippage. **POST** `https://api.brale.xyz/accounts/account_id/transfers` ```json title="Request" theme={null} { "amount": { "value": "100", "currency": "USD" }, "source": { "address_id": "2VcUIonJeVQzFoBuC7LdFT0dRe4", "value_type": "USDC", "transfer_type": "solana" }, "destination": { "address_id": "2VcUIonJeVQzFoBuC7LdFT0dRe4", "value_type": "YSBC", "transfer_type": "solana" } } ``` ## Stablecoin Payout Process stablecoin payouts to one or many external addresses (EOAs). **POST** `https://api.brale.xyz/accounts/account_id/transfers` ```json title="Request" theme={null} { "amount": { "value": "500", "currency": "USD" }, "source": { "address_id": "2VcUIonJeVQzFoBuC7LdFT0dRe4", "value_type": "SBC", "transfer_type": "solana" }, "destination": { "address_id": "2xNL6PAF0cbcQHyjMQJ2RKRfbD9", "value_type": "SBC", "transfer_type": "solana" } } ``` ## Retrieving a single transfer **GET** `https://api.brale.xyz/accounts/{account_id}/transfers/{transfer_id}` ### On-chain transfer response ```json title="Response" theme={null} { "id": "30NoY6R1Ns2tRBcx1Kb16SnuXOW", "status": "complete", "amount": { "value": "100.00", "currency": "USD" }, "created_at": "2025-07-25T21:03:55.364134Z", "updated_at": "2025-07-25T21:05:07.779018Z", "source": { "address_id": "2MhCCIHuK4TGVgT9a4loQzJx1rj", "value_type": "USDC", "transfer_type": "polygon", "transaction_id": "0xdd5646ea…" }, "destination": { "address_id": "2O6asmNK4TGVgT9a4loQzJx1rjH", "value_type": "USDC", "transfer_type": "polygon", "transaction_id": "0xdd5646ea…" }, "note": null } ``` ### Wire-funded transfer response (with `payment_details`) For inbound wire-funded transfers, the response includes `source.payment_details` with metadata about the underlying payment. This helps you identify the sender and reconcile inbound fiat payments. ```json title="Response" theme={null} { "id": "3C0QcbwVywOGyU2HBSenljm5dhU", "status": "complete", "failure": null, "source": { "transfer_type": "wire", "financial_institution_id": "3AjRnbvj9Mq6crkviJv08d0KLB2", "value_type": "USD", "payment_details": { "received_at": "2026-04-07T00:01:24.514000Z", "sender_name": "Originator Name", "sender_bank_name": "JPMorgan Chase Bank", "sender_bank_routing_number": "000000123", "payment_reference": "Simulated Wire", "imad": "20260406XOIZJDPP953495" } }, "destination": { "transaction_id": "0x41c66f1d059dad7a55a854e157a1b5b938780c77ba5296e434a02dfb1727fe5e", "transfer_type": "base", "address_id": "3ARaM0I93ObWOIFDIztsTx4TAsp", "value_type": "ARB" }, "updated_at": "2026-04-07T00:01:44.824834Z", "created_at": "2026-04-07T00:01:27.756775Z", "note": null, "amount": { "value": "102.0", "currency": "USD" }, "automation_id": "3AjRnDClEzwuCKlRioG3OXMS4pH", "created_by": { "type": "automation", "id": "3AjRnDClEzwuCKlRioG3OXMS4pH" } } ``` ### Transfers from simulated testnet deposits [Simulate an Automation deposit](/api-reference/brale/simulate-automation-deposit) returns the normal Transfer representation. There is no separate simulation resource. The Transfer includes `automation_id`, and `source.transfer_type` records the simulated rail. A `fednow` simulation produces `source.transfer_type: "fednow_credit"`. `funding_simulated` is an optional response field. When present and `true`, it indicates that the source funding was simulated. Do not infer `false` when the field is absent. `automation_id` identifies the Automation that created the Transfer, but does not by itself indicate whether the deposit was simulated. ```json title="Response" theme={null} { "id": "3F1kP8vQ2mZrT6yN0bXcW4hJd7s", "status": "complete", "failure": null, "amount": { "value": "10.00", "currency": "USD" }, "source": { "value_type": "USD", "transfer_type": "wire" }, "destination": { "address_id": "3ARaM0I93ObWOIFDIztsTx4TAsp", "value_type": "SBC", "transfer_type": "base_sepolia", "transaction_id": "0x41c66f1d059dad7a55a854e157a1b5b938780c77ba5296e434a02dfb1727fe5e" }, "note": null, "automation_id": "3AjRnDClEzwuCKlRioG3OXMS4pH", "created_by": { "type": "automation", "id": "3AjRnDClEzwuCKlRioG3OXMS4pH" }, "created_at": "2026-09-29T17:00:00.000000Z", "updated_at": "2026-09-29T17:00:05.000000Z" } ``` ### Outbound wire transfer response (with `destination.payment_details`) For outbound wire transfers (e.g., stablecoin-to-fiat offramps via wire), the response may include `destination.payment_details` with the wire IMAD once Brale has received the underlying bank metadata. The object may be absent immediately after the transfer is created and appear later when the wire is submitted. ```json title="Response" theme={null} { "id": "3D1RcbwVywOGyU2HBSenljm5dhV", "status": "complete", "source": { "address_id": "2VcUIonJeVQzFoBuC7LdFT0dRe4", "value_type": "SBC", "transfer_type": "solana", "transaction_id": "5K8…" }, "destination": { "address_id": "34yGFQf7tP1HJCPAWNGaN4rh4nX", "value_type": "USD", "transfer_type": "wire", "wire_memo": "Invoice 1048", "payment_details": { "imad": "20260406XOIZJDPP953495" } }, "updated_at": "2026-04-07T00:05:12.102000Z", "created_at": "2026-04-07T00:01:27.756775Z", "amount": { "value": "100.00", "currency": "USD" }, "note": null } ``` ### ACH-funded transfer response (with `payment_details`) ACH transfers may include only a subset of `payment_details` fields. Fields may be `null` or omitted depending on available rail metadata. ```json title="Response (source excerpt)" theme={null} { "source": { "transfer_type": "ach_debit", "value_type": "USD", "payment_details": { "received_at": "2026-04-07T02:10:06.921000Z", "sender_name": "Test ACH Sender", "sender_bank_name": null, "sender_bank_routing_number": "721160232", "payment_reference": null, "imad": null, "trace_number": "021000029876543" } } } ``` ### Outbound ACH transfer response (with `destination.payment_details`) For outbound ACH payouts (`ach_credit` or `same_day_ach_credit`), the response may include `destination.payment_details` with the ACH trace number and send time once the payout posts. The object may be absent before then. ```json title="Response (destination excerpt)" theme={null} { "destination": { "address_id": "34yGFQf7tP1HJCPAWNGaN4rh4nX", "value_type": "USD", "transfer_type": "ach_credit", "payment_details": { "trace_number": "021000029876543", "sent_at": "2026-04-07T00:04:58.000000Z" } } } ``` > [!NOTE] > > `transaction_id` is a response-only field on `source` and `destination`. It contains the on-chain transaction hash or off-chain payment reference once the leg has been submitted to the network. It is not present in create requests. You can use `transaction_id` as a [query-parameter filter](#filtering-by-transaction_id) on the list transfers endpoint. ## Listing transfers **GET** `https://api.brale.xyz/accounts/{account_id}/transfers` Returns a paginated list of transfers for the account. You can narrow results with query-parameter filters. ### Filters All filters are **exact match** and **case-sensitive**. When you combine multiple filters they apply with **AND** semantics. | Parameter | Filters by | Format | Example | | :- | :- | :- | :- | | `automation_id` | Automation that created the transfer | KSUID | `2MhCCIHuK4TGVgT9a4loQzJx1rj` | | `value_type` | Currency / token on source or destination | Canonical API id | `USDC`, `SBC`, `usd` | | `transfer_type` | Blockchain on source or destination. Fiat rails such as `wire` and `fednow_credit` are not supported as filter values. | Canonical API id | `polygon`, `base`, `solana` | | `transaction_id` | On-chain transaction hash or off-chain payment reference | String (exact match) | `0xdd5646ea…` | > [!NOTE] > > `value_type` and `transfer_type` use canonical identifiers listed on the [Value types](/coverage/value-types) and [Transfer types](/coverage/transfer-types) coverage pages. If no transfers match, the API returns `200` with an empty `transfers` array. #### Filtering by `transaction_id` `transaction_id` is an exact-match filter. Pass the full on-chain transaction hash or off-chain payment reference as the value. The filter matches against the `transaction_id` field on either the `source` or `destination` leg of each transfer. * The value must match exactly (case-sensitive, no partial matches). * If no transfer matches, the API returns `200` with an empty `transfers` array. * You can combine `transaction_id` with other filters (`transfer_type`, `value_type`, `automation_id`). Multiple filters use **AND** semantics — only transfers matching every filter are returned. ```bash theme={null} curl "https://api.brale.xyz/accounts/${ACCOUNT_ID}/transfers?transaction_id=" \ -H "Authorization: Bearer ${AUTH_TOKEN}" ``` ### Example: filter by automation ```bash theme={null} curl "https://api.brale.xyz/accounts/${ACCOUNT_ID}/transfers?automation_id=2MhCCIHuK4TGVgT9a4loQzJx1rj" \ -H "Authorization: Bearer ${AUTH_TOKEN}" ``` ### Example: FedNow deposits for an automation The `transfer_type` filter accepts blockchain values only, not fiat rails such as `fednow_credit`. List the Automation's Transfers, then keep those where `source.transfer_type` is `fednow_credit`. ```bash theme={null} curl "https://api.brale.xyz/accounts/${ACCOUNT_ID}/transfers?automation_id=35kVg1llbsOBYvx9XKr9eOtsD9z" \ -H "Authorization: Bearer ${AUTH_TOKEN}" ``` ### Example: combined filters ```bash theme={null} curl "https://api.brale.xyz/accounts/${ACCOUNT_ID}/transfers?value_type=USDC&transfer_type=polygon&page[size]=10" \ -H "Authorization: Bearer ${AUTH_TOKEN}" ``` ### Pagination | Parameter | Description | Default | | :- | :- | :- | | `page[size]` | Results per page (1–100) | 25 | | `page[after]` | Cursor for forward pagination | — | | `page[prev]` | Cursor from `pagination.prev` | — | Only one of `page[after]` or `page[prev]` may be present per request. Filters persist across pages — you do not need to resend them when paging. Use the `pagination.next` value from the previous response as the `page[after]` query parameter in the next request. ```bash theme={null} # First page curl "https://api.brale.xyz/accounts/${ACCOUNT_ID}/transfers?page[size]=50" \ -H "Authorization: Bearer ${AUTH_TOKEN}" # Next page curl "https://api.brale.xyz/accounts/${ACCOUNT_ID}/transfers?page[size]=50&page[after]=${cursor}" \ -H "Authorization: Bearer ${AUTH_TOKEN}" ``` ## Reconciliation best practices * Store transfer `id`, `Idempotency-Key`, timestamps, status, and any provider references. * For inbound fiat-funded transfers, check `source.payment_details` to identify the sender and match payments. Wire transfers typically include `sender_name`, `sender_bank_name`, and `imad`; ACH transfers may include only a subset of these fields. * For outbound wire transfers, check `destination.payment_details.imad` to record the wire's IMAD for reconciliation and tracing. It may be absent immediately after the transfer is created and populated later once Brale has the underlying bank metadata. * For outbound ACH payouts, check `destination.payment_details.trace_number` to record the ACH trace number for reconciliation and tracing. It may be absent until the payout posts. * For FedNow, correlate inbound deposits with `automation_id` and check `source.transfer_type` on each Transfer. Do not expect wire `imad` or ACH `trace_number` on FedNow legs. Payment IDs from `payment.completed` are not Transfer IDs. * Poll with backoff; avoid tight loops. Reuse the same `Idempotency-Key` when retrying the same logical transfer. * On 401, refresh the token and retry idempotently. * Production integrations can subscribe to [`transfer.completed`](/webhooks/webhook-events#transfer-completed) and [`transfer.failed`](/webhooks/webhook-events#transfer-failed) [webhooks](/webhooks/overview) to receive signed events when a transfer reaches `complete` or `failed`. Use polling or retrieval endpoints for development, fallback handling, and reconciliation. * For outbound domestic wires and outbound ACH payouts, do not treat `complete` as final for reconciliation. The same transfer can later emit `transfer.failed` if the payout is returned. Retrieve the latest transfer when you need to confirm its current state. * To track refunds, subscribe to [`transfer.refunding`](/webhooks/webhook-events#transfer-refunding) and [`transfer.refunded`](/webhooks/webhook-events#transfer-refunded), or use `transfer.*`. Track payout failure and refund progress separately. ## Transfer Statuses | Value | Description | | - | - | | `pending` | The transfer has been submitted but is not yet in progress. This may be due to Brale waiting for funds (e.g., fiat-to-stablecoin wire transfer) or an ongoing review. | | `processing` | The transfer is in progress. | | `complete` | Brale has finished processing the transfer and sent funds to the destination. For outbound domestic wires and outbound ACH payouts, a later bank return can still move the transfer to `failed`. | | `canceled` | The transfer has been canceled. Brale can cancel a transfer only before it is submitted to the payment rail. A `pending` status does not guarantee that cancellation is still possible. | | `failed` | An issue prevented the transfer from succeeding, or the payout was returned. This includes outbound domestic wires and outbound ACH payouts returned after the transfer was `complete`. Manual intervention may be required. | | `refunding` | A refund for the transfer has started. The refund is not complete yet. | | `refunded` | The refund for the transfer has completed. | ### Transfer Flow A successful transfer progresses from `pending` → `processing` → `complete`. Transfers include an `updated_at` field denoting the last time the status updated. Outbound domestic wires can be returned by the receiving bank. When Brale recognizes the return, it updates the original transfer to `failed`: * **Return received before completion:** `processing` → `failed` * **Return received after completion:** `complete` → `failed` Brale does not use a separate `returned` status. A returned wire has `status: "failed"` and a [`failure`](/api-reference/brale/get-transfer#failure) object with `type: "wire_return"`. Keep accepting [`transfer.failed`](/webhooks/webhook-events#transfer-failed) events for transfers you already recorded as `complete`. See [Transfer status lifecycle](/documentation/platform/transfer-timing#transfer-status-lifecycle) for details. Outbound ACH payouts (`ach_credit` and `same_day_ach_credit`) follow the same pattern. The receiving bank can return an ACH payout after the transfer reached `complete`. Brale then updates the original transfer to `failed`, emits `transfer.failed`, and sets a `failure` object with `type: "ach_return"` and the return code in `failure.ach_return`. A `failed` status means the payout failed or was returned. It does not mean a refund has started or completed, and not every failed or returned payout is refunded. When Brale refunds a transfer, `refunding` means the refund has started and `refunded` means it has completed. Brale emits [`transfer.refunding`](/webhooks/webhook-events#transfer-refunding) and [`transfer.refunded`](/webhooks/webhook-events#transfer-refunded) for these stages. ## Transfer Limits * Standard and Same-Day ACH transfers are generally limited to \$50,000 per transaction, including deposits and payouts. * FedNow transfers are limited to \$10,000 per transaction. The limit applies to both FedNow payouts (`destination.transfer_type: "fednow_credit"`) and FedNow-funded onramps into an [Automation](/guides/fednow-inbound). * Wire transfers do not have a standard hard maximum. Wires above \$3,000,000 may require additional review and processing time. * Stablecoin transfers do not have a standard per-transaction maximum but may be subject to account-specific controls, compliance review, available liquidity, and blockchain network constraints. Limits may vary by account, payment rail, transaction direction, jurisdiction, and risk profile. Contact Brale before initiating a larger transfer or if you need account-specific limits. # API MCP Source: https://docs.brale.xyz/mcp/api Connect your MCP-compatible LLM client to the Brale API server for live endpoint access on testnets and mainnets. The Brale API MCP Server exposes the Brale API directly into your MCP-compatible LLM client. Make API calls, explore endpoints, and build integrations with up-to-date, live access to our production APIs for both testnets and mainnets. Most LLMs have unique terminology and steps to add an MCP server, yet they all require a display name, the remote server URL, and your credentials to authenticate. | **Field** | **Value** | | - | - | | **Name** | Brale API | | **Remote MCP Server URL** | `https://mcp.brale.xyz/` | | **Authentication** | OAuth | # Authentication The Brale API MCP uses OAuth to authenticate. You'll need a `client_id` and `client_secret`, which you can generate by creating an API app in your [Brale.xyz account](https://brale.xyz). **To get your credentials:** 1. Sign in to your [Brale.xyz account](https://brale.xyz) 2. Navigate to \*\*Settings → API \*\* 3. Create a new API app by clicking **Create Application** 4. Give your Application a **Name**, choose the **Network** as *mainnet or testnet* 5. Copy the generated `Client ID `and `Client Secret` > [!WARNING] > > Store your `Client Secret` somewhere safe — it won't be shown again after creation. # Setup ## Hosted MCP Server The steps to add an MCP server vary by client. In general, look for an **MCP**, **Tools**, or **Integrations** section in your client's settings and add a new remote server entry using the name and URL above. > [tab] Claude Desktop > > 1. Open Claude Desktop and navigate to **Settings → Connectors** > 2. Click **Add custom connector** at the bottom of the section > 3. Enter the Remote MCP Server URL: `https://mcp.brale.xyz/` > 4. Click **Advanced settings** and enter your **OAuth Client ID** and **OAuth Client Secret** > 5. Click **Add** to save > > Once added, enable the connector from the **Search and Tools** menu in your chat interface. > > > [!NOTE] > > > > Custom Connectors are available on Pro, Max, Team, and Enterprise plans. > [tab] Cursor > > Go to **Settings → MCP** and add a new server entry: > > ```json theme={null} > { > "name": "Brale API MCP", > "url": "https://mcp.brale.xyz/", > "env": { > "CLIENT_ID": "your_client_id", > "CLIENT_SECRET": "your_client_secret" > } > } > ``` > [tab] Windsurf > > Open `~/.codeium/windsurf/mcp_config.json` and add: > > ```json theme={null} > { > "mcpServers": { > "Brale API MCP": { > "url": "https://mcp.brale.xyz/", > "env": { > "CLIENT_ID": "your_client_id", > "CLIENT_SECRET": "your_client_secret" > } > } > } > } > ``` > > Restart Windsurf to apply the changes. # Documentation MCP Source: https://docs.brale.xyz/mcp/documentation Connect your MCP-compatible LLM client to the Brale documentation server for inline developer reference. Our Documentation MCP Server exposes our developer documentation directly into your MCP-Compatible LLM client. Query our developer documentation directly in your workflow, and write code with latest information. Most LLMs have unique terminology and steps to add an MCP server, yet they all require a display name and the remote server URL. | **Field** | **Value** | | - | - | | **Name** | Brale Documentation | | **Remote MCP Server URL** | `https://docs.brale.xyz/mcp` | ## Example questions Once connected, your LLM client can search Brale guides and API reference pages. For example: * "How do I receive a FedNow deposit and mint stablecoins?" Inbound FedNow uses an Automation's funding instructions. You do not create a Transfer per deposit. See [Receive FedNow deposits](/guides/fednow-inbound). * "How do I send a FedNow payout?" Outbound FedNow uses `POST /accounts/{account_id}/transfers` with `destination.transfer_type: "fednow_credit"`. See [Send FedNow payouts](/guides/fednow-outbound). * "How do I simulate a FedNow deposit on testnet?" See [Simulate an Automation deposit](/api-reference/brale/simulate-automation-deposit). An index of all pages is available at `https://docs.brale.xyz/llms.txt`. # Developer tools Source: https://docs.brale.xyz/overview/developer-tools OpenAPI spec, API playground, MCP servers, and llms.txt to help you integrate with the Brale API faster. > [card] OpenAPI spec > > Import the [live spec](https://api.brale.xyz/openapi) or the [versioned spec](https://github.com/Brale-xyz/commons/blob/main/Resources/api-brale-xyz.yaml) into Postman, Insomnia, Bruno, or a code generator. > [card] [API playground](/api-reference/brale/list-accounts) > > Try any endpoint from the API reference. > [card] [API MCP](/mcp/api) > > Call the Brale API from Claude, Cursor, or Windsurf. > [card] Documentation MCP and llms.txt > > Let coding agents read the docs with the [Documentation MCP](/mcp/documentation) and [llms.txt](https://docs.brale.xyz/llms.txt). # Introduction Source: https://docs.brale.xyz/overview/introduction Overview of the Brale API for issuing, moving, and managing stablecoins across fiat and blockchain rails. Brale makes it easy to issue, move, and manage stablecoins. Using our services you can create your own stablecoin and leverage our APIs to power on/off ramps, automate payouts, or move stablecoins across ecosystems. Brale's APIs support Brale, Paxos, and Circle-issued stablecoins. Stablecoins created with Brale are usable for various use cases and can be swapped at any time with other popular stablecoins. Brale offers two complementary APIs: * `api.brale.xyz` - for secure, programmable stablecoin orchestration * `data.brale.xyz` - for public token metadata and price feeds Whether you're a fintech, exchange, or payment platform, Brale provides the infrastructure to build stablecoin-enabled products. ## Stablecoin Movement & Account Management (api.brale.xyz) * Secure, authenticated API for orchestrating stablecoin workflows * Requires OAuth2 bearer token (client credentials) * Used for: issuing stablecoins, transfers, custody, linking banks, and more ## Stablecoin Market Data (data.brale.xyz) * Public, read-only API for metadata and price feeds * No authentication required * Used for: accessing token metadata (e.g. SBC), prices, and definitions ## Key Features * [Issuance](/guides/stablecoin-issuance): issue fiat-backed stablecoins managed by Brale * [Transfers](/key-concepts/transfers): move stablecoins or fiat between accounts, chains, and token types * [Onramp](/guides/fiat-to-stablecoin-onramp): convert fiat to stablecoins * [Offramp](/guides/stablecoin-to-fiat-offramp): convert stablecoins to fiat * [Swap](/guides/stablecoin-to-stablecoin-swap): convert between stablecoins or chains * [Payouts](/guides/stablecoin-payouts): leverage stablecoins for instant payouts * [Managed Accounts](/guides/managed-accounts): create and operate verified custodial or transactional accounts for your end customers * [Webhooks](/webhooks/overview): receive signed, real-time events when transfers or payments complete, so your integration can avoid continuous status polling ## Getting Started * [Quick Start](/overview/quick-start): zero to first transfer (creds → token → `account_id` → `address_id` → POST transfer → track status) * [API Concepts](/key-concepts/api-concepts-overview) describes REST resources (Accounts, Addresses, Financial Institutions, Transfers, etc.) * [Guides](/guides/stablecoin-issuance) outline common workflows you can build with the API ## API Tools * [Postman Collection](https://www.postman.com/brale-xyz/brale-api/collection/37w2ro3/brale-api-v2-0): Explore and test all Brale API requests * [OpenAPI Spec](https://github.com/Brale-xyz/commons/blob/main/Resources/api-brale-xyz.yaml): Import into your preferred tools or IDE * [Commons](https://github.com/Brale-xyz/commons): Open source tools for building with Brale * The OpenAPI and Postman collection are the source of truth for paths, enums, and identifiers. Keep examples aligned to them. ## Support Please [schedule time](https://brale.xyz/contact) with our team or reach out to us at [support@brale.xyz](mailto:support@brale.xyz) to set up a shared Slack or Telegram channel to collaborate. # Quick Start - Your First Brale Stablecoin Transfer Source: https://docs.brale.xyz/overview/quick-start Get authenticated, grab your IDs, and create your first stablecoin transfer in minutes. Before you start: you need a Brale account ([sign up](https://app.brale.xyz/signup), KYB started/completed), an API client created in the Dashboard for the right environment (testnet or mainnet), and `curl` or any HTTP client. **1. Authenticate** Create an API client in the Dashboard (keys shown once — store securely). Clients are environment-scoped; use testnet while integrating, mainnet when ready to move value. See [Environments](/overview/sandbox-and-testnet) for how testnet and mainnet differ. Tokens expire in \~60 minutes; refresh using `expires_in` before expiry. ```bash theme={null} CLIENT_CREDENTIALS=$(echo -n "${CLIENT_ID}:${CLIENT_SECRET}" | base64) curl --request POST \ --url https://auth.brale.xyz/oauth2/token \ --header "Authorization: Basic ${CLIENT_CREDENTIALS}" \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data grant_type=client_credentials ``` Expected: `access_token`, `token_type` (Bearer), `expires_in`. **2. Get your account\_id** Use the bearer token from the previous step. The response contains your `account_id` — a 27-character KSUID. ```bash theme={null} curl --request GET \ --url https://api.brale.xyz/accounts \ --header "Authorization: Bearer ${AUTH_TOKEN}" ``` **3. Get your custodial address\_id** Brale auto-creates internal wallets (EVM, Solana, Stellar) when your account is provisioned. List them: ```bash theme={null} ACCOUNT_ID="2awTHmuEhx4Rjhqf9bWhSJNeNq2" # replace with your account_id curl --request GET \ --url "https://api.brale.xyz/accounts/${ACCOUNT_ID}/addresses" \ --header "Authorization: Bearer ${AUTH_TOKEN}" ``` Pick the `address_id` whose `transfer_types` array includes the chain you want to land on (e.g., `base`). > [accordion] Supported transfer\_types (mainnet/testnet) > > **Mainnet (onchain):** `ethereum`, `base`, `solana`, `canton`, `stellar`, `polygon`, `avalanche`, `optimism`, `arbitrum`, `hedera`, `celo`, `kusama`, `spark`, `xrp_ledger` > > **Offchain:** `wire`, `ach_debit`, `ach_credit`, `same_day_ach_credit`, `rtp_credit` (no longer available) > > **Testnet:** `base_sepolia`, `canton_testnet`, `amoy`, `sepolia`, `solana_devnet`, `verona_testnet`, `tempo_testnet` **4. Create your first transfer** Example: offchain wire → onchain stablecoin on Base. Always send a unique `Idempotency-Key` per logical transfer and reuse it on retries. > Examples use **SBC** as the placeholder stablecoin. Replace it with your own stablecoin ticker (e.g., USDGLO, USDB). See [Value Types](/coverage/value-types) for the full list. ```bash theme={null} ADDRESS_ID="2bFGkrQ7mPp8dCvBNx1TqWYz5kj" # replace with your address_id curl --request POST \ --url "https://api.brale.xyz/accounts/${ACCOUNT_ID}/transfers" \ --header "Content-Type: application/json" \ --header "Authorization: Bearer ${AUTH_TOKEN}" \ --header "Idempotency-Key: $(uuidgen)" \ --data '{ "amount": { "value": "10", "currency": "USD" }, "source": { "value_type": "USD", "transfer_type": "wire" }, "destination": { "address_id": "'"${ADDRESS_ID}"'", "value_type": "SBC", "transfer_type": "base" } }' ``` > **Testnet?** Use testnet transfer\_types instead: `base_sepolia`, `solana_devnet`, `sepolia`, etc. **5. Track transfer status** Transfers may complete asynchronously. For real-time production updates, subscribe to [`transfer.completed`](/webhooks/webhook-events#transfer-completed) and [`transfer.failed`](/webhooks/webhook-events#transfer-failed) [webhooks](/webhooks/overview) so Brale can send your application a signed event when the transfer reaches `complete` or `failed`. You can also poll or retrieve transfers with the Transfers API for development, fallback handling, and reconciliation: poll `GET /accounts/{account_id}/transfers` with pagination. Store `id`, idempotency key, timestamps, status, and references for reconciliation. On 401, refresh the token and retry with the same `Idempotency-Key`. ## Common errors * `403 network_not_supported`: Using a testnet client/token on mainnet (or vice versa). Create a client for the target environment. * `404 compatible_address_not_found`: Address doesn't support the `transfer_type`, typo in `address_id`, or wrong `account_id` in the path. * `400 missing Idempotency-Key`: All POST creates must include `Idempotency-Key`. ## Next steps * See Guides for on/off-ramps, swaps, payouts. * For production hardening, review Troubleshooting and Coverage (transfer\_types, value\_types). * Next: [tools to speed up your integration](/overview/developer-tools). # Environments: testnet and mainnet Source: https://docs.brale.xyz/overview/sandbox-and-testnet Use Brale's testnet environment to build and test stablecoin integrations without moving real funds. ## Testnet and mainnet Brale has two environments, testnet and mainnet. There is no separate sandbox. The environment is set by the API application you create in **Dashboard → Settings → API**. Testnet credentials work only with testnets. Mainnet credentials move real value. Both environments use the same hosts: `auth.brale.xyz` for tokens and `api.brale.xyz` for API calls. On testnet, use testnet `transfer_type` values such as `base_sepolia` or `solana_devnet`. No real fiat moves. To test inbound fiat, use [Simulate an Automation deposit](/api-reference/brale/simulate-automation-deposit). Store your `client_id` and `client_secret` in environment variables or a secrets manager. Never put them in code. ## Testnet Brale provides a testnet environment for non-production requests. Only testnets (Sepolia, Solana Devnet, Base Sepolia, etc.) are supported. Blockchain mainnets (Ethereum, Solana, etc.) are not supported in testnet. Real fiat movement is not supported in testnet. Brale does not contact a bank or move real funds. You can still test fiat-funded flows: testnet mints and burns skip the fiat leg, and you can [simulate inbound ACH and wire deposits](#4-simulate-a-deposit-into-a-testnet-automation) into testnet Automations. See the full set of [supported blockchain networks](/coverage/transfer-types#onchain). ## 1. Create API Credentials scoped to Testnet Create an application on the Settings page in the Dashboard. ![Image](https://mintcdn.com/brale/BPXdiJ8ZrIJOuZ2b/images/brale/settings-api-credentials-dark@2x.png?fit=max\&auto=format\&n=BPXdiJ8ZrIJOuZ2b\&q=85\&s=fd19384fafa0c8f09bf955b8d289f763) Select `Testnet` as Network and enable all resources. ![Image](https://mintcdn.com/brale/BPXdiJ8ZrIJOuZ2b/images/brale/settings-api-create-application-dark@2x.png?fit=max\&auto=format\&n=BPXdiJ8ZrIJOuZ2b\&q=85\&s=488d723e7bd65baec2292866d1e1d320) ## 2. Mint Tokens on Testnets When you submit a mint on testnet, we skip the fiat leg and immediately mint on-chain. This simulates an onramp transaction and acts as a faucet to mint tokens for other flows (payouts, etc.). **POST** `https://api.brale.xyz/accounts/account_id/transfers` ```json Request theme={null} { "amount": { "value": "100", "currency": "USD" }, "source": { "value_type": "USD", "transfer_type": "wire" }, "destination": { "address_id": "2VcUIonJeVQzFoBuC7LdFT0dRe4", "value_type": "SBC", "transfer_type": "solana_devnet" } } ``` ## 3. Burn Tokens on Testnets When you submit a redemption on testnet, we immediately burn on-chain and skip the fiat payout. This simulates an offramp transaction. No real wire, ACH, or FedNow payment is sent from testnet. **POST** `https://api.brale.xyz/accounts/account_id/transfers` ```json Request theme={null} { "amount": { "value": "100", "currency": "USD" }, "source": { "address_id": "2VcUIonJeVQzFoBuC7LdFT0dRe4", "value_type": "SBC", "transfer_type": "solana_devnet" }, "destination": { "value_type": "USD", "transfer_type": "wire" } } ``` ## 4. Simulate a deposit into a testnet Automation Testnet [Automations](/key-concepts/automations) return placeholder banking coordinates that cannot receive real deposits. To test the full Automation flow, simulate an inbound ACH, wire, or FedNow deposit. Brale runs the normal Automation, Transfer, and testnet mint flow and emits the normal `payment.completed` [webhook event](/webhooks/webhook-events). Your testnet API credentials need the `automations:write` and `network:testnet` scopes. **Create an Automation with a testnet destination** ```bash theme={null} curl --request POST \ --url "https://api.brale.xyz/accounts/${ACCOUNT_ID}/automations" \ --header "Authorization: Bearer ${AUTH_TOKEN}" \ --header "Content-Type: application/json" \ --header "Idempotency-Key: $(uuidgen)" \ --data '{ "name": "Testnet Onramp", "source": { "value_type": "USD" }, "destination": { "address_id": "'"${ADDRESS_ID}"'", "value_type": "SBC", "transfer_type": "base_sepolia" } }' ``` **Wait until the Automation is active** ```bash theme={null} curl --request GET \ --url "https://api.brale.xyz/accounts/${ACCOUNT_ID}/automations/${AUTOMATION_ID}" \ --header "Authorization: Bearer ${AUTH_TOKEN}" ``` Continue when the response has `"status": "active"`. **Simulate the deposit** ```bash theme={null} curl --request POST \ --url "https://api.brale.xyz/accounts/${ACCOUNT_ID}/automations/${AUTOMATION_ID}/simulations/deposits" \ --header "Authorization: Bearer ${AUTH_TOKEN}" \ --header "Content-Type: application/json" \ --header "Idempotency-Key: $(uuidgen)" \ --data '{ "amount": { "value": "10.00", "currency": "USD" }, "transfer_type": "ach" }' ``` Brale returns `202 Accepted` with the resulting Transfer, including `automation_id`. `transfer_type` accepts `ach`, `wire`, or `fednow`. A `fednow` simulation produces a Transfer with `source.transfer_type: "fednow_credit"`. See [Receive FedNow deposits](/guides/fednow-inbound#test-on-testnet). **Fetch the Transfer** ```bash theme={null} curl --request GET \ --url "https://api.brale.xyz/accounts/${ACCOUNT_ID}/transfers/${TRANSFER_ID}" \ --header "Authorization: Bearer ${AUTH_TOKEN}" ``` When `status` is `complete`, `destination.transaction_id` holds the testnet mint transaction. See [Simulate an Automation deposit](/api-reference/brale/simulate-automation-deposit) for validation errors and idempotency behavior. ## Follow the Quick Start Guide Follow [Quick Start - Your First Stablecoin Transfer](/overview/quick-start) for next steps to get deeper with the Brale API. # Stablecoin Calculators Source: https://docs.brale.xyz/tools/calculators/stablecoin-calculators Estimate stablecoin program revenue and USDC payout costs. Choose a calculator to model stablecoin program revenue and payout costs. Have a scenario we don't cover? Reach out to [support@brale.xyz](mailto:support@brale.xyz). > [card] [Stablecoin revenue (early program)](https://brale.xyz/calculator/stablecoin-revenue-early-program) > > Estimate revenue and fees for early-stage stablecoin programs. > [card] [Stablecoin revenue (mature program)](https://brale.xyz/calculator/stablecoin-revenue-mature-program) > > Model revenue at scale with higher volumes and richer fee scenarios. > [card] [USDC payout costs](https://brale.xyz/calculator/usdc-payout-cost) > > Calculate payout costs for USDC flows across supported rails. # Webhooks Source: https://docs.brale.xyz/webhooks/overview Receive signed webhook events from Brale when transfers and payments complete. ## 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 will `POST` 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 * Prompt customers to upload KYB documents when verification review requires them * Trigger downstream workflows without polling * Build real-time dashboards for operations and treasury teams ## How webhooks work At a high level: 1. You create a webhook subscription for your Brale account. 2. Brale returns a `sharedSecret` one time. 3. You store the `sharedSecret` securely. 4. When a subscribed event occurs, Brale sends an HTTPS `POST` to your endpoint. 5. Your application verifies the HMAC signature using the exact raw request body. 6. Your application processes the event idempotently. 7. Your endpoint returns a `2xx` response to acknowledge delivery. ``` Brale transfer completes ↓ Brale builds event payload ↓ Brale signs raw JSON body with your shared secret ↓ Brale POSTs the event to your webhook URL ↓ Your app verifies, deduplicates, and updates state ``` ## Webhook subscription API Webhook subscriptions are managed under a Brale account: ``` /accounts/{account_id}/webhooks ``` | Method | Path | Purpose | | - | - | - | | GET | `/accounts/{account_id}/webhooks/event_types` | Discover supported event types | | POST | `/accounts/{account_id}/webhooks` | Create a webhook subscription | | GET | `/accounts/{account_id}/webhooks` | List webhook subscriptions | | GET | `/accounts/{account_id}/webhooks/{subscription_id}` | Get one webhook subscription | | PATCH | `/accounts/{account_id}/webhooks/subscriptions/{subscription_id}` | Update a webhook subscription | | DELETE | `/accounts/{account_id}/webhooks/subscriptions/{subscription_id}` | Archive a webhook subscription | | GET | `/accounts/{account_id}/webhooks/deliveries` | List delivery attempts | ### Create a subscription ```bash theme={null} curl -X POST https://api.brale.xyz/accounts/{account_id}/webhooks \ -H "Authorization: Bearer {access_token}" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: {uuid}" \ -d '{ "url": "https://your-app.example.com/webhooks/brale", "events": ["transfer.completed", "transfer.failed"] }' ``` > [!NOTE] > > The `sharedSecret` is returned only once when the subscription is created. Store it immediately. List and get subscription endpoints do not return the secret again. ## Choose the subscription owner The `account_id` in `POST /accounts/{account_id}/webhooks` identifies the account that owns the subscription. It is not necessarily the account each event concerns. * A subscription owned by a **managing account** receives subscribed events for the managing account and the accounts it manages. * A subscription owned by a **managed account** receives subscribed events for that account only. If you onboard customers as [managed accounts](/guides/managed-accounts) or [individual accounts](/guides/individual-accounts), you don't need a subscription or signing secret per customer. One subscription on your managing account covers them. Coverage comes from the management relationship. It is not an org-wide catch-all, and there is no scope parameter to set. Separate Brale accounts that don't share a managing account need their own subscriptions. | Your setup | Subscribe on | | - | - | | One Brale account | That account | | Platform with managed customer accounts | The managing account | | You only want one managed customer's events | That managed account | To identify which account an event concerns, read `data.account_id` from the payload. See [Managing accounts and event fan-in](/webhooks/webhook-events#managing-accounts-and-event-fan-in). For testnet and mainnet, create webhook subscriptions in the account/environment you want to receive events from. If you have separate testnet and mainnet accounts, create separate subscriptions for those accounts. ## Supported events Use the event type discovery endpoint to see currently available events: ``` GET /accounts/{account_id}/webhooks/event_types ``` Current supported events: | Event type | When it fires | Recommended use | | - | - | - | | `transfer.created` | A transfer is created | Record transfer intents and surface in-flight state to customers | | `transfer.completed` | A transfer reaches `complete` status | Replace polling transfer status; update ledgers, balances, and customer-facing status | | `transfer.canceled` | A transfer is canceled | Reverse provisional ledger entries and notify customers of cancellations | | `transfer.failed` | A transfer reaches `failed` status | React to permanent transfer failures (e.g., ACH returns or returned outbound wires, including wires returned after `complete`); inspect `data.failure` for details | | `transfer.refunding` | A refund process starts | Mark a refund as in progress. This event does not confirm that the refund is complete. | | `transfer.refunded` | A refund completes | Mark the refund as complete and update ledgers and customer-facing status | | `payment.completed` | A payment reaches `complete` status | React to completed fiat payments, including inbound wire, ACH, and FedNow deposits. Payment IDs are not Transfer IDs, and this event does not confirm the stablecoin mint. | | `address.created` | A wallet or bank account is added to an account, including a custodial wallet that is still `pending` | Sync new addresses into your records. Do not send transfers to the address until it is ready. | | `address.ready` | A wallet or bank account reaches `active` status and can be used in transfers | Enable the address as a transfer source or destination | | `account.verification.documents_required` | KYB review requires one or more documents | Notify customers to upload documents; see [Stage a Verification Document](/api-reference/brale/stage-verification-document) and [Link Verification Documents](/api-reference/brale/link-verification-documents) | | `account.verification.completed` | Account verification passes | Enable downstream flows when account `status` becomes `complete` | | `account.verification.rejected` | Account verification is declined | Stop onboarding flows when account `status` becomes `rejected`. This state is terminal, and uploading more documents does not reopen it. See [`account.verification.rejected`](/webhooks/webhook-events#accountverificationrejected) | Use `transfer.completed` when your integration is tracking Brale Transfer objects and wants to know when a transfer has completed. Subscribe to `transfer.failed` as well, or use `transfer.*`. An outbound domestic wire can be returned after `transfer.completed`, and Brale reports the return with [`transfer.failed`](/webhooks/webhook-events#returned-outbound-wires). To track refunds, subscribe to `transfer.refunding` and `transfer.refunded`, or use `transfer.*`. `transfer.failed` reports that a payout failed or was returned. It does not mean a refund has started or completed. Not every failed or returned payout is refunded. See [Refund events](/webhooks/webhook-events#refund-events). ### Wildcard subscriptions The `events` array on create and update subscription requests accepts namespace wildcards of the form `.*`. For example, subscribing to `transfer.*` gives you a single subscription that receives every event in the transfer family (`transfer.created`, `transfer.completed`, `transfer.canceled`, `transfer.failed`, `transfer.refunding`, `transfer.refunded`, and any future `transfer.*` events). Wildcards work for every major event family — not just transfers: * `transfer.*` — all transfer events * `payment.*` — all payment events * `address.*` — all address events (`address.created` and `address.ready`) * `account.*` — all account events, including nested types like `account.verification.completed`, `account.verification.rejected`, and `account.verification.documents_required` You can combine wildcards and concrete event types in the same subscription (e.g., `["transfer.*", "payment.completed"]`). New events added to a family in the future are automatically delivered to any matching wildcard subscription. Example create request using a wildcard: ```json theme={null} { "url": "https://your-app.example.com/webhooks/brale", "events": ["transfer.*"] } ``` See [Create Webhook Subscription — Wildcard event subscriptions](/api-reference/brale/create-webhook-subscription#wildcard-event-subscriptions) for the full reference. ## Requirements Your webhook endpoint must: * Be publicly reachable over HTTPS * Accept `POST` requests * Accept `Content-Type: application/json` * Read the raw request body before parsing JSON * Verify the `x-request-signature-sha-256` header * Return a `2xx` response quickly * Deduplicate events by event `id` and/or `idempotency-key` ## Local development For local development, expose your local server with a tool like ngrok or Cloudflare Tunnel. Example local tunnel: ```bash theme={null} ngrok http 4000 ``` If ngrok gives you: ``` https://example.ngrok-free.app -> http://localhost:4000 ``` your webhook URL might be: ``` https://example.ngrok-free.app/webhooks/brale ``` # Quickstart: receive your first webhook Source: https://docs.brale.xyz/webhooks/quickstart Set up an HTTPS endpoint, get an access token with webhook scopes, and create a subscription to receive your first Brale webhook delivery. ## 1. Create an HTTPS webhook endpoint Create a route in your application that can receive Brale webhook deliveries. Example endpoint: ``` POST https://your-app.example.com/webhooks/brale ``` For local development: ```bash theme={null} ngrok http 4000 ``` Then use: ``` https:///webhooks/brale ``` ## 2. Get an access token with webhook scopes Your OAuth application or API credential needs webhook scopes (these are provisioned by default when you make a credential set). | Scope | Required for | | - | - | | `webhooks:read` | List event types, list subscriptions, inspect delivery logs | | `webhooks:write` | Create, update, and archive webhook subscriptions | For subscription creation, use a credential with both `webhooks:read` and `webhooks:write`. ## 3. Discover available event types ```bash theme={null} curl https://api.brale.xyz/accounts/{account_id}/webhooks/event_types \ -H "Authorization: Bearer {access_token}" ``` Example response: ```json theme={null} { "event_types": [ { "event_type": "payment.completed", "summary": "Emitted when a payment reaches complete status." }, { "event_type": "transfer.completed", "summary": "Emitted when a transfer (token order) reaches complete status." }, { "event_type": "transfer.failed", "summary": "Emitted when a transfer (token order) reaches failed status." } ] } ``` ## 4. Create a webhook subscription Create a subscription for your endpoint and event types. > [!NOTE] > > **Choose your `account_id`.** The `account_id` in the path is the account that owns the subscription. If you onboard customers as managed accounts, use your managing account ID. One subscription covers events for the managing account and its managed accounts, so you don't need one per customer. Register it before onboarding customers so it is ready for asynchronous verification events. See [Choose the subscription owner](/webhooks/overview#choose-the-subscription-owner). ```bash theme={null} curl -X POST https://api.brale.xyz/accounts/{account_id}/webhooks \ -H "Authorization: Bearer {access_token}" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: {uuid}" \ -d '{ "url": "https://your-app.example.com/webhooks/brale", "events": ["transfer.completed"] }' ``` Example response: ```json theme={null} { "id": "3D3jNzs2r7Sf78qtYpRe1biscLG", "sharedSecret": "base64url-encoded-secret", "events": ["transfer.completed"], "url": "https://your-app.example.com/webhooks/brale", "status": "active" } ``` Important: * `sharedSecret` is returned only once. * Store it immediately in a secrets manager or encrypted environment variable. * Do not log it. * Do not expose it to browsers or client-side code. * If you lose it, archive the subscription and create a new one. ### Example: managed-account onboarding To receive verification events for customers you onboard, create the subscription on your managing account with `account.*`: ```bash theme={null} curl -X POST https://api.brale.xyz/accounts/{managing_account_id}/webhooks \ -H "Authorization: Bearer {access_token}" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: {uuid}" \ -d '{ "url": "https://your-app.example.com/webhooks/brale", "events": ["account.*"] }' ``` Each event's `data.account_id` identifies the account the event concerns, such as the managed customer whose verification completed. Use it to route the event to the right customer record. ## 5. Verify incoming webhooks Every webhook includes: ``` x-request-signature-sha-256: idempotency-key: content-type: application/json ``` Notes: * Header names may appear with different capitalization depending on your framework/server. Treat them as case-insensitive. * The `Idempotency-Key` you send to the management API is **not** the same concept as the `idempotency-key` header Brale sends with each webhook delivery. Use the webhook event `id` and/or the webhook `idempotency-key` header for deduplication. Verification steps: 1. Read the exact raw request body bytes. 2. Decode `sharedSecret` from Base64URL to raw bytes. 3. Compute HMAC-SHA256 over the raw request body. 4. Encode the digest as lowercase hex. 5. Compare to `x-request-signature-sha-256` using constant-time comparison. 6. Only then parse and process the JSON payload. ## 6. Return 2xx quickly Return any `2xx` response after verification and safe receipt. If processing takes longer, acknowledge quickly and process asynchronously. ``` Verify signature → record event id → acknowledge 200 → process async ``` ## 7. Deduplicate events Webhook deliveries are at-least-once. Your endpoint may receive the same event more than once. Deduplicate using: * The envelope `id` * The `idempotency-key` header Process each logical event once. # Verify Webhook Signatures Source: https://docs.brale.xyz/webhooks/signatures Verify Brale webhook deliveries by comparing the x-request-signature-sha-256 header against an HMAC-SHA256 of the raw request body using your shared secret. ## Signature header Brale signs webhook deliveries with HMAC-SHA256. Each request includes: ``` x-request-signature-sha-256: ``` The signature is computed over the exact raw request body bytes. Signature verification details: * The header value is the lowercase hex-encoded HMAC-SHA256 digest (no prefix like `v1=`, no version, no timestamp). * The HMAC is computed over the exact raw request body bytes (no canonicalization). * The HMAC key is the Base64URL-decoded `sharedSecret` value returned when creating the subscription. ## Shared secret When you create a webhook subscription, Brale returns a `sharedSecret`. ```json theme={null} { "sharedSecret": "base64url-encoded-secret" } ``` This value is Base64URL encoded. Decode it before using it as the HMAC key. Do not use the encoded string directly as the HMAC key. ## Which secret should I use? Each subscription has its own `sharedSecret`. Verify each delivery with the secret of the subscription that delivered it. Don't look up a secret based on `data.account_id`. * With one managing-account subscription, use that subscription's secret for every event it delivers. This includes events concerning the managing account and events concerning its managed accounts. * With multiple subscriptions, verify each delivery with the secret of the corresponding subscription. Brale returns the `sharedSecret` only once, when you create the subscription. Store it immediately. ## Node.js / TypeScript example ```tsx theme={null} import crypto from "node:crypto"; export function verifyBraleWebhookSignature({ rawBody, sharedSecret, signatureHeader, }: { rawBody: Buffer; sharedSecret: string; signatureHeader: string | undefined; }): boolean { if (!signatureHeader) return false; const key = Buffer.from(sharedSecret, "base64url"); const expectedHex = crypto .createHmac("sha256", key) .update(rawBody) .digest("hex"); const expected = Buffer.from(expectedHex, "hex"); const received = Buffer.from(signatureHeader, "hex"); if (expected.length !== received.length) return false; return crypto.timingSafeEqual(expected, received); } ``` ### Express example Mount the webhook route with `express.raw()` before `express.json()`. ```tsx theme={null} import express from "express"; import { verifyBraleWebhookSignature } from "./verify"; const app = express(); app.post( "/webhooks/brale", express.raw({ type: "application/json" }), (req, res) => { const rawBody = req.body as Buffer; const signature = req.header("x-request-signature-sha-256"); const verified = verifyBraleWebhookSignature({ rawBody, sharedSecret: process.env.BRALE_WEBHOOK_SHARED_SECRET!, signatureHeader: signature, }); if (!verified) { return res.status(401).json({ error: "invalid_signature" }); } const event = JSON.parse(rawBody.toString("utf8")); // Deduplicate before applying side effects. // await ensureNotProcessed(event.id); // Process event... return res.status(200).json({ ok: true }); } ); // Mount JSON middleware after the webhook route. app.use(express.json()); ``` ## Python example ```python theme={null} import base64 import hashlib import hmac def base64url_decode(value: str) -> bytes: padding = "=" * (-len(value) % 4) return base64.urlsafe_b64decode(value + padding) def verify_brale_signature(raw_body: bytes, shared_secret: str, signature_header: str) -> bool: key = base64url_decode(shared_secret) expected = hmac.new(key, raw_body, hashlib.sha256).hexdigest() return hmac.compare_digest(expected, signature_header) ``` ## Common signature verification failures | Symptom | Likely cause | Fix | | - | - | - | | `401 invalid_signature` | Using the wrong secret | Confirm you copied the `sharedSecret` from the same subscription receiving the event | | `401 invalid_signature` after updating `.env` | Server still running with old env | Restart your server | | `401 invalid_signature` in Express | You verified after JSON parsing | Capture raw body with `express.raw()` before `express.json()` | | `401 invalid_signature` in tests | Signed one serialized body but sent another | Sign the exact bytes you send | | Signature length mismatch | Header is missing or malformed | Validate header exists before comparing | | Works locally but not in production | Different env var or subscription secret | Confirm production env uses the correct `sharedSecret` | # Webhook subscription API reference Source: https://docs.brale.xyz/webhooks/subscription-api-reference Reference for the Brale webhook subscription endpoints: list event types, create, retrieve, update, and delete webhook subscriptions. ## List event types ``` GET /accounts/{account_id}/webhooks/event_types ``` Requires `webhooks:read`. Example: ```bash theme={null} curl https://api.brale.xyz/accounts/{account_id}/webhooks/event_types \ -H "Authorization: Bearer {access_token}" ``` Response: ```json theme={null} { "event_types": [ { "event_type": "address.created", "summary": "Emitted when a wallet or bank account is added to an account." }, { "event_type": "address.ready", "summary": "Emitted when a wallet or bank account is ready to use." }, { "event_type": "transfer.created", "summary": "Emitted when a transfer (token order) is created." }, { "event_type": "transfer.completed", "summary": "Emitted when a transfer (token order) reaches complete status." }, { "event_type": "transfer.canceled", "summary": "Emitted when a transfer (token order) is canceled." }, { "event_type": "transfer.failed", "summary": "Emitted when a transfer (token order) reaches failed status." }, { "event_type": "payment.completed", "summary": "Emitted when a payment reaches complete status." }, { "event_type": "account.verification.documents_required", "summary": "Emitted when an account requires additional verification documents." }, { "event_type": "account.verification.completed", "summary": "Emitted when account verification reaches a completed state." } ] } ``` ## Create subscription ``` POST /accounts/{account_id}/webhooks ``` Requires `webhooks:write`. Use an `Idempotency-Key` header. Request: ```json theme={null} { "url": "https://your-app.example.com/webhooks/brale", "events": ["transfer.completed"] } ``` The `events` array accepts concrete event types (e.g., `transfer.completed`) and namespace wildcards of the form `.*` (e.g., `transfer.*`, `payment.*`, `account.*`). A wildcard subscribes to every event in that family, including any future events Brale adds. Wildcards are supported for all event families — not just `transfer`. Wildcard request example: ```json theme={null} { "url": "https://your-app.example.com/webhooks/brale", "events": ["transfer.*", "account.*"] } ``` Response: ```json theme={null} { "id": "3D3jNzs2r7Sf78qtYpRe1biscLG", "sharedSecret": "base64url-encoded-secret", "events": ["transfer.completed"], "url": "https://your-app.example.com/webhooks/brale", "status": "active" } ``` ## List subscriptions ``` GET /accounts/{account_id}/webhooks ``` Requires `webhooks:read`. Response: ```json theme={null} { "subscriptions": [ { "id": "3D3jNzs2r7Sf78qtYpRe1biscLG", "events": ["transfer.completed"], "url": "https://your-app.example.com/webhooks/brale", "status": "active" } ] } ``` ## Get subscription ``` GET /accounts/{account_id}/webhooks/{subscription_id} ``` Requires `webhooks:read`. The `sharedSecret` is not returned. ## Update subscription ``` PATCH /accounts/{account_id}/webhooks/subscriptions/{subscription_id} ``` Requires `webhooks:write`. Use an `Idempotency-Key` header. Request: ```json theme={null} { "url": "https://new-url.example.com/webhooks/brale", "events": ["transfer.completed"] } ``` Important: if `events` is included, it replaces the entire event set. It does not merge with existing events. Note: the subscription API has an intentional path-shape inconsistency: * `GET /accounts/{account_id}/webhooks/{subscription_id}` (get one) * `PATCH /accounts/{account_id}/webhooks/subscriptions/{subscription_id}` (update) * `DELETE /accounts/{account_id}/webhooks/subscriptions/{subscription_id}` (archive) ## Subscribe to refund events Brale reports refunds with `transfer.refunding` (the refund process has started) and `transfer.refunded` (the refund has completed). See [Refund events](/webhooks/webhook-events#refund-events). If your subscription already includes `transfer.*`, it receives both refund events. You do not need to change it. To subscribe by name on a new subscription, include both event types: ```json theme={null} { "url": "https://your-app.example.com/webhooks/brale", "events": ["transfer.completed", "transfer.failed", "transfer.refunding", "transfer.refunded"] } ``` To add them to an existing subscription, first [get the subscription](#get-subscription) and read its current `events`. Then send `PATCH` with the full list: every existing event type plus the two refund events. For example, if the subscription currently has `["transfer.completed", "transfer.failed"]`: ```bash theme={null} curl -X PATCH https://api.brale.xyz/accounts/{account_id}/webhooks/subscriptions/{subscription_id} \ -H "Authorization: Bearer {access_token}" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: {uuid}" \ -d '{ "events": ["transfer.completed", "transfer.failed", "transfer.refunding", "transfer.refunded"] }' ``` > [!WARNING] > > `events` replaces the entire event set. If you send only `["transfer.refunding", "transfer.refunded"]`, the subscription stops receiving every other event it had. ## Archive subscription ``` DELETE /accounts/{account_id}/webhooks/subscriptions/{subscription_id} ``` Requires `webhooks:write`. Archiving stops future deliveries. Delivery history is retained. ## List delivery attempts ``` GET /accounts/{account_id}/webhooks/deliveries ``` Requires `webhooks:read`. Optional pagination: ``` page[size]=25 page[after]=cursor page[before]=cursor ``` Do not send both `page[after]` and `page[before]`. Delivery logs are useful for debugging: * Whether Brale attempted delivery * What HTTP status your endpoint returned * Whether a delivery was retried * Failure messages * Attempt numbers # Reliability, retries, and troubleshooting Source: https://docs.brale.xyz/webhooks/troubleshooting Best practices for acknowledging Brale webhook deliveries quickly, handling at-least-once delivery with idempotency, and troubleshooting failed deliveries. ## Acknowledge quickly Your endpoint should return a `2xx` response quickly after verifying and safely recording the event. Recommended pattern: 1. Verify signature. 2. Parse event. 3. Check idempotency / dedupe. 4. Record event receipt. 5. Return `200`. 6. Process side effects asynchronously. Avoid doing long-running work before returning a response. ## Delivery success Brale treats `2xx` responses as successful delivery acknowledgements. If your endpoint returns a non-`2xx` response or times out, Brale may retry delivery. ## Idempotency Webhook delivery is at-least-once. Your application must handle duplicate deliveries. Recommended database pattern: ```sql theme={null} CREATE TABLE webhook_events ( event_id TEXT PRIMARY KEY, event_type TEXT NOT NULL, received_at TIMESTAMP NOT NULL, processed_at TIMESTAMP ); ``` Pseudo-code: ```tsx theme={null} async function handleWebhook(event) { const inserted = await insertWebhookEventIfNotExists(event.id); if (!inserted) { // Duplicate delivery. Acknowledge without reprocessing. return; } await processEvent(event); } ``` ## Local development Use a public tunnel: ```bash theme={null} ngrok http 4000 ``` Create or update your subscription URL: ``` https:///webhooks/brale ``` When the tunnel URL changes, update the subscription URL with the PATCH endpoint. ## Testing checklist Before testing a real event: * Your server is running. * Your public tunnel reaches your local server. * Your subscription URL ends with your webhook path. * Your application has the correct `sharedSecret`. * Your server was restarted after updating environment variables. * Your endpoint reads the raw body. * Your handler returns `2xx` for valid events. * Your handler returns `401` for invalid signatures. * Your handler deduplicates repeated event IDs / idempotency keys. ## Troubleshooting ### `401 invalid_signature` Likely causes: * Wrong `sharedSecret` * Server not restarted after secret change * Using a secret from another subscription * Verifying parsed JSON instead of raw request body * Request body mutated by middleware * Test script signing different bytes than it sends ### No webhook received Check: * Is the subscription active? * Does the subscription URL match your current tunnel URL? * Is the event type subscribed? * Did the transfer/payment actually reach the state that emits the event? * Do delivery logs show an attempt? * Did your endpoint return non-`2xx`? * Did your tunnel expire or restart? ### Duplicate delivery received This can happen. Deduplicate by event `id` and/or `idempotency-key`. Return `2xx` for duplicates after confirming you already processed the event. ### `sharedSecret` lost Archive the old subscription and create a new subscription. Brale does not return the secret again after creation. ### Old API key does not work with webhook endpoints Create a new API credential or OAuth application with webhook scopes: * `webhooks:read` * `webhooks:write` Existing credentials may not include newly added scopes. # Webhook Events Source: https://docs.brale.xyz/webhooks/webhook-events Reference for the Brale webhook event envelope and the transfer, payment, address, and account event types your handler can subscribe to. ## Event envelope All webhook events use a JSON envelope: ```json theme={null} { "id": "event-id", "type": "transfer.completed", "created": "2026-04-29T23:30:00.000000Z", "data": { "id": "resource-id", "status": "complete" } } ``` | 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`. | ## Managing accounts and event fan-in If your integration uses [managed accounts](/guides/managed-accounts) or [individual accounts](/guides/individual-accounts), a single managing account can receive events for every account it manages. * A webhook subscription owned by a **managing account** receives events for every account it manages, plus its own. * A webhook subscription owned by a **managed account** receives only that account's own events. This is derived from the subscription's owner. There is no scope parameter to set when creating the subscription. To attribute an event to the correct managed account, read `data.account_id` from the payload. It is present on `payment.completed`, `address.created`, `address.ready`, `transfer.created`, `transfer.failed`, `transfer.refunding`, and `transfer.refunded`, in addition to the `account.verification.*` events that already carry it. Your handler should branch on `type`. ```tsx theme={null} switch (event.type) { case "transfer.completed": await handleTransferCompleted(event.data); break; case "transfer.failed": await handleTransferFailed(event.data); break; case "transfer.refunding": case "transfer.refunded": await handleRefundEvent(event); break; case "payment.completed": await handlePaymentCompleted(event.data); break; case "address.created": case "address.ready": await handleAddressEvent(event); break; default: // Unknown future event type. // Store and acknowledge safely. break; } ``` ## `transfer.created` Emitted when a Brale transfer is created. Example: ```json theme={null} { "id": "36KkY9pF34Qy6nB3Wwd25rq4f5z", "type": "transfer.created", "created": "2026-04-29T23:30:00.000000Z", "data": { "id": "36Kr3QA7YeEEBY3ABp3e2zS8iq9", "account_id": "3Ar9BnQCKIrB3SYjKGBzCtFs6XL", "status": "pending", "amount": { "value": "100.00", "currency": "USD" } } } ``` Notes: * Treat `data.id` as the transfer ID. * `data.account_id` identifies the account the transfer belongs to. Managing accounts use this to attribute events to a specific managed account. * Additional fields may be present as the transfer schema evolves. * Your integration should ignore unknown fields. ## `transfer.completed` Emitted when a Brale transfer reaches `complete` status. Use this event to replace polling transfer status. Example: ```json theme={null} { "id": "36Ky7AjzQHb6BAEcn6zJ4A3DdvH", "type": "transfer.completed", "created": "2026-04-29T23:30:00.000000Z", "data": { "id": "36KyrNktBXtnjfObINf5AjxvUlK", "status": "complete", "amount": { "value": "100.00", "currency": "USD" }, "created_by": { "type": "automation", "id": "3AjRnDClEzwuCKlRioG3OXMS4pH" } } } ``` Notes: * Treat `data.id` as the transfer ID. * Treat `data.status` as the completed transfer state. The event name is `transfer.completed`; the API status is `complete`. * `data.created_by` identifies who created the transfer: an object with `type` (`user`, `application`, `automation`, `transfer`, or `brale`) and `id`, or `null` when the creator is not one of these types. Use it to tell which Automation or application created the transfer without calling the Transfers API. `id` is `null` when `type` is `brale`. When `type` is `transfer` (an on-chain deposit), `id` is `-`, not a Brale ID. See [`created_by`](/key-concepts/transfers#created_by). * For outbound domestic wires and outbound ACH payouts, `transfer.completed` is not a guarantee that the payout cannot be returned later. If the bank returns the payout, the same transfer moves to `failed` and Brale emits [`transfer.failed`](#transfer-failed). Keep accepting `transfer.failed` for transfers you recorded as complete. * Additional fields may be present as the transfer schema evolves. * Your integration should ignore unknown fields. ## `transfer.failed` Emitted when a Brale transfer reaches `failed` status. Use this event to react to permanent transfer failures (e.g., ACH returns, outbound domestic wire returns, or other rail/provider failures). For ACH-specific return details, inspect `data.failure.ach_return`. For wire return details, inspect `data.failure.wire_return`. Example: ```json theme={null} { "id": "36KsiC47wqaMl9Xvq2ZG4MzAOUQ", "type": "transfer.failed", "created": "2026-04-29T23:30:00.000000Z", "data": { "id": "36KklImCvBPt4R5YhuIG43KIjFA", "account_id": "3Ar9BnQCKIrB3SYjKGBzCtFs6XL", "status": "failed", "amount": { "value": "100.00", "currency": "USD" }, "failure": { "type": "ach_return", "occurred_at": "2026-04-29T23:29:55.000000Z", "retriable": false, "ach_return": { "code": "R01", "reason": "Insufficient Funds", "category": "administrative" } } } } ``` Notes: * Treat `data.id` as the transfer ID. * `data.account_id` identifies the account the transfer belongs to. Managing accounts use this to attribute events to a specific managed account. * Treat `data.status` as the failed transfer state. * `data.failure` is usually populated for `transfer.failed`, but may be `null` when Brale does not have structured failure details. Always null-check before reading nested fields. * `data.failure.retriable` indicates whether the failure is retriable. Spelled `retriable`, not `retryable`. * `data.failure.ach_return` is only set for ACH return failures. See [the transfer `failure` field](/api-reference/brale/get-transfer#failure) for the full schema. * Additional fields may be present as the transfer schema evolves. * Your integration should ignore unknown fields. ### Returned outbound wires Brale uses the existing `transfer.failed` event for returned outbound domestic wires. There is no separate returned event. If Brale later refunds the payout, it reports the refund with the separate [refund events](#refund-events) `transfer.refunding` and `transfer.refunded`. The same transfer can produce `transfer.completed` and later `transfer.failed` if the wire is returned after completion. Example (illustrative, not an observed production payload): ```json theme={null} { "id": "36KHQsiJoUGm1YtmaD7v3dNi8Lf", "type": "transfer.failed", "created": "2026-10-06T18:30:05.000000Z", "data": { "id": "36KppWTv5aspzhU8QrTzhJqmHUo", "account_id": "3Ar9BnQCKIrB3SYjKGBzCtFs6XL", "status": "failed", "amount": { "value": "100.00", "currency": "USD" }, "failure": { "type": "wire_return", "occurred_at": "2026-10-06T18:30:00Z", "retriable": false, "ach_return": null, "wire_return": { "code": "AC04", "reason": "Account closed" } } } } ``` How to handle it: * Read `data.status` for the payout state. Read `data.failure.type` for the failure classification when `data.failure` is present. * When `data.failure.type` is `wire_return`, read `data.failure.wire_return`, not `data.failure.ach_return`. * Do not require an ACH return code or a specific bank reason code to recognize a wire return. `data.failure.wire_return.code` is `WIRE_RETURN` when the provider supplies no code, and `data.failure.wire_return.reason` can be `null`. * Missing structured failure details do not mean the transfer succeeded. If `data.status` is `failed`, update your records even when `data.failure` is `null`. * `transfer.failed` confirms that the payout failed or was returned. It does not confirm that stablecoins were refunded or that refunded funds are available. * Track payout state, return classification, and any refund credit separately. Not every failed or returned payout is refunded. Use [`transfer.refunding`](#transfer-refunding) and [`transfer.refunded`](#transfer-refunded) to track a refund. * Do not assume event ordering. Retrieve the [latest transfer](/api-reference/brale/get-transfer) when you need to reconcile its current state. ## Refund events Brale reports the refund lifecycle with two events in the transfer family. They are separate from `transfer.failed`: | Event | What it tells you | What it does not tell you | | - | - | - | | `transfer.failed` | The payout failed or was returned. | That a refund has started or completed. | | `transfer.refunding` | The refund process has started. | That the refund is complete. | | `transfer.refunded` | The refund has completed. | — | Refund events apply to a redemption (stablecoin to fiat payout) whose payout was returned or canceled and then refunded. They use the same transfer as the original payout, so `data.id` matches the `data.id` you received on `transfer.failed` or `transfer.canceled`. A refunded payout produces this sequence: `transfer.failed` (or `transfer.canceled`) → `transfer.refunding` → `transfer.refunded` After the refund starts, the transfer's status is `refunding` and then `refunded`. Brale does not send `transfer.completed`, `transfer.failed`, or `transfer.canceled` for the transfer after that point. A failed or returned payout is not automatically followed by a refund. Do not wait for `transfer.refunding` or `transfer.refunded` after every `transfer.failed`. Subscriptions that use the `transfer.*` wildcard already receive both refund events. Subscriptions that list event types by name receive them only after you add `transfer.refunding` and `transfer.refunded`. See [Subscribe to refund events](/webhooks/subscription-api-reference#subscribe-to-refund-events). ### `transfer.refunding` Emitted when the refund process starts. Notes: Example (illustrative): ```json theme={null} { "id": "36KppWTv5aspzhU8QrTzhJqmHUo", "type": "transfer.refunding", "created": "2026-10-07T15:00:00.000000Z", "data": { "id": "36KppWTv5aspzhU8QrTzhJqmHUo", "account_id": "3Ar9BnQCKIrB3SYjKGBzCtFs6XL", "status": "refunding", "amount": { "value": "100.00", "currency": "USD" }, "failure": { "type": "wire_return", "occurred_at": "2026-10-06T18:30:00Z", "retriable": false, "ach_return": null, "wire_return": { "code": "AC04", "reason": "Account closed" } } } } ``` Notes: * Treat this event as "refund in progress." It does not confirm that the refund is complete or that refunded funds are available. * Do not credit your end user's balance as final based on this event alone. Wait for `transfer.refunded`. * `data.status` is always `refunding` on this event. Brale still delivers `transfer.refunding` if the refund completes before the event is sent, so the transfer's current status can already be `refunded`. * `created` is the time the refund started. ### `transfer.refunded` Emitted when the refund completes. Notes: Example (illustrative): ```json theme={null} { "id": "36KppWTv5aspzhU8QrTzhJqmHUo", "type": "transfer.refunded", "created": "2026-10-07T15:05:00.000000Z", "data": { "id": "36KppWTv5aspzhU8QrTzhJqmHUo", "account_id": "3Ar9BnQCKIrB3SYjKGBzCtFs6XL", "status": "refunded", "amount": { "value": "100.00", "currency": "USD" }, "failure": { "type": "wire_return", "occurred_at": "2026-10-06T18:30:00Z", "retriable": false, "ach_return": null, "wire_return": { "code": "AC04", "reason": "Account closed" } } } } ``` Notes: * Treat this event as confirmation that the refund has completed. * `data.status` is `refunded`. `created` is the time the refund completed. * Delivery order is not guaranteed. You can receive `transfer.refunded` before `transfer.refunding`, or without having processed `transfer.refunding`. ### Handle refund events Both refund events carry the transfer resource in `data`: | Field | Description | | - | - | | `data.id` | Transfer ID of the original redemption. | | `data.account_id` | Account the transfer belongs to. | | `data.status` | `refunding` or `refunded`. | | `data.amount` | Transfer amount (`value`, `currency`). | | `data.source`, `data.destination` | Transfer legs, when available. | | `data.failure` | The original payout failure, in the same shape as [the transfer `failure` field](/api-reference/brale/get-transfer#failure). Can be `null`. | Ignore unknown fields in `data`. Retrieve the [latest transfer](/api-reference/brale/get-transfer) when you need its current state. ```tsx theme={null} async function handleRefundEvent(event) { // Signature already verified against the raw request body. // Process idempotently: skip events you have already handled. // Key on id and type. Both refund events for a transfer share the same id. if (await alreadyProcessed(event.id, event.type)) return; if (event.type === "transfer.refunding") { // Refund started. Do not treat it as complete. // Do not overwrite a refund you already recorded as complete. await markRefundInProgressUnlessComplete(event); } else if (event.type === "transfer.refunded") { // Refund completed. await markRefundComplete(event); } await recordProcessed(event.id, event.type); } ``` How to handle them: * [Verify the signature](/webhooks/signatures) before you process the event. * Deduplicate on the event `id` and `type` together. Brale can deliver the same event more than once, and `transfer.refunding` and `transfer.refunded` for the same transfer share the same `id`. * Do not assume delivery order. Never move a refund you recorded as complete back to in progress. * Retrieve the latest transfer to reconcile when events arrive out of order or you are unsure of the current state. ## `payment.completed` Emitted when a payment reaches `complete` status. Example: ```json theme={null} { "id": "36KZe95b9eGe0vRBbgi09qynDAk", "type": "payment.completed", "created": "2026-04-28T21:30:00.000000Z", "data": { "id": "36KY8ISwYDFHL3tVTNYTHPzpppp", "account_id": "3Ar9BnQCKIrB3SYjKGBzCtFs6XL", "status": "complete", "amount": { "value": "1000.00", "currency": "USD" }, "direction": "inbound", "type": "wire", "inserted_at": "2026-04-28T20:00:00.000000Z", "updated_at": "2026-04-28T21:30:00.000000Z" } } ``` Notes: * `data.account_id` identifies the account the payment belongs to. Managing accounts use this to attribute events to a specific managed account. * `data.id` is a payment ID. It is not a Transfer ID. Brale creates a separate Transfer for Automation deposits. * `payment.completed` means Brale received the fiat payment. It does not mean the stablecoin mint was delivered. Use [`transfer.completed`](#transfer-completed) or the Transfer's `status` for that. * `data.type` identifies the payment rail. The example shows a wire. For FedNow deposits, do not hard-code an expected `data.type` value. Correlate with the Transfer instead. * To find the Transfer for an Automation deposit, list Transfers with `automation_id` and `transfer_type` (for example, `transfer_type=fednow_credit`), then match `data.account_id`, the amount, and `source.payment_details.received_at`. See [Receive FedNow deposits](/guides/fednow-inbound#find-the-transfer). * Brale also emits `payment.completed` for inbound payments created by [Simulate an Automation deposit](/api-reference/brale/simulate-automation-deposit) on testnet. There is no simulation-specific webhook type, so the same handler covers simulated and real deposits. ## `transfer.canceled` Emitted when a Brale transfer is canceled. Example: ```json theme={null} { "id": "36K6uEp3c4dsa7lC360A9y6YnD1", "type": "transfer.canceled", "created": "2026-04-29T23:30:00.000000Z", "data": { "id": "36K4TdDo9EgZmCnu77Svtuuj596", "status": "canceled", "amount": { "value": "100.00", "currency": "USD" }, "created_by": { "type": "automation", "id": "3AjRnDClEzwuCKlRioG3OXMS4pH" } } } ``` Notes: * Treat `data.id` as the transfer ID. * Treat `data.status` as the canceled transfer state. * `data.created_by` identifies who created the transfer: an object with `type` (`user`, `application`, `automation`, `transfer`, or `brale`) and `id`, or `null` when the creator is not one of these types. Use it to tell which Automation or application created the transfer without calling the Transfers API. `id` is `null` when `type` is `brale`. When `type` is `transfer` (an on-chain deposit), `id` is `-`, not a Brale ID. See [`created_by`](/key-concepts/transfers#created_by). * Additional fields may be present as the transfer schema evolves. * Your integration should ignore unknown fields. ## Address events Brale reports new addresses with two events in the `address` family. Both cover wallets (internal custodial wallets and external wallets) and external bank accounts, including bank accounts linked through Plaid. Subscribe to both with `address.*`. | Event | When it fires | | - | - | | `address.created` | A wallet or bank account is added to the account. A custodial wallet that is still `pending` triggers this event. | | `address.ready` | The wallet or bank account reaches `active` status and can be used as a transfer source or destination. | An address that is created already `active` produces both events. A custodial wallet created as `pending` produces `address.created` first, then `address.ready` when it becomes `active`. See [Address lifecycle](/key-concepts/addresses#address-lifecycle). ### `address.created` Emitted when a wallet or bank account is added to an account. Example (wallet, illustrative): ```json theme={null} { "id": "2VZvtmVc2j3gQ80CTlcuQXbGrwC", "type": "address.created", "created": "2026-10-22T18:00:00.000000Z", "data": { "id": "2VZvtmVc2j3gQ80CTlcuQXbGrwC", "account_id": "3Ar9BnQCKIrB3SYjKGBzCtFs6XL", "kind": "wallet", "status": "pending", "type": "internal", "ownership": "self-owned", "name": "Treasury Wallet", "transfer_types": ["spark"], "address": null, "account_number": null, "routing_number": null, "account_type": null } } ``` Notes: * The event `id` and `data.id` are both the address ID. * `created` is the time the address was added. * `data.status` is the address status when Brale builds the event: `pending`, `active`, `archived`, or `disabled`. A delayed delivery can report a status other than the one the address had when it was added. * Do not use the address in transfers based on this event alone. Wait for [`address.ready`](#address-ready) or check that `data.status` is `active`. ### `address.ready` Emitted when a wallet or bank account reaches `active` status and can be used in transfers. Example (bank account, illustrative): ```json theme={null} { "id": "2VZw1Kq9YdPz3hL0mN5sR8tUvXa:ready", "type": "address.ready", "created": "2026-10-22T18:05:00.000000Z", "data": { "id": "2VZw1Kq9YdPz3hL0mN5sR8tUvXa", "account_id": "3Ar9BnQCKIrB3SYjKGBzCtFs6XL", "kind": "fiat_account", "status": "active", "type": "external", "ownership": "customer-owned", "name": "Chase Bank", "transfer_types": ["ach_credit", "wire"], "address": null, "account_number": "****1234", "routing_number": "021000021", "account_type": "checking" } } ``` Notes: * The event `id` is the address ID with a `:ready` suffix, so it never matches the `address.created` event `id` for the same address. `data.id` is the address ID without the suffix. * `created` is the time the address was last updated. * `data.status` is always `active` on this event. ### Address event payload Both address events carry the same `data` object. Every field is always present. | Field | Type | Description | | - | - | - | | `data.id` | string | Address ID. Use it with the [Addresses API](/api-reference/brale/get-address) and as a transfer `address_id`. | | `data.account_id` | string | Account the address belongs to. | | `data.kind` | string | `wallet` for an onchain wallet or `fiat_account` for a bank account. | | `data.status` | string | `pending`, `active`, `archived`, or `disabled`. | | `data.type` | string | `internal` for a custodial wallet or `external` for an external wallet or bank account. | | `data.ownership` | string | `self-owned` or `customer-owned`. | | `data.name` | string or null | Address name. | | `data.transfer_types` | array of strings or null | Transfer types the address supports, using the same values as the Addresses API. `null` for a bank account with no transfer types configured yet. | | `data.address` | string or null | Onchain address for a wallet. `null` for bank accounts, and `null` for a custodial wallet that is still `pending`. | | `data.account_number` | string or null | Masked bank account number (for example, `****1234`). `null` for wallets. | | `data.routing_number` | string or null | Bank routing number. `null` for wallets. | | `data.account_type` | string or null | `checking` or `savings`. `null` for wallets. | Ignore unknown fields in `data`. Retrieve the address with the Addresses API when you need its current state. ## `account.verification.documents_required` Emitted when Brale's KYB review determines one or more documents must be uploaded. Use this event to prompt the account holder to submit the requested documents. For each document with `status: "pending_upload"`, [stage the file](/api-reference/brale/stage-verification-document) (use `document_kind` and `person_label` from the payload), then [link staged submissions](/api-reference/brale/link-verification-documents). You can also [poll required documents](/api-reference/brale/list-verification-documents) instead of using this webhook. Example: ```json theme={null} { "id": "3Ar9BnQCKIrB3SYjKGBzCtFs6XL", "type": "account.verification.documents_required", "created": "2026-06-09T14:32:00Z", "data": { "account_id": "3Ar9BnQCKIrB3SYjKGBzCtFs6XL", "updated_at": "2026-06-09T14:32:00Z", "documents": [ { "document_kind": "certificate_of_good_standing", "document_type": "business_document", "display_name": "Certificate of Good Standing", "status": "pending_upload", "person_label": null }, { "document_kind": "government_photo_id", "document_type": "individual_document", "display_name": "Government-issued photo ID", "status": "pending_upload", "person_label": "Jane Doe" } ] } } ``` Notes: * Treat `data.account_id` as the account ID. * Each entry in `data.documents` describes a required document. `status` is `pending_upload` until the document is submitted. * Include `person_label` when staging individual (KYC) documents. * Your integration should ignore unknown fields. ## `account.verification.completed` Emitted when account verification completes and the account is enabled. Example: ```json theme={null} { "id": "3Ar9BnQCKIrB3SYjKGBzCtFs6XL", "type": "account.verification.completed", "created": "2026-06-09T16:00:00Z", "data": { "account_id": "3Ar9BnQCKIrB3SYjKGBzCtFs6XL", "status": "complete", "updated_at": "2026-06-09T16:00:00Z" } } ``` Notes: * Treat `data.account_id` as the account ID. * Treat `data.status` as the completed verification state (`complete`). * This event fires only when the account reaches `complete` status. * Your integration should ignore unknown fields. ## `account.verification.rejected` Emitted when account verification is declined. This is the terminal outcome for a review: the account will not become `complete` on its own, and no further verification events follow. Example: ```json theme={null} { "id": "3Ar9BnQCKIrB3SYjKGBzCtFs6XL", "type": "account.verification.rejected", "created": "2026-06-09T16:00:00Z", "data": { "account_id": "3Ar9BnQCKIrB3SYjKGBzCtFs6XL", "status": "rejected", "updated_at": "2026-06-09T16:00:00Z" } } ``` Notes: * Treat `data.account_id` as the account ID. * Treat `data.status` as the declined verification state (`rejected`). * The account's `status` from `GET /accounts/{account_id}` becomes `rejected` at the same time, so polling and webhooks agree. * Uploading more documents does not reopen a declined account. Contact Brale if you believe a decline is incorrect. * Your integration should ignore unknown fields. > [!NOTE] > > Subscriptions to the `account.verification.*` wildcard receive this event automatically. If you subscribed to `account.verification.completed` by name, add `account.verification.rejected` to your subscription to be told about declines. ## Handling future event types Brale may add new event types over time. Best practices: * Use `GET /accounts/{account_id}/webhooks/event_types` to discover supported events. * Branch on `event.type`. * Acknowledge unknown event types safely. * Ignore unknown fields in `data`. * Do not assume event ordering. * To automatically receive future events in a family (e.g., new `transfer.*`, `address.*`, or `account.*` events), subscribe with a namespace wildcard like `transfer.*` or `account.*` when you [create](/api-reference/brale/create-webhook-subscription#wildcard-event-subscriptions) or [update](/api-reference/brale/update-webhook-subscription) a subscription. Wildcards work for every event family.