Categories
5 endpoints under /v1/categories.
List categories visible to the current workspace.
/v1/categoriesEach row carries document_count, scoped to the same tenant as the documents pane.
Requirescategories:read
Query parameters
include_sharedbooleanoptionalInclude org-wide shared categories
Headers
X-Organization-IDstringoptionalX-Workspace-IDstringoptional
Failures return the error envelope; branch on error_code.
Create a category in the caller's workspace, or org-wide.
/v1/categoriesmake_global=True forces workspace_id=NULL.
Requirescategories:write
Headers
X-Organization-IDstringoptionalX-Workspace-IDstringoptional
Request body
namestringrequireddescriptionstringoptionalapplies_toenumoptionalRole-affinity: 'kb' tags only knowledge-base documents, 'guideline' tags only guideline documents, 'any' tags either.
kbguidelineanyis_metabooleanoptionalWhen True the RFP wizard surfaces this category as a bulk-toggle chip above its matching-kind doc grid.
Failures return the error envelope; branch on error_code.
Get category details and a document count.
/v1/categories/{category_id}Requirescategories:read
Path parameters
category_idstring (uuid)required
Headers
X-Organization-IDstringoptionalX-Workspace-IDstringoptional
Failures return the error envelope; branch on error_code.
Update a category's name, description, applies_to or is_meta.
/v1/categories/{category_id}Requirescategories:write
Path parameters
category_idstring (uuid)required
Headers
X-Organization-IDstringoptionalX-Workspace-IDstringoptional
Request body
namestringoptionaldescriptionstringoptionalapplies_toenumoptionalkbguidelineanyis_metabooleanoptional
Failures return the error envelope; branch on error_code.
Delete a category.
/v1/categories/{category_id}Documents stay; their tag is removed.
Requirescategories:delete
Path parameters
category_idstring (uuid)required
Headers
X-Organization-IDstringoptionalX-Workspace-IDstringoptional
Failures return the error envelope; branch on error_code.