Discord
GitHub
Dashboard
Search...
/
Documentation
Components
SDK Reference
REST API & Webhooks
API Overview
Client API
GET
/api/v1
Emails
OAuth
OTP
Password
Permissions
Projects
Sessions
Teams
Users
Server API
GET
/api/v1
Emails
OAuth
OTP
Password
Permissions
Projects
Sessions
Teams
GET
List teams
POST
Create a team
GET
List team members profiles
GET
Get a team
DEL
Delete a team
PATCH
Update a team
POST
Send an email to invite a user to a team
POST
Invite a user to a team
POST
Add a user to a team
DEL
Remove a user from a team
GET
Get a team member profile
PATCH
Update a team member profile
POST
Get team invitation details
POST
Check if a team invitation code is valid
Users
Webhooks
Users
Teams
Discord
GitHub
Dashboard
Server API
Teams
Add a user to a team
POST
https://api.stack-auth.com/api/v1
/
team-memberships
/
:team_id
/
:user_id
Path parameters
team_id
string
Optional
user_id
string
Optional
The ID of the user, or the special value
me
for the currently authenticated user
Request
This endpoint expects an object.
Response
This endpoint returns an object.
team_id
string
user_id
string
Built with