---
title: "List pending team invitations (Legacy)"
method: GET
path: "/teams/{team_id}/invitations"
tags: ["teams"]
deprecated: true
---

# List pending team invitations (Legacy)

`GET /teams/{team_id}/invitations`

> **Deprecated.**

> [!WARNING]
> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List pending team invitations`](https://docs.github.com/enterprise-cloud@latest/rest/teams/members#list-pending-team-invitations) endpoint.

The return hash contains a `role` field which refers to the Organization Invitation role and will be one of the following values: `direct_member`, `admin`, `billing_manager`, `hiring_manager`, or `reinstate`. If the invitee is not a GitHub Enterprise Cloud member, the `login` field in the return hash will be `null`.

## Path parameters

- `team_id` integer, required

## Query parameters

- `per_page` integer
- `page` integer

## Response `200`

Response

- OrganizationInvitation[]
  - `id` integer, required
  - `login` string, nullable, required
  - `email` string, nullable, required
  - `role` string, required
  - `created_at` string, required
  - `failed_at` string, nullable
  - `failed_reason` string, nullable
  - `inviter` SimpleUser, required — A GitHub user.
    - `name` string, nullable
    - `email` string, nullable
    - `login` string, required
    - `id` integer, required
    - `node_id` string, required
    - `avatar_url` string, uri, required
    - `gravatar_id` string, nullable, required
    - `url` string, uri, required
    - `html_url` string, uri, required
    - `followers_url` string, uri, required
    - `following_url` string, required
    - `gists_url` string, required
    - `starred_url` string, required
    - `subscriptions_url` string, uri, required
    - `organizations_url` string, uri, required
    - `repos_url` string, uri, required
    - `events_url` string, required
    - `received_events_url` string, uri, required
    - `type` string, required
    - `site_admin` boolean, required
    - `starred_at` string
    - `user_view_type` string
  - `team_count` integer, required
  - `node_id` string, required
  - `invitation_teams_url` string, required
  - `invitation_source` string

---

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