Skip to main content
POST
/
published
/
{publishedId}
/
auth
Authenticate to a published doc
curl --request POST \
  --url https://app.myhero.so/published/{publishedId}/auth \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "password": "<string>"
}
'
{
  "data": {
    "token": "<string>"
  }
}

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.

Validates a viewer’s password against a password-protected published portal. Returns a signed token that grants read access; include it as user-published-token on subsequent document requests. 403 indicates an incorrect password.

Authorizations

Authorization
string
header
required

HERO personal access token

Path Parameters

publishedId
string
required
Minimum string length: 1

Body

application/json
password
string
required
Minimum string length: 1

Response

200 response

data
object
required