Skip to main content
POST
Invite user to organisation

Authorizations

Authorization
string
header
required

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

Headers

authorization
string | null
x-ankra-organisation-id
string | null

Body

application/json
invitee_email
string<email>
required
organisation_id
string<uuid4>
required
role
enum<string>
required

The membership role. project limits the invitee to one project: it grants nothing organisation-wide and requires project_id.

Available options:
member,
admin,
read-only,
project
project_id
string<uuid> | null

Required with role project, refused with any other role: the project of this organisation the invitee will be limited to (404 when it is not a live project of the organisation).

project_role_slug
enum<string> | null

Only with role project: the built-in role the invitee holds in the project (member when omitted); organisation-level permissions of the role never reach a project.

Available options:
admin,
operator,
member,
viewer

Response

User invited successfully

message
string
required
success
boolean
required