food_and_drink_groceries). Agents use list_categories to discover valid slugs before filtering transactions or setting rules; export_categories returns the full taxonomy as TSV for bulk external editing.
list_categories
Returns the full category taxonomy as a tree. Each category has a stableslug, display_name, icon, color, and optional children.
Scope: Read
Mirrors: GET /api/v1/categories
Parameters
None. Pass an empty object.Example input
Example output
Example output
export_categories
Returns all category definitions as TSV text. The returned format can be edited externally (text editor, agent) and re-imported viaimport_categories. Columns: slug, display_name, parent_slug, icon, color, sort_order, hidden, merge_into.
Slugs are immutable identifiers; display_name and other fields can be changed. The merge_into column is always empty on export — it’s an optional write-time directive for the import path.
Scope: Read
Parameters
None.Example input
Example output
The response content is a single text block containing TSV:export_categories → edit the TSV → call import_categories with the edited content.