Skip to main content
The Documents API allows developers to manage documents within Space Uploaded Files programmatically. This enables automated document ingestion from external CMSs, data pipelines, or document management systems.

Base Path & Headers

All document endpoints require the X-API-Key authentication header:

Health Check Ping

GET / Verifies that the API service is online and accessible.

Example Request

Response (200 OK)


List Supported File Types

GET /v1/documents/supported-file-types Returns a list of all supported MIME types and file extensions for document ingestion.

Example Request

Response (200 OK)


List Documents

GET /v1/documents Retrieves documents in Space Uploaded Files. Filter by spaceId and paginate through results using offset and limit.

Query Parameters

Example Request

Response (200 OK)


Upload Document

POST /v1/documents Uploads a new document file into a Space’s Uploaded Files. The upload is processed asynchronously (content extracted, chunked, and vector-indexed).

Query Parameters

Request Body (multipart/form-data)

Example Request

Response (201 Created)


Get Document Details

GET /v1/documents/{id} Fetches metadata and processing status for a specific document.

Path Parameters

Example Request

Response (200 OK)


Update Document

PATCH /v1/documents/{id} Updates a document’s display name or metadata object.

Request Body (application/json)

Example Request

Response (200 OK)


Delete Document

DELETE /v1/documents/{id} Permanently removes a document and its indexed vectors from the Space Uploaded Files.

Example Request

Response (204 No Content)

Next Steps