Retrieve a single file by ID
Retrieve detailed information for a single file by its ID. Only files that the authenticated user is authorized to access will be returned. Returns 404 if the file does not exist or the user does not have access.
Query Parameters:
- include_content: Set to ‘true’ to include the full text content of the document (default: false)
The response includes comprehensive document details including:
- Basic metadata (id, filename, title, extension, dates, page count)
- Full text content of the document (only when include_content=true)
- Processing status (status, status_vision, status_detail if failed)
- Associated tags and workspace information
- File size (if available)
- Parser/ingestion pipeline (if available, after parsing starts)
- Signature (TLSH hash for duplicate detection)
Documentation Index
Fetch the complete documentation index at: https://docs.lighton.ai/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
A unique integer value identifying this Document.
Query Parameters
When true, include the full text content of the document in the response (default: false). Recommended to only enable when needed as content can be large.
Response
Detailed file information
Filename of the document
Workspace the document belongs to
Document summaries (all languages)
File extension of the document
Creation date of the resource
Total number of pages
Size of the file in bytes.
List of tags associated with the document
User who created the file. Null when the file was created by the system.
Upload session UUID associated with this document
TLSH hash for duplicate detection.
External document metadata
255pending- Pendingparsing- Parsingparsing_failed- Parsing Failedembedding- Embeddingembedding_failed- Embedding Failedembedded- Embeddedfail- Failupdating- Updating
pending, parsing, parsing_failed, embedding, embedding_failed, embedded, fail, updating pending- Pendingprocessing- Processingembedded- Embeddedfail- Fail-- Not available
pending, processing, embedded, fail, - Full text content of the document. Only included when include_content=true query parameter is provided.
Detailed error information. Only present when document processing has failed.
Parser/ingestion pipeline used for document processing (e.g., 'v2.1', 'v3.0').