Skip to main content
GET
/
v1
/
accounts
Get Accounts
curl --request GET \
  --url https://api.bookeeping.ai/public-api/v1/accounts \
  --header 'Authorization: Bearer <token>'
{
  "message": "<string>",
  "metaData": {
    "warnings": [
      "<string>"
    ]
  },
  "data": {
    "accounts": [
      {
        "_id": "<string>",
        "projectId": "<string>",
        "accountType": "Depository",
        "createdAt": "2023-11-07T05:31:56Z",
        "updatedAt": "2023-11-07T05:31:56Z",
        "nickName": "<string>",
        "accountName": "<string>",
        "accountNumber": "<string>"
      }
    ],
    "count": 123
  }
}

Authorizations

Authorization
string
header
required

API key for authentication. Get your key from the Dashboard > Settings > API Access.

Query Parameters

page
string

The page number 1 - n

limit
string

The number of items per page. Max is 250. Default is 10.

sortKey
enum<string>

The key to sort the items by. Default is _id.

Available options:
_id,
name,
createdAt,
updatedAt,
transactionDate
sortOrder
enum<string>

The order to sort the items by. Default is 1. -1 for descending. 1 for ascending.

Available options:
1,
-1
query
string

Response

Get Accounts executed successfully

message
string

Success message

metaData
object
data
object