Create invitation

http
POST /projects/{project_reference}/invitations

Create an invitation. Requires project.invites.manage.

Parameters

NameInRequiredDescription
project_referencepathYesProject slug, UUID, or domain that identifies the project.

Request body

FieldTypeRequiredDescription
emailstringYesRecipient email, stored in lowercase. Existing users are added or have their role changed; otherwise a pending invitation is created. An available collaboration seat is required.
rolestringYesRole to grant: admin, editor or viewer.

Responses

StatusDescription
200An existing user was added to the project
201A pending invitation was created
400invalid_input: invalid email or role
401unauthenticated
402limit_exceeded: no collaboration seat available
403forbidden: the project is system-managed or the credential cannot write
404not_found: project not found or not visible
500internal