User Invitations
Operations Summary
| Method | Endpoint | Description |
|---|---|---|
| Core CRUD | ||
| GET | /api/user-invitations/ |
List user invitations |
| GET | /api/user-invitations/{uuid}/ |
Retrieve user invitation |
| POST | /api/user-invitations/ |
Create user invitation |
| Other Actions | ||
| GET | /api/user-invitations/{uuid}/details/ |
Get public invitation details |
| POST | /api/user-invitations/{uuid}/accept/ |
Accept an invitation |
| POST | /api/user-invitations/approve/ |
Approve a requested invitation |
| POST | /api/user-invitations/{uuid}/cancel/ |
Cancel an invitation |
| POST | /api/user-invitations/{uuid}/check/ |
Check invitation validity |
| POST | /api/user-invitations/{uuid}/delete/ |
Delete an invitation (staff only) |
| POST | /api/user-invitations/reject/ |
Reject a requested invitation |
| POST | /api/user-invitations/{uuid}/send/ |
Resend an invitation |
Core CRUD
List user invitations
Retrieve a list of user invitations visible to the current user.
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 | |
- API Source:
user_invitations_list
1 2 3 4 5 6 7 8 9 10 | |
| Name | Type | Description |
|---|---|---|
civil_number |
string | |
customer_uuid |
string (uuid) | |
email |
string | |
email_exact |
string | |
o |
array | Ordering |
page |
integer | A page number within the paginated result set. |
page_size |
integer | Number of results to return per page. |
role_name |
string | |
role_uuid |
string (uuid) | |
scope_description |
string | |
scope_name |
string | |
scope_type |
string | |
state |
array |
200 -
The response body is an array of objects, where each object has the following structure:
| Field | Type | Description |
|---|---|---|
scope_uuid |
string (uuid) | |
scope_name |
string | |
scope_description |
string | Get the description field from the scope if it exists. Returns empty string if scope doesn't have a description field. |
scope_type |
string | |
customer_uuid |
string (uuid) | |
customer_name |
string | |
role_name |
string | |
role_description |
string | |
created_by_full_name |
string | |
created_by_username |
string | |
created_by_image |
string (uri) | |
url |
string (uri) | |
uuid |
string (uuid) | |
role |
string (uuid) | |
created |
string (date-time) | |
expires |
string (date-time) | |
full_name |
string | |
native_name |
string | |
phone_number |
string | |
organization |
string | |
job_title |
string | |
email |
string (email) | Invitation link will be sent to this email. Note that user can accept invitation with different email. |
civil_number |
string | Civil number of invited user. If civil number is not defined any user can accept invitation. |
state |
any | |
error_message |
string | |
extra_invitation_text |
string | |
execution_state |
any |
Retrieve user invitation
Retrieve details of a specific user invitation.
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 | |
- API Source:
user_invitations_retrieve
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
200 -
| Field | Type | Description |
|---|---|---|
scope_uuid |
string (uuid) | |
scope_name |
string | |
scope_description |
string | Get the description field from the scope if it exists. Returns empty string if scope doesn't have a description field. |
scope_type |
string | |
customer_uuid |
string (uuid) | |
customer_name |
string | |
role_name |
string | |
role_description |
string | |
created_by_full_name |
string | |
created_by_username |
string | |
created_by_image |
string (uri) | |
url |
string (uri) | |
uuid |
string (uuid) | |
role |
string (uuid) | |
created |
string (date-time) | |
expires |
string (date-time) | |
full_name |
string | |
native_name |
string | |
phone_number |
string | |
organization |
string | |
job_title |
string | |
email |
string (email) | Invitation link will be sent to this email. Note that user can accept invitation with different email. |
civil_number |
string | Civil number of invited user. If civil number is not defined any user can accept invitation. |
state |
any | |
error_message |
string | |
extra_invitation_text |
string | |
execution_state |
any |
Create user invitation
Create a new user invitation to grant a role in a specific scope (e.g., organization or project).
1 2 3 4 5 6 7 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | |
- Model Source:
InvitationRequest - API Source:
user_invitations_create
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | |
| Field | Type | Required | Description |
|---|---|---|---|
role |
string (uuid) | ✓ | |
scope |
string | ✓ | Constraints: write-only |
full_name |
string | ||
native_name |
string | ||
phone_number |
string | ||
organization |
string | ||
job_title |
string | ||
email |
string (email) | ✓ | Invitation link will be sent to this email. Note that user can accept invitation with different email. |
civil_number |
string | Civil number of invited user. If civil number is not defined any user can accept invitation. | |
extra_invitation_text |
string |
201 -
| Field | Type | Description |
|---|---|---|
scope_uuid |
string (uuid) | |
scope_name |
string | |
scope_description |
string | Get the description field from the scope if it exists. Returns empty string if scope doesn't have a description field. |
scope_type |
string | |
customer_uuid |
string (uuid) | |
customer_name |
string | |
role_name |
string | |
role_description |
string | |
created_by_full_name |
string | |
created_by_username |
string | |
created_by_image |
string (uri) | |
url |
string (uri) | |
uuid |
string (uuid) | |
role |
string (uuid) | |
created |
string (date-time) | |
expires |
string (date-time) | |
full_name |
string | |
native_name |
string | |
phone_number |
string | |
organization |
string | |
job_title |
string | |
email |
string (email) | Invitation link will be sent to this email. Note that user can accept invitation with different email. |
civil_number |
string | Civil number of invited user. If civil number is not defined any user can accept invitation. |
state |
any | |
error_message |
string | |
extra_invitation_text |
string | |
execution_state |
any |
Other Actions
Get public invitation details
Retrieves public-facing details of an invitation. This is used to show information to a user before they accept it.
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 | |
- API Source:
user_invitations_details_retrieve
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
200 -
| Field | Type | Description |
|---|---|---|
scope_uuid |
string (uuid) | |
scope_name |
string | |
scope_description |
string | Get the description field from the scope if it exists. Returns empty string if scope doesn't have a description field. |
scope_type |
string | |
customer_uuid |
string (uuid) | |
customer_name |
string | |
role_name |
string | |
role_description |
string | |
created_by_full_name |
string | |
created_by_username |
string | |
created_by_image |
string (uri) | |
email |
string (email) | Invitation link will be sent to this email. Note that user can accept invitation with different email. |
error_message |
string | |
execution_state |
any | |
state |
any |
Accept an invitation
Accepts an invitation for the currently authenticated user. This grants the user the specified role in the invitation's scope.
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 | |
- API Source:
user_invitations_accept
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
200 - No response body
Approve a requested invitation
1 2 | |
1 2 3 4 5 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | |
- Model Source:
TokenRequest - API Source:
user_invitations_approve
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Field | Type | Required |
|---|---|---|
token |
string | ✓ |
200 - No response body
Cancel an invitation
Cancels a pending or planned (pending_project) invitation.
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 | |
- API Source:
user_invitations_cancel
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
200 -
Check invitation validity
Checks if an invitation is pending and returns its email and whether a civil number is required for acceptance. This endpoint is public and does not require authentication.
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 | |
- API Source:
user_invitations_check
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
200 -
| Field | Type |
|---|---|
email |
string (email) |
civil_number_required |
boolean |
Delete an invitation (staff only)
Deletes an invitation. This action is restricted to staff users.
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 | |
- API Source:
user_invitations_delete
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
200 - No response body
Reject a requested invitation
1 2 | |
1 2 3 4 5 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | |
- Model Source:
TokenRequest - API Source:
user_invitations_reject
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Field | Type | Required |
|---|---|---|
token |
string | ✓ |
200 - No response body
Resend an invitation
Resends an email for a pending, expired, or canceled invitation. If the invitation was expired or canceled, its state is reset to 'pending' and its creation time is updated.
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 | |
- API Source:
user_invitations_send
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
200 - No response body