TypeScript
import { Vercel } from "@vercel/sdk"; const vercel = new Vercel({ bearerToken: "<YOUR_BEARER_TOKEN_HERE>", }); async function run() { const result = await vercel.teams.requestAccessToTeam({ teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l", requestBody: { joinedFrom: { origin: "github", commitId: "f498d25d8bd654b578716203be73084b31130cd7", repoId: "67753070", repoPath: "jane-doe/example", gitUserId: 103053343, gitUserLogin: "jane-doe", }, }, }); console.log(result); } run();
{ "teamSlug": "<string>", "teamName": "<string>", "github": { "login": "<string>" }, "gitlab": { "login": "<string>" }, "bitbucket": { "login": "<string>" }, "confirmed": true, "joinedFrom": { "origin": "import", "commitId": "<string>", "repoId": "<string>", "repoPath": "<string>", "gitUserId": "<string>", "gitUserLogin": "<string>", "ssoUserId": "<string>", "ssoConnectedAt": 123, "idpUserId": "<string>", "dsyncUserId": "<string>", "dsyncConnectedAt": 123 }, "accessRequestedAt": 123 }
Request access to a team as a member. An owner has to approve the request. Only 10 users can request access to a team at the same time.
Default authentication mechanism
The unique team identifier
"team_1a2b3c4d5e6f7g8h9i0j1k2l"
Show child attributes
The origin of the request.
import
teams
github
gitlab
bitbucket
feedback
organization-teams
"github"
The commit sha if the origin is a git provider.
"f498d25d8bd654b578716203be73084b31130cd7"
The ID of the repository for the given Git provider.
"67753070"
The path to the repository for the given Git provider.
"jane-doe/example"
The ID of the Git account of the user who requests access.
103053343
The login name for the Git account of the user who requests access.
"jane-doe"
Successfuly requested access to the team.
link
mail
saml
dsync