Skip to content

List categories

GET
/categories/
curl --request GET \
--url https://app.commitly.com/api/categories/ \
--header 'Authorization: Bearer <token>'

Returns the categories of the company as a plain JSON array. Not paginated.

  • is_obsolete: false = active, true = archived.
  • is_category: true = budgets and transactions can be mapped to this category. Use only such categories when creating budgets.
  • is_default: marks system categories that cannot be mapped. Do not use them for creating budgets.
  • is_aggregating: true for categories that aggregate other categories.
  • A category whose id is not the parent of any other category is a leaf category.

List of categories.

Media typeapplication/json
Array<object>
object
id
integer
parent

ID of the parent category.

integer | null
name
string
slug
string
description
string
order

Display position.

integer
is_obsolete

false = active, true = archived.

boolean
is_category

true = budgets and transactions can be mapped to this category.

boolean
is_aggregating

true for categories that aggregate other categories.

boolean
is_default

Marks system categories that cannot be mapped. Do not use them for creating budgets.

boolean
Example
[
{
"id": 1001,
"parent": null,
"name": "Change in liquid funds",
"slug": "change-in-liquid-funds",
"description": "",
"order": 6,
"is_obsolete": false,
"is_category": false,
"is_aggregating": true,
"is_default": false
},
{
"id": 1002,
"parent": 1001,
"name": "Revenue",
"slug": "revenue",
"description": "",
"order": 1,
"is_obsolete": false,
"is_category": true,
"is_aggregating": false,
"is_default": false
}
]

The access token is invalid or has expired. Request a new token. The message is localized (see Accept-Language).

Media typeapplication/json
object
detail
required

Error message.

string
code

Present only if the company’s edition does not include the function; value billing_plan_permission_denied.

string
Example
{
"detail": "Invalid token."
}
WWW-Authenticate
string

Authentication scheme, Bearer.

Example
Bearer

No access token was sent, or the credentials are not allowed to call this endpoint. If the company’s COMMITLY edition does not include the requested function, the body additionally contains "code": "billing_plan_permission_denied".

Media typeapplication/json
object
detail
required

Error message.

string
code

Present only if the company’s edition does not include the function; value billing_plan_permission_denied.

string
Example
{
"detail": "User must be authenticated to access this resource."
}