Skip to main content
POST
/
document
/
invite-user
Invite a user to a document
curl --request POST \
  --url https://app.myhero.so/document/invite-user \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "jsmith@example.com",
  "documentId": "<string>",
  "role": "owner"
}
'
{
  "data": {
    "invitationsSent": 123,
    "documentsInvited": 123,
    "usersInvited": 123
  }
}

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.

Invites a single user by email to a document with the specified role. Returns counts of invitations sent, documents invited, and users invited.

Authorizations

Authorization
string
header
required

HERO personal access token

Body

application/json
email
string<email>
required
documentId
string
required
Minimum string length: 1
role
enum<string>
required
Available options:
owner,
admin,
member,
editor,
viewer

Response

200 response

data
object
required