Create an invitation. Requires project.invites.manage.
Parameters
Name
In
Required
Description
project_reference
path
Yes
Project slug, UUID, or domain that identifies the project.
Request body
Field
Type
Required
Description
email
string
Yes
Recipient 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.
role
string
Yes
Role to grant: admin, editor or viewer.
Responses
Status
Description
200
An existing user was added to the project
201
A pending invitation was created
400
invalid_input: invalid email or role
401
unauthenticated
402
limit_exceeded: no collaboration seat available
403
forbidden: the project is system-managed or the credential cannot write