get_document
Fetch a specific document's metadata by ID, including correspondent, type, tags, and custom fields. Content is excluded by default.
Instructions
Get a specific document by ID with full details including correspondent, document type, tags, and custom fields. Note: Document content is excluded from results by default. Use 'get_document_content' to retrieve content when needed. Documents can have several file versions (versions; manage them with upload_document_version / update_document_version / delete_document_version). Content (get_document_content) and get_document_metadata follow the LATEST version, but page_count, original_file_name and archived_file_name always describe the ROOT (first) version — e.g. after a password-protected PDF was unlocked into a new version, page_count stays null. Don't use page_count to judge whether a document is readable; check its content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| fields | No | Return only these fields to keep the response small, e.g. ["title", "tags"]. id is always included. |