> ## Documentation Index
> Fetch the complete documentation index at: https://docs.trycherry.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# The chart of accounts

> Every ledger account: number, name, category (asset/liability/equity/revenue/expense), and active flag. Account numbers are the vocabulary the rest of the API speaks — transaction categories and journal lines both resolve against this list. Small enough to return whole; not paginated.



## OpenAPI

````yaml /openapi.json get /accounts
openapi: 3.0.3
info:
  title: Cherry API
  version: 1.0.0
  description: >-
    Cherry's public developer API — programmatic access to a business's books as
    Cherry keeps them: bank transactions with their categorizations, the chart
    of accounts, the double-entry journal, financial statements, legal entities,
    the tax-obligation calendar, and the fiscal health score.


    Authenticate every request with an API key: `Authorization: Bearer
    ck_live_…`. Keys are created in the Cherry app and are scoped to one
    business (tenant) — there is no tenant id in any URL. Keys carry a `read`
    and/or `write` scope; every GET needs `read`, mutations need `write`.


    Conventions: successful responses wrap the payload in `{ "data": … }`; list
    endpoints add `{ "meta": { "pagination": { limit, offset, nextOffset } } }`
    — pass `nextOffset` back as `offset` until it is null. Errors are `{
    "error": string, "reason"?: string }` with conventional status codes. Dates
    are `YYYY-MM-DD`; money amounts are numbers in the row's currency. Requests
    are rate-limited per key with token buckets (429 + `Retry-After` when
    exhausted); report generation has a smaller budget than plain reads.
servers:
  - url: https://api.trycherry.ai/v1
security:
  - bearerAuth: []
tags:
  - name: Transactions
    description: Bank feed rows and their categorizations.
  - name: Accounts
    description: The tenant's chart of accounts.
  - name: Bank accounts
    description: >-
      Connected bank accounts — Plaid-linked and manual. Manual institutions are
      how developers without a Plaid connection bring their own accounts and
      transactions.
  - name: Bank statements
    description: >-
      Statement uploads — send a statement PDF/image and Cherry transcribes it,
      verifies the balances reconcile, and lands the transactions on a manual
      bank account. The no-export alternative to pushing rows yourself.
  - name: Journal
    description: The double-entry journal (entries and lines).
  - name: Reports
    description: Trial balance and financial statements.
  - name: Entities
    description: Legal entities behind the tenant.
  - name: Obligations
    description: The tax/compliance calendar Cherry tracks.
  - name: Health
    description: Cherry's composite fiscal readiness score.
  - name: Meta
    description: The API's own machine-readable contract.
paths:
  /accounts:
    get:
      tags:
        - Accounts
      summary: The chart of accounts
      description: >-
        Every ledger account: number, name, category
        (asset/liability/equity/revenue/expense), and active flag. Account
        numbers are the vocabulary the rest of the API speaks — transaction
        categories and journal lines both resolve against this list. Small
        enough to return whole; not paginated.
      operationId: listAccounts
      responses:
        '200':
          description: The full chart of accounts
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/LedgerAccount'
              example:
                data:
                  - id: b47a9c2e-1d3f-4a5b-8c6d-0e9f8a7b6c5d
                    entityId: 3f9c1e0a-8b2d-4e6f-9a01-5c7d2b8e4f10
                    accountNumber: '1010'
                    name: Checking
                    category: asset
                    country: US
                    isActive: true
                  - id: a36f8b1d-0c2e-4f4a-8b5c-7d6e5f4a3b2c
                    entityId: 3f9c1e0a-8b2d-4e6f-9a01-5c7d2b8e4f10
                    accountNumber: '3000'
                    name: Opening Balance Equity
                    category: equity
                    country: US
                    isActive: true
                  - id: c58b0d3f-2e4a-4b6c-9d7e-1f0a9b8c7d6e
                    entityId: 3f9c1e0a-8b2d-4e6f-9a01-5c7d2b8e4f10
                    accountNumber: '4010'
                    name: Revenue
                    category: revenue
                    country: US
                    isActive: true
                  - id: d69c1e4a-3f5b-4c7d-0e8f-2a1b0c9d8e7f
                    entityId: 3f9c1e0a-8b2d-4e6f-9a01-5c7d2b8e4f10
                    accountNumber: '6110'
                    name: Software & Subscriptions
                    category: expense
                    country: US
                    isActive: true
        '401':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    LedgerAccount:
      type: object
      properties:
        id:
          type: string
          format: uuid
        entityId:
          type: string
          format: uuid
        accountNumber:
          type: string
          description: e.g. 5010.
        name:
          type: string
        category:
          type: string
          enum:
            - asset
            - liability
            - equity
            - revenue
            - expense
        country:
          type: string
          enum:
            - US
            - MX
        isActive:
          type: boolean
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: Stable machine-readable error code.
        reason:
          type: string
          description: Human-readable explanation.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: ck_live_…
      description: >-
        Cherry API key, created in the app. Sent as `Authorization: Bearer
        ck_live_…`.

````