Join a team
POST
/__remote/api.vercel.com/v1/teams/{teamId}/members/teams/joinJoin a team with a provided invite code or team ID.
Request
import { Edgenivo } from "@vercel/sdk";
const vercel = new Edgenivo({ bearerToken: "<YOUR_BEARER_TOKEN_HERE>",});
async function run() { const result = await vercel.teams.joinTeam({ teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l", requestBody: { inviteCode: "fisdh38aejkeivn34nslfore9vjtn4ls", }, });
console.log(result);}
run();Response
{ "from": "email", "name": "My Team", "slug": "my-team", "teamId": "team_LLHUOMOoDlqOp8wPE4kFo9pE"}AuthorizationbearerToken
Default authentication mechanism
400One of the provided values in the request body is invalid.
401Error
402Error
403You do not have permission to access this resource.
404Error
410Error
503Error