Get document
get_documentRetrieve a document's full metadata, notes, and custom fields by ID; optionally include full text when MCP resources are unavailable.
Instructions
Get a single document's full metadata, with its notes and custom fields.
The preferred way to read a document's text is its MCP resource at paperless://documents/{document_id}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_id | Yes | The document's ID, from search_documents (required) | |
| include_content | No | Whether to include the full text content. Pass true only if you cannot read MCP resources (default: false) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| uri | Yes | MCP resource URI for the document's full text content | |
| tags | Yes | Tag IDs, resolvable with list_tags(ids=[...]) | |
| added | Yes | When the document entered the archive | |
| notes | No | ||
| title | Yes | ||
| content | No | Full text content, included only when requested | |
| created | Yes | The date on the document itself | |
| web_url | No | Link to open this document in the Paperless web UI | |
| modified | Yes | ||
| mime_type | No | ||
| page_count | No | ||
| search_hit | No | Present only on results of a full-text query | |
| storage_path | Yes | Storage path ID, resolvable with list_storage_paths(ids=[...]) | |
| correspondent | Yes | Correspondent ID, resolvable with list_correspondents(ids=[...]) | |
| custom_fields | No | ||
| document_type | Yes | Document type ID, resolvable with list_document_types(ids=[...]) | |
| original_file_name | No | ||
| archive_serial_number | No |