Skip to main content
Groups let you organise documents into named collections that can be queried or managed together. Assign documents to a group on ingest, or move them later via the Documents endpoint.

List Groups

Return all groups in your workspace.

Endpoint

GET /api/v1/groups

Response

array

Example


Create Group

Create a new group.

Endpoint

POST /api/v1/groups

Request Body

application/json
string
required
Display name for the group

Response

string
The newly created group identifier

Example


Delete All Documents in a Group

Remove all documents assigned to a group. The group itself is kept.

Endpoint

DELETE /api/v1/groups/{group_id}/documents

Path Parameters

string
required
The group identifier

Example


Delete Group

Delete an empty group. The group must have no documents assigned to it — call Delete All Documents in a Group first, or pass delete_documents=true in the Python SDK.

Endpoint

DELETE /api/v1/groups/{group_id}

Path Parameters

string
required
The group identifier

Example

A group with documents still assigned cannot be deleted — you will receive a 400 error. Remove or reassign all documents first.