Create Invitation

Create a new user invitation. This endpoint creates a new invitation for a user to join the organization. The invitation will be sent to the specified email address.

Headers

AuthorizationstringRequired

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

Request

This endpoint expects an object.
namestringRequired
Display name for the invited user
emailstringRequired
Email address to send the invitation to
roleslist of objectsOptional
List of roles to assign to the user

Response

The created invitation details
invitation_idstring
Unique identifier for the invitation
inviterobject
Details about the user who sent the invitation
inviteeobject
Details about the user being invited
invitation_urlstring
URL for the user to accept the invitation
created_atstring
Timestamp when the invitation was created
expires_atstring
Timestamp when the invitation expires
roleslist of objects
List of roles that will be assigned upon acceptance

Errors