API reference

Categories

5 endpoints under /v1/categories.

List categories visible to the current workspace.

get/v1/categories

Each row carries document_count, scoped to the same tenant as the documents pane.

Requirescategories:read

Query parameters

  • include_sharedbooleanoptional

    Include org-wide shared categories

Headers

  • X-Organization-IDstringoptional
  • X-Workspace-IDstringoptional

Failures return the error envelope; branch on error_code.

Request
Response

Create a category in the caller's workspace, or org-wide.

post/v1/categories

make_global=True forces workspace_id=NULL.

Requirescategories:write

Headers

  • X-Organization-IDstringoptional
  • X-Workspace-IDstringoptional

Request body

  • namestringrequired
  • descriptionstringoptional
  • applies_toenumoptional

    Role-affinity: 'kb' tags only knowledge-base documents, 'guideline' tags only guideline documents, 'any' tags either.

    kbguidelineany
  • is_metabooleanoptional

    When 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.

Request
Response

Get category details and a document count.

get/v1/categories/{category_id}

Requirescategories:read

Path parameters

  • category_idstring (uuid)required

Headers

  • X-Organization-IDstringoptional
  • X-Workspace-IDstringoptional

Failures return the error envelope; branch on error_code.

Request
Response

Update a category's name, description, applies_to or is_meta.

put/v1/categories/{category_id}

Requirescategories:write

Path parameters

  • category_idstring (uuid)required

Headers

  • X-Organization-IDstringoptional
  • X-Workspace-IDstringoptional

Request body

  • namestringoptional
  • descriptionstringoptional
  • applies_toenumoptional
    kbguidelineany
  • is_metabooleanoptional

Failures return the error envelope; branch on error_code.

Request
Response

Delete a category.

delete/v1/categories/{category_id}

Documents stay; their tag is removed.

Requirescategories:delete

Path parameters

  • category_idstring (uuid)required

Headers

  • X-Organization-IDstringoptional
  • X-Workspace-IDstringoptional

Failures return the error envelope; branch on error_code.

Request
Response