List accounts

GET
/accounts

Returns accounts and their balances for organizations your API key can access.

Requires accounts:read in each requested organization. If you omit organizationIds, the results include accounts from all organizations where your key has this permission.

See Pagination & filtering for how to filter, sort, and retrieve additional results.

Query parameters

ids

array of string (uuid)

Return accounts with these IDs. Accepts up to 100 account IDs. Accounts that do not exist or are outside your key’s access are omitted.

max items 100

organizationIds

array of string (uuid)

Return accounts belonging to these organizations. Accepts up to 100 organization IDs. Your key must have accounts:read in every organization specified.

max items 100

types

array of AccountType

Return accounts matching any of these account types: banking, credit, crypto, or investment.

bankingcreditcryptoinvestment
statuses

array of AccountStatus

Return accounts matching any of these statuses: active, pending, inactive, or closed.

activeclosedinactivepending
nextToken

string

Token returned in the previous response’s metadata.nextToken. An invalid or no longer usable token returns 400.

pageSize

integer

Maximum number of accounts to return per page. Accepts 1–100. Defaults to 25.

min 1

max 100

default 25

sort

string

Sort direction: asc for ascending or desc for descending. Defaults to desc.

ascdesc

default "desc"

sortBy

string

Field used to order accounts: createdAt or name. Defaults to createdAt.

createdAtname

default "createdAt"

Headers

flex-version

string

pattern ^\d{4}-\d{2}-\d{2}$

Responses

200

Accounts retrieved successfully. The list may be empty.

application/json
data

array of AccountItem

required

Accounts matching the filters that your API key can access. Empty if no accounts match.

id

string (uuid)

required

Unique identifier for the account. Use this ID when retrieving, updating, or closing the account.

organizationId

string (uuid)

required

ID of the organization the account belongs to.

type

string

required

Account category: banking for deposit accounts (including Reward Card deposits), credit for credit accounts, crypto for cryptocurrency accounts (including stablecoins), or investment.

bankingcreditcryptoinvestment
status

string

required

Account status: active means open; pending means opening is incomplete; inactive means frozen; closed means closed.

activeclosedinactivepending
name

string

required

Display name of the account. May be empty if no name has been set.

currency

string

Currency code or token symbol for the account, such as USD, USDC, or USDT.

accountNumberLast4

string

Last four digits of the bank account number. Present for banking accounts when available.

routingNumber

string

Bank routing number. Present for banking accounts when available.

accountNumber

string

Full bank account number. Present for banking accounts when available and permitted by your key’s account access.

balances

AccountBalances

required

Account balances, grouped by balance type.

available

AccountBalanceEntry

required

Amount available to spend or withdraw. For investment accounts, this is withdrawable cash rather than the account’s total value.

amount

AccountAmount

Balance amount, including currency and scale. Present when the balance is available; otherwise, unavailable is returned.

amount

integer (int64)

required

Integer monetary value. Divide by 10^scale to obtain the value in the specified currency. For example, 125000 with scale 2 represents 1250.00.

scale

integer

required

Number of decimal places represented by amount. For example, 2 means the amount is expressed in hundredths.

currency

string

required

Currency code or token symbol, such as USD, USDC, or USDT.

asOf

string (date-time)

Date and time the balance was last confirmed.

unavailable

object

Details explaining why the balance could not be retrieved or calculated. An unavailable balance must not be treated as zero.

reason

string

required

balance_source_unresolved means required balance data or its confirmation timestamp is missing.

balance_source_unresolved
retryable

boolean

required

Whether a later request may resolve the balance. true does not guarantee the next request will succeed; false means retrying alone is not expected to resolve it.

pending

AccountBalanceEntry

Funds awaiting settlement. Returned for banking and investment accounts.

amount

AccountAmount

Balance amount, including currency and scale. Present when the balance is available; otherwise, unavailable is returned.

amount

integer (int64)

required

Integer monetary value. Divide by 10^scale to obtain the value in the specified currency. For example, 125000 with scale 2 represents 1250.00.

scale

integer

required

Number of decimal places represented by amount. For example, 2 means the amount is expressed in hundredths.

currency

string

required

Currency code or token symbol, such as USD, USDC, or USDT.

asOf

string (date-time)

Date and time the balance was last confirmed.

unavailable

object

Details explaining why the balance could not be retrieved or calculated. An unavailable balance must not be treated as zero.

reason

string

required

balance_source_unresolved means required balance data or its confirmation timestamp is missing.

balance_source_unresolved
retryable

boolean

required

Whether a later request may resolve the balance. true does not guarantee the next request will succeed; false means retrying alone is not expected to resolve it.

hold

AccountBalanceEntry

Funds reserved and unavailable to spend or withdraw.

amount

AccountAmount

Balance amount, including currency and scale. Present when the balance is available; otherwise, unavailable is returned.

amount

integer (int64)

required

Integer monetary value. Divide by 10^scale to obtain the value in the specified currency. For example, 125000 with scale 2 represents 1250.00.

scale

integer

required

Number of decimal places represented by amount. For example, 2 means the amount is expressed in hundredths.

currency

string

required

Currency code or token symbol, such as USD, USDC, or USDT.

asOf

string (date-time)

Date and time the balance was last confirmed.

unavailable

object

Details explaining why the balance could not be retrieved or calculated. An unavailable balance must not be treated as zero.

reason

string

required

balance_source_unresolved means required balance data or its confirmation timestamp is missing.

balance_source_unresolved
retryable

boolean

required

Whether a later request may resolve the balance. true does not guarantee the next request will succeed; false means retrying alone is not expected to resolve it.

createdAt

string (date-time)

required

Date and time the account was created.

lastModifiedAt

string (date-time)

required

Date and time the account record was last updated. Balance confirmation times are reported separately in asOf.

metadata

AccountListMetadata

required

Pagination and sorting details for this response.

pageSize

integer

required

Maximum number of accounts requested per page. The number returned may be smaller.

sort

string

required

Sort direction used for this response.

ascdesc
sortBy

string

required

Field used to order the accounts.

createdAtname
hasMore

boolean

required

Whether another page of matching accounts is available.

nextToken

string

Token to pass as nextToken to retrieve the next page. Present only when hasMore is true.

400

A query parameter or API version is invalid, or the pagination token is no longer usable.

401

Authentication is missing or invalid.

403

Your key has no accounts:read permission, or a requested organization is outside its read access.

429

Rate limit exceeded. The Retry-After response header specifies how many seconds to wait before retrying.

500

The request could not be completed because account information or a balance provider was unavailable.

Request template

curl -X GET 'https://api.flex.one/accounts' \
  -H "Authorization: Bearer $FLEX_API_KEY" \
  -H 'flex-version: 2026-10-23'

Response 200

{
  "data": [
    {
      "id": "470195c7-4cf3-4df3-9f92-80848be0a3ad",
      "organizationId": "3f8bbfa2-9257-4a7e-86d3-df1797b8e143",
      "type": "banking",
      "status": "active",
      "name": "Operating account",
      "currency": "USD",
      "accountNumberLast4": "6789",
      "balances": {
        "available": {
          "amount": {
            "amount": 125000,
            "scale": 2,
            "currency": "USD"
          },
          "asOf": "2026-11-15T14:30:00Z"
        },
        "pending": {
          "amount": {
            "amount": 0,
            "scale": 2,
            "currency": "USD"
          },
          "asOf": "2026-11-15T14:30:00Z"
        },
        "hold": {
          "amount": {
            "amount": 2500,
            "scale": 2,
            "currency": "USD"
          },
          "asOf": "2026-11-15T14:30:00Z"
        }
      },
      "createdAt": "2026-10-01T09:00:00Z",
      "lastModifiedAt": "2026-11-15T14:30:00Z"
    }
  ],
  "metadata": {
    "pageSize": 25,
    "sort": "desc",
    "sortBy": "createdAt",
    "hasMore": false
  }
}