> ## Documentation Index
> Fetch the complete documentation index at: https://docs.autype.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get document

> Get a document by ID including its latest content (JSON snapshot). Only documents in PUBLIC projects belonging to the organization are accessible.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/dev/documents/{documentId}
openapi: 3.0.0
info:
  title: Autype Developer API
  description: >-
    Autype Developer API for programmatic document generation.


    ## Authentication

    All endpoints require an API key. Include it in the `X-API-Key` header or as
    a Bearer token.


    ## Rate Limiting

    API requests are rate-limited to 100 requests per minute per API key.


    ## Token Billing

    Rendering operations consume tokens from your organization's balance.
  version: '1.0'
  contact: {}
servers:
  - url: https://api.autype.com
    description: Production
security: []
tags:
  - name: Temporary Images
    description: Upload and manage temporary images for document rendering
  - name: Render
    description: Render documents to PDF, DOCX, or ODT
  - name: Bulk Render
    description: Bulk document generation with variable substitution
  - name: Documents
    description: Document variable inspection
  - name: Projects
    description: List organization projects
paths:
  /api/v1/dev/documents/{documentId}:
    get:
      tags:
        - developer-api
      summary: Get document
      description: >-
        Get a document by ID including its latest content (JSON snapshot). Only
        documents in PUBLIC projects belonging to the organization are
        accessible.
      operationId: DocumentsController_getDocument_v1
      parameters:
        - name: documentId
          required: true
          in: path
          description: Document ID
          schema:
            type: string
      responses:
        '200':
          description: Document with content
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetDocumentResponseDto'
        '401':
          description: Invalid or missing API key
        '403':
          description: Document belongs to a private project or another organization
        '404':
          description: Document not found
      security:
        - api-key: []
components:
  schemas:
    GetDocumentResponseDto:
      type: object
      properties:
        id:
          type: string
          description: Document ID
        title:
          type: string
          description: Document title
        projectId:
          type: string
          description: Project ID the document belongs to
        description:
          type: object
          description: Document description
          nullable: true
        content:
          type: object
          description: Document content as JSON (latest snapshot)
        createdAt:
          format: date-time
          type: string
        updatedAt:
          format: date-time
          type: string
      required:
        - id
        - title
        - projectId
        - content
        - createdAt
        - updatedAt
  securitySchemes:
    api-key:
      type: apiKey
      in: header
      name: X-API-Key
      description: API Key (starts with ak_...)

````