Invite Team Member
Workspaces
Invite Team Member
Invite a new team member to join a workspace. Only workspace owners can send invitations.
POST
Invite Team Member
Path Parameters
The unique identifier of the workspace where the invitation is being sent.
Headers
The unique identifier of the workspace being accessed (should match the path parameter
:workspaceId).Request Body
The email address of the person to invite.
The role to assign to the invited user (“admin”, “editor”, “viewer”).
Description
This endpoint allows a workspace owner to invite a new team member to their workspace by email.- The system checks for any existing pending invitation for the same email to prevent duplicates.
- A new invitation record is created and stored with a 7-day expiration.
- An invitation email is sent to the invitee with a secure link to accept the invitation.
Invitation Email Behavior
- The email contains the inviter’s email, the workspace name, and a secure invitation acceptance link.
- If the workspace has a white-label custom domain, the invitation link will use that domain.
- If no custom domain is available, the link will use the default frontend URL.
Response Fields
Indicates whether the invitation was successfully sent.
A message confirming the outcome of the invitation process.
