Skip to main content
POST
/
workspace
/
invite-user
Invite a user to a workspace
curl --request POST \
  --url https://app.myhero.so/workspace/invite-user \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "jsmith@example.com",
  "workspaceId": "<string>"
}
'
{
  "data": {
    "_id": "<string>",
    "email": "<string>",
    "invitedBy": "<string>",
    "expires": 123,
    "createdAt": 123,
    "updatedAt": 123,
    "data": "<unknown>"
  }
}

Authorizations

Authorization
string
header
required

HERO personal access token

Body

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

Response

200 response

data
object
required