Invite users to an organization.
This request returns the list of organization invitations for the instance.
Results can be paginated using the optional limit
and offset
query parameters.
You can filter them by providing the 'status' query parameter, that accepts multiple values.
You can change the order by providing the 'order' query parameter, that accepts multiple values.
You can filter by the invited user email address providing the query
query parameter.
The organization invitations are ordered by descending creation date by default.
A list of organization invitations with public organization data
Request was not successful
Resource not found
Request was not successful
Request was not successful
{- "data": [
- {
- "id": "string",
- "object": "organization_invitation",
- "email_address": "string",
- "role": "string",
- "role_name": "string",
- "organization_id": "string",
- "status": "string",
- "public_metadata": { },
- "private_metadata": { },
- "public_organization_data": {
- "id": "string",
- "name": "string",
- "slug": "string",
- "image_url": "string",
- "has_image": true
}, - "created_at": 0,
- "updated_at": 0
}
], - "total_count": 0
}
Creates a new organization invitation and sends an email to the provided email_address
with a link to accept the invitation and join the organization.
You can specify the role
for the invited organization member.
New organization invitations get a "pending" status until they are revoked by an organization administrator or accepted by the invitee.
The request body supports passing an optional redirect_url
parameter.
When the invited user clicks the link to accept the invitation, they will be redirected to the URL provided.
Use this parameter to implement a custom invitation acceptance flow.
You can specify the ID of the user that will send the invitation with the inviter_user_id
parameter.
That user must be a member with administrator privileges in the organization.
Only "admin" members can create organization invitations.
You can optionally provide public and private metadata for the organization invitation. The public metadata are visible by both the Frontend and the Backend whereas the private ones only by the Backend. When the organization invitation is accepted, the metadata will be transferred to the newly created organization membership.
An organization invitation
Request was not successful
Authorization invalid
Resource not found
Invalid request parameters
{- "email_address": "string",
- "inviter_user_id": "string",
- "role": "string",
- "public_metadata": { },
- "private_metadata": { },
- "redirect_url": "string"
}
{- "id": "string",
- "object": "organization_invitation",
- "email_address": "string",
- "role": "string",
- "role_name": "string",
- "organization_id": "string",
- "status": "string",
- "public_metadata": { },
- "private_metadata": { },
- "created_at": 0,
- "updated_at": 0
}
This request returns the list of organization invitations.
Results can be paginated using the optional limit
and offset
query parameters.
You can filter them by providing the 'status' query parameter, that accepts multiple values.
The organization invitations are ordered by descending creation date.
Most recent invitations will be returned first.
Any invitations created as a result of an Organization Domain are not included in the results.
A list of organization invitations
Request was not successful
Resource not found
{- "data": [
- {
- "id": "string",
- "object": "organization_invitation",
- "email_address": "string",
- "role": "string",
- "role_name": "string",
- "organization_id": "string",
- "status": "string",
- "public_metadata": { },
- "private_metadata": { },
- "created_at": 0,
- "updated_at": 0
}
], - "total_count": 0
}
Creates new organization invitations in bulk and sends out emails to the provided email addresses with a link to accept the invitation and join the organization.
You can specify a different role
for each invited organization member.
New organization invitations get a "pending" status until they are revoked by an organization administrator or accepted by the invitee.
The request body supports passing an optional redirect_url
parameter for each invitation.
When the invited user clicks the link to accept the invitation, they will be redirected to the provided URL.
Use this parameter to implement a custom invitation acceptance flow.
You can specify the ID of the user that will send the invitation with the inviter_user_id
parameter. Each invitation
can have a different inviter user.
Inviter users must be members with administrator privileges in the organization.
Only "admin" members can create organization invitations.
You can optionally provide public and private metadata for each organization invitation. The public metadata are visible
by both the Frontend and the Backend, whereas the private metadata are only visible by the Backend.
When the organization invitation is accepted, the metadata will be transferred to the newly created organization membership.
A list of organization invitations
Request was not successful
Authorization invalid
Resource not found
Invalid request parameters
[- {
- "email_address": "string",
- "inviter_user_id": "string",
- "role": "string",
- "public_metadata": { },
- "private_metadata": { },
- "redirect_url": "string"
}
]
{- "data": [
- {
- "id": "string",
- "object": "organization_invitation",
- "email_address": "string",
- "role": "string",
- "role_name": "string",
- "organization_id": "string",
- "status": "string",
- "public_metadata": { },
- "private_metadata": { },
- "created_at": 0,
- "updated_at": 0
}
], - "total_count": 0
}
This request returns the list of organization invitations with "pending" status.
These are the organization invitations that can still be used to join the organization, but have not been accepted by the invited user yet.
Results can be paginated using the optional limit
and offset
query parameters.
The organization invitations are ordered by descending creation date.
Most recent invitations will be returned first.
Any invitations created as a result of an Organization Domain are not included in the results.
A list of organization invitations
Request was not successful
Resource not found
{- "data": [
- {
- "id": "string",
- "object": "organization_invitation",
- "email_address": "string",
- "role": "string",
- "role_name": "string",
- "organization_id": "string",
- "status": "string",
- "public_metadata": { },
- "private_metadata": { },
- "created_at": 0,
- "updated_at": 0
}
], - "total_count": 0
}
Use this request to get an existing organization invitation by ID.
An organization invitation
Request was not successful
Authorization invalid
Resource not found
{- "id": "string",
- "object": "organization_invitation",
- "email_address": "string",
- "role": "string",
- "role_name": "string",
- "organization_id": "string",
- "status": "string",
- "public_metadata": { },
- "private_metadata": { },
- "created_at": 0,
- "updated_at": 0
}
Use this request to revoke a previously issued organization invitation.
Revoking an organization invitation makes it invalid; the invited user will no longer be able to join the organization with the revoked invitation.
Only organization invitations with "pending" status can be revoked.
The request accepts the requesting_user_id
parameter to specify the user which revokes the invitation.
Only users with "admin" role can revoke invitations.
An organization invitation
Request was not successful
Authorization invalid
Resource not found
{- "requesting_user_id": "string"
}
{- "id": "string",
- "object": "organization_invitation",
- "email_address": "string",
- "role": "string",
- "role_name": "string",
- "organization_id": "string",
- "status": "string",
- "public_metadata": { },
- "private_metadata": { },
- "created_at": 0,
- "updated_at": 0
}