Skip to main content
GET
/
document
/
preview-content
/
{fileId}
Retrieve document preview content
curl --request GET \
  --url https://app.myhero.so/document/preview-content/{fileId} \
  --header 'Authorization: Bearer <token>'
{
  "data": "<unknown>"
}

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.

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.

Authorizations

Authorization
string
header
required

HERO personal access token

Path Parameters

fileId
string
required
Minimum string length: 1

Response

200 - application/json

200 response

data
any