List chart of accounts
Returns the company's whole chart of accounts: MagicDoor's built-in accounts first, then the accounts this company added. The list is not paginated. Requires the chart_of_accounts:read permission.
Authorization
AuthorizationstringrequiredBearer token — Send your API token in the Authorization header as Bearer <token>. Requests without a valid token are rejected with 401 Unauthorized.
Response
200 · MagicDoor's built-in accounts followed by the company's own, deleted accounts excluded.
chartOfAccountsChartOfAccount[]The accounts available to this company.
401 · The access token is missing, expired, or not for this company.
403 · The caller does not hold the `chart_of_accounts:read` permission.
Built-in accounts are shared, not copied
Every company sees the same set of MagicDoor built-in accounts — Cash, Accounts Receivable, Security Deposits, Rent Income, and so on. They belong to no company, their id is their six-digit account number, and they cannot be updated or deleted. Only the accounts a company adds itself carry a Snowflake id and can be edited.