Skip to main content
The Documents endpoints let you list, fetch, update, and delete documents in your workspace.

List Documents

List documents in your workspace with optional filters.

Endpoint

GET /api/v1/documents

Query Parameters

string
Filter by status: uploading, parsing, completed, failed
string
Filter to documents in a specific group.
string
Comma-separated list of group IDs. Returns documents belonging to any of the specified groups. Cannot be combined with group_id.

Response

array
Array of document objects

Examples


Get Document

Fetch metadata for a single document.

Endpoint

GET /api/v1/documents/{document_id}

Path Parameters

string
required
The document identifier

Response

string
Document identifier
string
Document display name
string
Processing status: uploading, parsing, completed, failed
string
MIME type of the uploaded file
string
Signed URL to download the original file
string
AI-generated summary of the document
integer
Unix timestamp (milliseconds) of upload
string | null
Group identifier if the document belongs to a group

Example

cURL

Update Document

Update a document’s group assignment. Pass null to remove it from its current group.

Endpoint

PATCH /api/v1/documents/{document_id}

Path Parameters

string
required
The document identifier

Request Body

application/json
string | null
required
The group to assign the document to, or null to remove it from any group.

Example


Delete Document

Permanently delete a document and all its indexed content.

Endpoint

DELETE /api/v1/documents/{document_id}

Path Parameters

string
required
The document identifier

Example

Deletion is permanent and cannot be undone. All indexed content for the document is removed immediately.