Balances

Get balances

Get custodial and non-custodial balances for your organization.

GET
/api/v2/balances

Returns custodial (account) and non-custodial (Safe wallet) balances for your organization.

Custodial balances are grouped by asset and summed across chains. These represent funds held on your behalf by Compose. An audd balance is listed when your organization holds one.

Non-custodial balances are queried on-chain from your organization's Safe wallet. Each entry includes the chain and token contract address.

Only non-zero balances are returned; amounts are decimal strings without trailing zeros. nonCustodial.address is an empty string when your organization has no Safe wallet.

Authorization

bearerAuth
AuthorizationBearer <token>

Organization API key obtained on Settings > API Keys page in Compose UI.

In: header

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET 'https://compose.finance/api/v2/balances' \  -H 'Authorization: Bearer YOUR_API_KEY'

{
  "custodial": {
    "balances": [
      {
        "currency": "usdc",
        "balance": "1500",
        "availableBalance": "1350",
        "lockedBalance": "150"
      },
      {
        "currency": "eurc",
        "balance": "500",
        "availableBalance": "500",
        "lockedBalance": "0"
      },
      {
        "currency": "audd",
        "balance": "250",
        "availableBalance": "250",
        "lockedBalance": "0"
      }
    ]
  },
  "nonCustodial": {
    "address": "0x1234567890abcdef1234567890abcdef12345678",
    "balances": [
      {
        "currency": "usdc",
        "chain": "base",
        "balance": "1000.5",
        "availableBalance": "950.5",
        "lockedBalance": "50",
        "tokenAddress": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
      },
      {
        "currency": "ausdc",
        "chain": "base",
        "balance": "200",
        "availableBalance": "200",
        "lockedBalance": "0",
        "tokenAddress": "0x4e65fE4DbA92790696d040ac24Aa414708F5c0AB"
      }
    ]
  }
}

{
  "error": "Unauthorized - Invalid or missing API key or session"
}
{
  "error": "Customers feature is not enabled for your organization"
}
{
  "error": "Rate limit exceeded. Please try again later."
}

{
  "error": "Internal server error"
}