Skip to Content

Accounts API

Access your chart of accounts.

Scope required: accounts:read

List Accounts

GET /accounts

Returns all accounts in your chart of accounts.

Query Parameters

ParameterTypeDescription
typestringFilter by type: asset, liability, equity, revenue, expense
is_activebooleanFilter by active status

Example Request

curl -H "Authorization: Bearer rb_live_YOUR_API_KEY" \ "https://api.rebased.app/api/v1/external/accounts?type=revenue"

Example Response

{ "accounts": [ { "id": "550e8400-e29b-41d4-a716-446655440000", "code": "4000", "name": "Sales Revenue", "type": "revenue", "category": "Operating Revenue", "description": "Income from sales", "is_active": true, "is_system": false, "tax_code_id": "660e8400-e29b-41d4-a716-446655440000", "created_at": "2026-01-01T00:00:00Z", "updated_at": "2026-01-01T00:00:00Z" } ], "total": 1 }

Get Account

GET /accounts/{id}

Returns a single account by ID.

Path Parameters

ParameterTypeDescription
idstring (UUID)The account ID

Account Object

FieldTypeDescription
idstringUnique identifier (UUID)
codestringAccount code
namestringAccount name
typestringAccount type: asset, liability, equity, revenue, expense
categorystringAccount category
descriptionstringAccount description
is_activebooleanWhether the account is active
is_systembooleanWhether this is a system account
tax_code_idstringDefault tax code ID
created_atdatetimeWhen created
updated_atdatetimeWhen last updated

Account Types

TypeDescription
assetThings you own (bank accounts, equipment, receivables)
liabilityThings you owe (loans, payables, tax obligations)
equityOwner’s stake in the business
revenueIncome from sales and services
expenseCosts of running the business
Last updated on