Skip to main content
POST
cURL
This endpoint is experimental and may change or be removed without notice.

Authorizations

Authorization
string
header
required

Send Authorization: Bearer <api_key>. The legacy Authorization: Api-Key <api_key> scheme is also accepted.

Path Parameters

team_id
string
required

Body

application/json

Request to add a user to a team.

Temporary; may be removed once fine-grained access control is available.

user_id
string
required

ID of the user to add, from GET /v1/users

Example:

"4kq2v9p"

team_role
enum<string>
required

Team role to give the user

Available options:
TEAM_VIEWER,
TEAM_MEMBER,
TEAM_ADMIN

Response

200 - application/json

A user's access to a team.

team_id
string
required

Unique identifier of the team

team_name
string
required

Name of the team

user_id
string
required

Unique identifier of the user

user_name
string | null
required

Name of the user, or their email address when they have no name

user_email
string | null
required

Email address of the user

direct_team_role
enum<string> | null
required

Team role given to the user on this team; null when their access comes only from a directory group or from being an organization admin. Temporary; may be removed once fine-grained access control is available.

Available options:
TEAM_VIEWER,
TEAM_MEMBER,
TEAM_ADMIN
effective_team_role
enum<string>
required

Team role that applies: the strongest of the direct team role and the user's directory groups' team roles on this team, or ADMIN for an organization admin. Temporary; may be removed once fine-grained access control is available.

Available options:
TEAM_VIEWER,
TEAM_MEMBER,
TEAM_ADMIN,
ADMIN