Skip to main content

Overview

The Accounts API allows you to retrieve information about all financial accounts in your Sure workspace. Accounts represent depository accounts, credit cards, investment accounts, loans, and other asset or liability accounts.

List accounts

curl -X GET https://api.sure.app/v1/accounts \
  -H "X-Api-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json"
Retrieve a paginated list of all visible accounts (draft and active status).

Query parameters

page
integer
default:"1"
Page number for pagination
per_page
integer
default:"25"
Number of accounts per page (max 100)

Response

accounts
array
Array of account objects
pagination
object
Pagination metadata
{
  "accounts": [
    {
      "id": 1,
      "name": "Chase Checking",
      "balance": "$5,432.10",
      "currency": "USD",
      "classification": "asset",
      "account_type": "depository"
    },
    {
      "id": 2,
      "name": "Amex Platinum",
      "balance": "$1,234.56",
      "currency": "USD",
      "classification": "liability",
      "account_type": "credit_card"
    },
    {
      "id": 3,
      "name": "Vanguard 401(k)",
      "balance": "$125,000.00",
      "currency": "USD",
      "classification": "asset",
      "account_type": "investment"
    }
  ],
  "pagination": {
    "page": 1,
    "per_page": 25,
    "total_count": 3,
    "total_pages": 1
  }
}

Error responses

error
string
Error code identifier
message
string
Human-readable error description
{
  "error": "unauthorized",
  "message": "Invalid or missing API key"
}

Account types

TypeDescriptionClassification
depositoryBank accounts (checking, savings)Asset
credit_cardCredit card accountsLiability
investmentBrokerage and retirement accountsAsset
cryptoCryptocurrency exchange accountsAsset
loanLoan accounts (mortgage, personal, student)Liability
propertyReal estate propertiesAsset
vehicleVehiclesAsset
other_assetOther assetsAsset
other_liabilityOther liabilitiesLiability

Build docs developers (and LLMs) love