Skip to main content
POST
/
teams
/
{teamId}
/
members
cURL
curl --request POST \
  --url https://api.youappz.dev/teams/{teamId}/members \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "role": "MEMBER",
  "email": "[email protected]",
  "uid": "kr1PsOIzqEL5Xg6M4VZcZosf"
}
'
{
  "id": "<string>",
  "email": "<string>",
  "teamId": "<string>",
  "roleId": 123,
  "createdBy": 123,
  "createdAt": 123,
  "updatedAt": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
role
enum<string>
required

The role of the user to invite

Available options:
OWNER,
MEMBER,
DEVELOPER,
BILLING,
VIEWER,
CONTRIBUTOR
Example:

"MEMBER"

email
string<email>

The email address of the user to invite

uid
string

The id of the user to invite

Example:

"kr1PsOIzqEL5Xg6M4VZcZosf"

Response

The member was successfully added to the team

id
string
required
email
string | null
required
teamId
string | null
required
roleId
number | null
required
createdBy
number | null
required
createdAt
number
required
updatedAt
number
required