Skip to main content

List Accounts

GET /v1/accounts

Returns all your accounts. Supports cursor pagination and optional ledger filter.

Query parameters

ParameterRequiredDefaultDescription
ledgerNoallFilter by ledger ID
limitNo20Max results (1-100)
cursorNoPagination cursor from previous response

Response 200

{
"data": {
"tenant_id": "f714f6af-...",
"accounts": [
{
"id": "ba9755d7e835cdeea6bca803721c7eba",
"ledger": 1001,
"code": 100,
"balance_type": "credit",
"status": "active",
"created_at": "2026-04-06T22:45:01Z"
}
]
},
"meta": {
"limit": 20,
"next_cursor": "1712345678000000000",
"has_more": false
}
}

Pagination

When has_more is true, pass next_cursor as the cursor query parameter to get the next page.

GET /v1/accounts?cursor=1712345678000000000&limit=20