---
search:
  tags:
    - projects
    - GET
seo:
  description: >-
    What is returned: Complete details for a specific project… Reference for the
    GET /projects/{projectId}/documents/{id} endpoint in the Leadtime Public API
    API.
sidebar:
  badge: GET
  label: Get document details
title: Get document details
type: openapi-operation
---
**What is returned:**
Complete details for a specific project document, including all metadata, content, and configuration.

**Content format:**
- Description and custom editor content are returned as HTML (converted from internal IDoc format)
- This allows direct display in web browsers or further HTML processing
- Original formatting, headings, lists, and tables are preserved

**Custom variables:**
If the document uses custom variables (defined in templates), all variable definitions and their current values are included:
- Variable name, type, and description
- Current value (formatted according to variable type)
- Available options (for Select/MultiSelect types)
- Required flag indicating if value must be provided

**Document configuration:**
- Layout options: table of contents, title page, indication mode
- Heading style: controls how headings are numbered (normal, sequential, sequential from level 2, sequential with paragraph signs)
- Type and status: document category and workflow state
- Project version binding: which project snapshot this document is based on

**Use cases:**
- Display document in a viewer/editor interface
- Show document metadata and properties
- Edit document content and variables
- Export document to DOCX format
- Track document status and history

<Operation source="api-reference" id="projectdocumentscontroller-getdocument" />
