Skip to main content
POST
/
users
/
invitations
Invite a new user to the organization
curl --request POST \
  --url http://localhost:3000/users/invitations/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "jsmith@example.com",
  "role": "editor",
  "org_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'
{
  "statusCode": 123,
  "message": "OK",
  "data": {
    "token": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
email
string<email>
required
role
required
Available options:
editor
org_id
string<uuid>
required

Response

Default Response

statusCode
number
message
string
default:OK
data
object