Skip to main content
POST
/
export
/
get-documents-data
Retrieve export data for documents
curl --request POST \
  --url https://app.myhero.so/export/get-documents-data \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "projectId": "<string>",
  "documentIds": [
    "<string>"
  ]
}
'
{
  "exportData": [
    {
      "documentId": "<string>",
      "references": {
        "clauses": [
          {}
        ],
        "tables": {
          "referenceRow": [
            {}
          ],
          "references": [
            {}
          ]
        }
      },
      "settings": {
        "listTemplateId": "<string>",
        "importedTermId": "<string>"
      },
      "blocks": "<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.

Assembles full export payloads for the requested documentIds within a project. Each payload includes the document’s ProseMirror block content, resolved clause and table references, and list-template settings. Requires read access to all specified documents.

Authorizations

Authorization
string
header
required

HERO personal access token

Body

application/json
projectId
string
required
Minimum string length: 1
documentIds
string[]
required
Minimum array length: 1
Minimum string length: 1

Response

200 response

exportData
object[]
required