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

# Get Document

> Get a single document by ID with sections, sources, and metadata. Only returns documents belonging to the authenticated user's organization.



## OpenAPI

````yaml /api-reference/openapi-v1.json get /api/v1/documents/{document_id}
openapi: 3.0.0
info:
  title: Artos API
  description: API for document generation, template management, and document organization
  version: 1.0.0
  contact:
    name: Artos Support
    email: internal@artosai.com
servers:
  - url: https://api.artosai.com
    description: Production server
  - url: http://localhost:8000
    description: Local development server
security:
  - bearerAuth: []
paths:
  /api/v1/documents/{document_id}:
    get:
      tags:
        - Documents
      summary: Get Document
      description: >-
        Get a single document by ID with sections, sources, and metadata. Only
        returns documents belonging to the authenticated user's organization.
      operationId: getDocument
      parameters:
        - name: document_id
          in: path
          required: true
          description: UUID of document
          schema:
            type: string
      responses:
        '200':
          description: Document retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetDocumentFromIdResponse'
        '401':
          description: Authentication failed or missing token
        '403':
          description: User has no organization
        '404':
          description: Document not found or not accessible
        '500':
          description: Database error
components:
  schemas:
    GetDocumentFromIdResponse:
      type: object
      properties:
        document:
          type: object
          description: Complete document details with sections and metadata
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Bearer token authentication. Token provides organization-scoped access.

````