Typescript
import { Vercel } from "@vercel/sdk"; const vercel = new Vercel({ bearerToken: "<YOUR_BEARER_TOKEN_HERE>", }); async function run() { const result = await vercel.teams.joinTeam({ teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l", requestBody: { inviteCode: "fisdh38aejkeivn34nslfore9vjtn4ls", }, }); console.log(result); } run();
{ "teamId": "team_LLHUOMOoDlqOp8wPE4kFo9pE", "slug": "my-team", "name": "My Team", "from": "email" }
Join a team with a provided invite code or team ID.
Default authentication mechanism
The unique team identifier
"team_1a2b3c4d5e6f7g8h9i0j1k2l"
Successfully joined a team.