Path Parameters
Unique identifier of the knowledge base (UUID format)
Unique identifier of the document (UUID format)
Response
Knowledge base ID this document belongs to
Unique identifier for the document (UUID)
Document name (nullable)
URL to access the document file
Processing status:
pending, processing, completed, failedISO 8601 timestamp of when the document was added
ISO 8601 timestamp of last update
Additional document metadata (file type, size, etc.)
Number of text chunks extracted from the document
Example Request
Example Response
raw_data field contains the complete document content. This can be very large for documents like PDFs or long markdown files.
Notes
- Use this endpoint to check if a document has been fully processed
- The
chunks_countfield indicates how many searchable chunks were extracted - Documents with
status: "failed"may need to be re-uploaded
See Also
- [List Documents](/API reference/v1/knowledge/list-documents) - List all documents in a knowledge base
- [Add Documents](/API reference/v1/knowledge/add-documents) - Add new documents
- [Delete Document](/API reference/v1/knowledge/delete-document) - Remove a document
Authorizations
API Key for authentication
Response
Successful Response
Represents a document item within a Knowledge Base.
Attributes: kb_id (Optional[str]): KB identifier. id (str): Document unique identifier. document_url (str): URL of the document. raw_data (Optional[str]): Raw textual data of the document. local_env (Optional[bool]): Indicates if the document is in a local environment. Defaults to False.
Document URL
KB identifier
Document unique identifier
Organization ID
Raw data (textual)
Is local
Is sync?

