---
title: "List classes"
method: GET
path: "/classes"
tags: ["Accounting"]
---

# List classes

`GET /classes`

## Request

- Base URL: `https://ledgerhq.pro/api/v1`
- URL: `https://ledgerhq.pro/api/v1/classes`
- Auth: one of:
  - HTTP bearer and API key in header `x-organization-id`
  - HTTP bearer and API key in header `x-organization-id`

Classes tag income and expense lines (for example a rental property, department, or location) for Profit & Loss by Class.

## Query parameters

- `includeInactive` boolean
- `includeUsage` boolean

## Response `200`

{ data: Class[] } with id, code, name, parentId, and isActive

## Other responses

- `default`: Error response

---

[API](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api.md) · [All operations](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api/revisions/01c3e57d281f?raw)
