GET
/
v1
/
teams
/
{teamId}
/
request
/
{userId}
import { Vercel } from "@vercel/sdk";

const vercel = new Vercel({
  bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
});

async function run() {
  const result = await vercel.teams.getTeamAccessRequest({
    userId: "<id>",
    teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
  });

  // Handle the result
  console.log(result);
}

run();
{
  "teamSlug": "my-team",
  "teamName": "My Team",
  "confirmed": false,
  "joinedFrom": {
    "origin": "mail",
    "commitId": "<string>",
    "repoId": "<string>",
    "repoPath": "<string>",
    "gitUserId": "<string>",
    "gitUserLogin": "<string>",
    "ssoUserId": "<string>",
    "ssoConnectedAt": 123,
    "idpUserId": "<string>",
    "dsyncUserId": "<string>",
    "dsyncConnectedAt": 123
  },
  "accessRequestedAt": 1588720733602,
  "github": {
    "login": "<string>"
  },
  "gitlab": {
    "login": "<string>"
  },
  "bitbucket": {
    "login": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Default authentication mechanism

Path Parameters

userId
string
required

The unique user identifier

teamId
string
required

The unique team identifier

Example:

"team_1a2b3c4d5e6f7g8h9i0j1k2l"

Response

200
application/json
Successfully
teamSlug
string
required

The slug of the team.

Example:

"my-team"

teamName
string
required

The name of the team.

Example:

"My Team"

confirmed
boolean
required

Current status of the membership. Will be true if confirmed, if pending it'll be false.

Example:

false

joinedFrom
object
required

A map that describes the origin from where the user joined.

accessRequestedAt
number
required

Timestamp in milliseconds when the user requested access to the team.

Example:

1588720733602

github
object | null
required

Map of the connected GitHub account.

gitlab
object | null
required

Map of the connected GitLab account.

bitbucket
object | null
required

Map of the connected Bitbucket account.