Get Document
Returns detailed information for a single document.
Authorizations
Every request authenticates with an API key: Authorization: Bearer {API_KEY}. App endpoints take an app API key; knowledge endpoints take a knowledge base API key (Get Started).
Keep keys server-side; never embed them in client code. Requests with a missing or invalid key fail with HTTP 401 (unauthorized).
Query Parameters
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 Response
Document details. The returned fields depend on the metadata query parameter.
Whether the document is archived.
Average character length of chunks.
Unix timestamp when processing completed, null if not yet completed.
Unix timestamp of document creation.
ID of the user who created the document.
Origin of the document. api for API creation, web for UI creation.
Data source details. For file uploads, this detail endpoint returns the full file object under upload_file (the list endpoint returns only upload_file_id).
How the document was uploaded. upload_file for file uploads, notion_import for Notion imports.
Knowledge-base-level processing rule configuration.
ID of the processing rule applied to this document.
Unix timestamp when the document was disabled, null if enabled.
ID of the user who disabled the document, null if enabled.
Display-friendly indexing status for the UI.
Document chunking mode. text_model for standard text, hierarchical_model for parent-child, qa_model for QA pairs.
Language of the document content.
Custom metadata key-value pairs for this document.
Document type classification, null if not set.
Document-level processing rule configuration.
Whether the document is enabled for retrieval.
Error message if indexing failed, null otherwise.
Number of times this document has been retrieved.
Document identifier.
Time taken for indexing in seconds, null if not completed.
Current indexing status, e.g. waiting, parsing, cleaning, splitting, indexing, completed, error, paused.
Document name.
Whether the document needs summary generation.
Position index within the knowledge base.
Number of chunks in the document.
Status of summary indexing, null if summary index is not enabled.
Number of tokens in the document.
Unix timestamp of last update, null if never updated.