Skip to content

API Reference

Documents

Manage the knowledge-base documents in your tenant and attach them to assistants.

For a step-by-step walkthrough, read the Knowledge base guide.

Endpoints

MethodPathPurpose
GET/documentsList documents
POST/documentsCreate document
GET/documents/{id}Get document
PATCH/documents/{id}Update document
DELETE/documents/{id}Delete document
GET/documents/{id}/contentGet document content
GET/assistants/{id}/documentsList assistant documents
POST/assistants/{id}/documentsAttach document
PATCH/assistants/{id}/documents/{documentId}Update document link
DELETE/assistants/{id}/documents/{documentId}Detach document
Try it in the API Explorer