---
title: "Get access request status"
method: GET
path: "/v1/teams/{teamId}/request/{userId}"
tags: ["teams"]
---

# Get access request status

`GET /v1/teams/{teamId}/request/{userId}`

Check the status of a join request. It'll respond with a 404 if the request has been declined. If no `userId` path segment was provided, this endpoint will instead return the status of the authenticated user.

## Path parameters

- `userId` string, required — The unique user identifier
- `teamId` string, required — The unique team identifier

## Response `200`

Successfully

- object
  - `teamSlug` string, required — The slug of the team.
  - `teamName` string, required — The name of the team.
  - `confirmed` false | true, required — Current status of the membership. Will be `true` if confirmed, if pending it'll be `false`.
  - `joinedFrom` object, required — A map that describes the origin from where the user joined.
    - `origin` 'account-update' | 'bitbucket' | 'dsync' | 'feedback' | 'github' | 'gitlab' | 'import' | 'link' | 'mail' | 'nsnb-auto-approve' | 'nsnb-hobby-upgrade' | 'nsnb-invite' | 'nsnb-redeploy' | 'nsnb-redeploy-attribution-card' | 'nsnb-request-access' | 'nsnb-viewer-upgrade' | 'organization-teams' | 'saml' | 'teams', required
    - `commitId` string
    - `repoId` string
    - `repoPath` string
    - `gitUserId` union
      - string
      - number
    - `gitUserLogin` string
    - `ssoUserId` string
    - `ssoConnectedAt` number
    - `idpUserId` string
    - `dsyncUserId` string
    - `dsyncConnectedAt` number
  - `accessRequestedAt` number, required — Timestamp in milliseconds when the user requested access to the team.
  - `github` object, nullable, required — Map of the connected GitHub account.
    - `login` string
  - `gitlab` object, nullable, required — Map of the connected GitLab account.
    - `login` string
  - `bitbucket` object, nullable, required — Map of the connected Bitbucket account.
    - `login` string

## Other responses

- `400` — One of the provided values in the request query is invalid. User is already a confirmed member of the team and did not request access. Only visible when the authenticated user does have access to the team.
- `401`
- `403` — You do not have permission to access this resource.
- `404` — The provided user doesn't have a membership. Team was not found.
- `410`

---

[API](https://skmtc.net/vercel/apis/api.md) · [All operations](https://skmtc.net/vercel/apis/api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/vercel/api/versions/b4d86a3e3479/schema)
