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

# Get editable document content

> Read a supported text or Markdown document's content and file_hash. Keep the hash to detect concurrent changes on the next save.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/knowledge-base/documents/{document_uuid}/content
openapi: 3.1.0
info:
  title: Athena API
  version: 1.0.0
  description: >-
    Hosted Athena customer API. Authenticate backend management and call-trigger
    requests with X-API-Key. Website embeds and artifact playback use their own
    scoped tokens. Provider availability, feature settings, and verification
    limits are described in the guides.
servers:
  - url: https://athena.tryopencomputer.com
    description: Hosted Athena API
security: []
paths:
  /api/v1/knowledge-base/documents/{document_uuid}/content:
    get:
      tags:
        - Knowledge Base
      summary: Get editable document content
      description: >-
        Read a supported text or Markdown document's content and file_hash. Keep
        the hash to detect concurrent changes on the next save.
      operationId: >-
        get_document_content_api_v1_knowledge_base_documents__document_uuid__content_get
      parameters:
        - name: document_uuid
          in: path
          required: true
          schema:
            type: string
            title: Document Uuid
        - name: authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
        - name: X-API-Key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DocumentContentResponseSchema'
        '400':
          description: Bad Request
        '401':
          description: Authentication is missing or invalid.
        '404':
          description: Not found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '500':
          description: Internal Server Error
      security:
        - ApiKeyAuth: []
        - BearerAuth: []
components:
  schemas:
    DocumentContentResponseSchema:
      properties:
        document_uuid:
          type: string
          title: Document Uuid
        filename:
          type: string
          title: Filename
        retrieval_mode:
          type: string
          title: Retrieval Mode
        content:
          type: string
          title: Content
          description: The stored file's text, as uploaded
        file_hash:
          type: string
          title: File Hash
          description: Version token; send it back as expected_file_hash when saving
      type: object
      required:
        - document_uuid
        - filename
        - retrieval_mode
        - content
        - file_hash
      title: DocumentContentResponseSchema
      description: Raw text of an editable (text or Markdown) document.
    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:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
    BearerAuth:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.