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

# Retrieve document preview content

> Returns the ProseMirror JSON content of a document, derived from its Y.js collaborative state.

If the caller lacks access, returns a restricted-access placeholder node instead of an error.



## OpenAPI

````yaml get /document/preview-content/{fileId}
openapi: 3.1.0
info:
  title: HERO API
  version: current
  description: |-
    The HERO REST API.

    See https://developers.myhero.so for the rendered docs.
servers:
  - url: https://app.myhero.so
security: []
paths:
  /document/preview-content/{fileId}:
    get:
      tags:
        - Documents
      summary: Retrieve document preview content
      description: >-
        Returns the ProseMirror JSON content of a document, derived from its
        Y.js collaborative state.


        If the caller lacks access, returns a restricted-access placeholder node
        instead of an error.
      operationId: getDocPreviewContentByDocumentId
      parameters:
        - schema:
            type: string
            minLength: 1
          required: true
          name: fileId
          in: path
      responses:
        '200':
          description: 200 response
          content:
            application/json:
              schema:
                type: object
                properties:
                  data: {}
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: HERO personal access token

````