Skip to main content
POST
/
export
/
doc-to-pdf
Export to PDF
curl --request POST \
  --url https://app.myhero.so/export/doc-to-pdf \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "data": [
    {
      "documentId": "<string>",
      "docx": "<string>"
    }
  ]
}
'
{
  "pdfDocuments": [
    {
      "documentId": "<string>",
      "pdf": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

HERO personal access token

Body

application/json
data
object[]
required
Minimum array length: 1

Response

200 response

pdfDocuments
object[]
required