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

# Get document

> Returns a document by ID. Documents are AI-generated artifacts from meetings, such as summaries, action items, or notes. You can request the content in multiple formats.



## OpenAPI

````yaml GET /documents/{document_id}
openapi: 3.1.0
info:
  title: Timeless Public API
  version: 0.1.0
  description: >-
    The Timeless API is a REST API served over HTTPS. All requests and responses
    use JSON, and all endpoints require authentication.
servers:
  - url: https://api.timeless.day/v1
    description: Production
security:
  - HTTPBearer: []
tags:
  - name: meetings
    description: Retrieve meetings, recordings, and transcripts.
  - name: rooms
    description: Retrieve rooms that group related meetings.
  - name: documents
    description: Retrieve AI-generated meeting documents.
  - name: upload
    description: Upload audio or video files for transcription.
  - name: webhooks
    description: Manage webhook subscriptions for event notifications.
paths:
  /documents/{document_id}:
    get:
      tags:
        - documents
      summary: Get document
      description: >-
        Returns a document by ID. Documents are AI-generated artifacts from
        meetings, such as summaries, action items, or notes. You can request the
        content in multiple formats.
      operationId: get_document_endpoint_v1_documents__document_id__get
      parameters:
        - name: document_id
          in: path
          required: true
          schema:
            type: string
            title: Document Id
          description: The document ID (e.g., `doc_abc123`).
          example: doc_abc123
        - name: format
          in: query
          required: false
          schema:
            $ref: '#/components/schemas/DocumentFormat'
            description: |-
              Output format for the document content.
              - `html` — HTML markup
              - `markdown` — Markdown text
              - `raw` — raw/plain text
              - `docx` — base64-encoded Word document
              - `json` — JSON array of content blocks
            default: html
          description: |-
            Output format for the document content.
            - `html` — HTML markup
            - `markdown` — Markdown text
            - `raw` — raw/plain text
            - `docx` — base64-encoded Word document
            - `json` — JSON array of content blocks
      responses:
        '200':
          description: The document.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DocumentResponse'
              example:
                id: doc_abc123
                title: Meeting summary
                format: markdown
                content: |
                  # Weekly standup

                  ## Key decisions
                  - Proceed with the new API design

                  ## Action items
                  - Alice: Update the spec by Friday
                created_at: '2025-01-15T10:35:00Z'
        '401':
          description: Authentication required.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: unauthorized
                  message: Authentication required
        '404':
          description: Document not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: not_found
                  message: Resource not found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    DocumentFormat:
      type: string
      enum:
        - html
        - markdown
        - raw
        - docx
        - json
      title: DocumentFormat
    DocumentResponse:
      properties:
        id:
          type: string
          title: Id
          example: doc_abc123
        title:
          type: string
          title: Title
          example: Meeting summary
        format:
          $ref: '#/components/schemas/DocumentFormat'
        content:
          type: string
          title: Content
          description: >-
            Document content in the requested format. For `docx`, this is
            base64-encoded. For `json`, this is a JSON-serialized array of
            content blocks.
        created_at:
          type: string
          format: date-time
          title: Created At
      type: object
      required:
        - id
        - title
        - format
        - content
        - created_at
      title: DocumentResponse
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              example: not_found
            message:
              type: string
              example: Resource not found
            details:
              type: array
              items:
                type: object
                properties:
                  field:
                    type: string
                  message:
                    type: string
          required:
            - code
            - message
      required:
        - error
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer
      description: >-
        API token from your [Timeless
        dashboard](https://my.timeless.day/api-token).

````