v84

latestOpenAPI 3.1.0raw.githubusercontent.com2026-07-0985248447.1 KB
Knowledge bases

Add Document

Add a document to a knowledge base using JSON text or multipart file upload.

post/v1/knowledge-bases/{knowledge_base_id}/documents

Path parameters

knowledge_base_idstring uuid required

Unique knowledge base ID.

Unique knowledge base ID.

Query parameters

organization_idstring uuid nullable

Organization scope for API keys that can access multiple organizations.

Organization scope for API keys that can access multiple organizations.

Request body

namestring required

Unique document name.

textstring required

Text content to add to the document.

folderstring nullable

Folder path to add the document under.

Response

Successful Response

messagestring required

Operation result message.

namestring required

Document name.

pathstring required

Document path.

folderstring nullable

Document folder path.