Skip to main content

Overview

The Categories API lets you manage the colour-coded category labels that group your documents and tasks. Each category has a name, an emoji, and a colour, and is scoped to a single user. All endpoints are authenticated. Include a valid Auth0 access token in the Authorization header:
The API base URL is:

The Category object

Example

The emoji and color fields are new in V2. Categories created before V2 may return null for both — clients should treat that as “use the default neutral tint” and “no emoji”.

Endpoints

List categories

Returns every category for the authenticated user, including their documentCount and taskCount.
Response — 200 OK

Create a category

Creates a new category for the authenticated user. name is required; emoji and color are optional. Request body
Response — 201 Created
Errors

Update a category

Updates the name, emoji, or colour of an existing category. This is the new endpoint introduced in V2 — previously you could only create or delete. You can update any combination of fields. Fields you don’t send are left unchanged. Request body
Response — 200 OK
Errors
System categories (created automatically when you signed up) can be renamed, recoloured, and re-emojied via this endpoint, but cannot be deleted.

Delete a category

Removes a user-created category. Any documents or tasks that were tagged with it are un-tagged automatically.
Response — 200 OK
Errors

Suggest categories for a document

Returns AI-ranked category suggestions for a document, based on its content and the user’s existing categories. Suggestions are advisory — the client decides whether to apply them. Request body
Response — 200 OK
AI-suggested categories are not enabled for every account yet. When the feature is off, this endpoint returns an empty array.

Field validation reference

color

Adminest validates the colour as a hex string in the #RRGGBB form. Both uppercase and lowercase digits are accepted.
If you send null (or omit the field on create), Adminest uses a neutral grey tint when rendering the category.

emoji

The emoji field accepts a single emoji grapheme, including emoji that are technically multiple codepoints (e.g. "👨‍👩‍👧"). Plain text is rejected.
Send null (or omit on create) for “no emoji”.

Documents

Apply categories from the UI

Categories guide

User-facing guide to managing categories