Skip to main content
GET
/
embedded-banking
/
v1
/
bank-accounts
Get all bank accounts with balances.
curl --request GET \
  --url https://api.sandbox.tesouro.com/embedded-banking/v1/bank-accounts \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "accountNumber": "<string>",
      "balance": {
        "currencyCode": "<string>",
        "value": 123
      },
      "createdDateTime": "2023-11-07T05:31:56Z",
      "routingNumber": "<string>",
      "status": "ACTIVE",
      "bankAccountReference": "<string>",
      "nickname": "<string>"
    }
  ],
  "nextPaginationToken": "<string>",
  "prevPaginationToken": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.tesouro.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Application (M2M) OAuth2 access token (client credentials).

Headers

X-Organization-ID
string<uuid>

ID of the organization to perform this operation on behalf of. Required for BANK and PLATFORM app token callers targeting a specific organization. If omitted, the request uses the authenticated caller's own organization. Must be a valid non-empty UUID. Present but malformed values return 400.

Query Parameters

limit
default:25

Number of items to return (default 25, max 100).

pagination_token
string

Opaque pagination token from a previous response.

status
enum<string>

Optional filter by bank account status. See BankAccountStatus for supported values. The status of a bank account.

Available options:
ACTIVE,
CLOSED

Response

Returns bank accounts with balances.

A paginated response containing a page of results and navigation tokens.

data
object[]
required

The items in the current page.

nextPaginationToken
null | string

A token that can be sent in the pagination_token query parameter to get the next page of results, or null if there is no next page.

prevPaginationToken
null | string

A token that can be sent in the pagination_token query parameter to get the previous page of results, or null if there is no previous page.