Create Collection

Create a new collection for organizing document embeddings. Collections serve as knowledge bases for RAG-enabled features: - Group related documents together - Enable contextual AI responses - Support multiple embedding instances - Organize information by topic or use case You can add documents to the collection after creation.

Authentication

AuthorizationBearer

API key or access token, sent as Authorization: Bearer <token>. The simplest option: create an API key in your dashboard under Settings, then paste it here.

OR
AuthorizationBearer

API key or access token, sent as Authorization: Bearer <token>. The simplest option: create an API key in your dashboard under Settings, then paste it here.

Path parameters

org_idstringRequiredformat: "uuid"
The unique identifier of the organization.
project_idstringRequiredformat: "uuid"
The unique identifier of the project.

Request

This endpoint expects an object.
titlestringRequired
document_embedding_instance_idslist of stringsOptionalDefaults to []

Response

Collection created successfully
titlestring
project_idstringformat: "uuid"
idstringformat: "uuid"
createdstring
modifiedstring
summarystring or nullOptional
embedding_instanceslist of objectsOptionalDefaults to []
task_idslist of stringsOptionalDefaults to []

Errors

400
Bad Request Error
403
Forbidden Error
422
Unprocessable Entity Error