Retrieve detailed information about a specific document, including its indexing status, metadata, and processing statistics.
API Key authentication. For all API requests, include your API Key in the Authorization HTTP Header, prefixed with Bearer. Example: Authorization: Bearer {API_KEY}. Strongly recommend storing your API Key on the server-side, not shared or stored on the client-side, to avoid possible API-Key leakage that can lead to serious consequences.
Knowledge base ID.
Document ID.
all returns all fields including metadata. only returns only id, doc_type, and doc_metadata. without returns all fields except doc_metadata.
all, only, without Document details. The response shape varies based on the metadata query parameter. When metadata is only, only id, doc_type, and doc_metadata are returned. When metadata is without, doc_type and doc_metadata are omitted.
Document identifier.
Position index within the knowledge base.
How the document was uploaded. upload_file for file uploads, notion_import for Notion imports.
Raw data source information.
ID of the processing rule applied to this document.
Knowledge-base-level processing rule configuration.
Document-level processing rule configuration.
Document name.
Origin of the document. api for API creation, web for UI creation.
ID of the user who created the document.
Unix timestamp of document creation.
Number of tokens in the document.
Current indexing status, e.g. waiting, parsing, cleaning, splitting, indexing, completed, error, paused.
Error message if indexing failed, null otherwise.
Whether the document is enabled for retrieval.
Unix timestamp when the document was disabled, null if enabled.
ID of the user who disabled the document, null if enabled.
Whether the document is archived.
Display-friendly indexing status for the UI.
Total word count of the document.
Number of times this document has been retrieved.
Document chunking mode. text_model for standard text, hierarchical_model for parent-child, qa_model for QA pairs.
Language of the document content.
Document type classification, null if not set.
Custom metadata key-value pairs for this document.
Unix timestamp when processing completed, null if not yet completed.
Unix timestamp of last update, null if never updated.
Time taken for indexing in seconds, null if not completed.
Number of chunks in the document.
Average character length of chunks.
Status of summary indexing, null if summary index is not enabled.
Whether the document needs summary generation.