Skip to main content
POST
/
team-memberships
/
{team_id}
/
{user_id}
Add a user to a team
curl --request POST \
  --url https://api.stack-auth.com/api/v1/team-memberships/{team_id}/{user_id} \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "team_id": "<string>",
  "user_id": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://stackauth-e0affa27-chore-move-mcp-to-a-sep-app.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Path Parameters

team_id
string
user_id
string

The ID of the user, or the special value me for the currently authenticated user

Example:

"3241a285-8329-4d69-8f3d-316e08cf140c"

Body

application/json

The body is of type object.

Response

201 - application/json

Successful response

team_id
string
required
user_id
string
required