v13
OpenAPI 3.0.32026-07-31359869.4 MBteams
Invite a user
Invite a user to join the team specified in the URL. The authenticated user needs to be an OWNER in order to successfully invoke this endpoint. The user to be invited must be specified by email.
post/v2/teams/{teamId}/members
Path parameters
teamIdstring required
Example:team_1a2b3c4d5e6f7g8h9i0j1k2l
The Team identifier to perform the request on behalf of.
Query parameters
slugstring
Example:my-team-url-slug
The Team slug to perform the request on behalf of.
Request body
Example request
[
{
"email": "john@example.com",
"role": "VIEWER",
"projects": [
{
"projectId": "prj_ndlgr43fadlPyCtREAqxxdyFK",
"role": "ADMIN"
}
]
}
]Response
Example response
{
"uid": "kr1PsOIzqEL5Xg6M4VZcZosf",
"username": "john-doe",
"email": "john@user.co",
"role": "MEMBER",
"teamRoles": [
"MEMBER"
],
"teamPermissions": [
"CreateProject"
]
}