v1

latestOpenAPI 3.0.0BSD-3-Clause2026-07-146135105.7 KB
teams

Create Team Membership

Use this endpoint to invite a new member to join your team. If initiated from Client SDK, an email with a link to join the team will be sent to the new member's email address if the member doesn't exist in the project it will be created automatically. If initiated from server side SDKs, new member will automatically be added to the team.

Use the 'URL' parameter to redirect the user from the invitation email back to your app. When the user is redirected, use the Update Team Membership Status endpoint to allow the user to accept the invitation to the team. While calling from side SDKs the redirect url can be empty string.

Please note that in order to avoid a Redirect Attacks the only valid redirect URL's are the once from domains you have set when added your platforms in the console interface.

post/teams/{teamId}/memberships

Path parameters

teamIdstring required

Team unique ID.

Request body

emailstring required

New team member email.

namestring

New team member name. Max length: 128 chars.

rolesstring[] required

Array of strings. Use this param to set the user roles in the team. A role can be any string. Learn more about roles and permissions. Max length for each role is 32 chars.

urlstring required

URL to redirect the user back to your app from the invitation email. Only URLs from hostnames in your project platform list are allowed. This requirement helps to prevent an open redirect attack against your project API.

Response

Membership

$idstring required

Membership ID.

confirmboolean required

User confirmation status, true if the user has joined the team or false otherwise.

emailstring required

User email address.

invitedinteger required

Date, the user has been invited to join the team in Unix timestamp.

joinedinteger required

Date, the user has accepted the invitation to join the team in Unix timestamp.

namestring required

User name.

rolesstring[] required

User list of roles

teamIdstring required

Team ID.

userIdstring required

User ID.