---
title: "List team API keys as admin"
method: GET
path: "/admin/teams/{teamID}/api-keys"
tags: ["admin"]
---

# List team API keys as admin

`GET /admin/teams/{teamID}/api-keys`

## Request

- Base URL: `https://api.e2b.app`
- URL: `https://api.e2b.app/admin/teams/{teamID}/api-keys`
- Auth: one of:
  - API key in header `X-Admin-Token`
  - HTTP bearer

Lists a team's API keys for internal service workflows. Unlike `GET /api-keys`, it does not resolve the team, so it also answers for a banned team.

## Path parameters

- `teamID` string, uuid, required

## Response `200`

Successfully returned the team's API keys

- TeamAPIKey[]
  - `id` string, uuid, required: Identifier of the API key
  - `name` string, required: Name of the API key
  - `mask` IdentifierMaskingDetails, required
    - `prefix` string, required: Prefix that identifies the token or key type
    - `valueLength` integer, required: Length of the token or key
    - `maskedValuePrefix` string, required: Prefix used in masked version of the token or key
    - `maskedValueSuffix` string, required: Suffix used in masked version of the token or key
  - `createdAt` string, date-time, required: Timestamp of API key creation
  - `createdBy` TeamUser
    - `id` string, uuid, required: Identifier of the user
    - `email` string, nullable, required: Email of the user
  - `lastUsed` string, date-time, nullable: Last time this API key was used

## Other responses

- `400`: Bad request
- `401`: Authentication error
- `500`: Server error

## Changes

- **2026-10-22** `04ec8eabc7f9`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/e2b-dev/apis/e2b-api/changes/admin/teams/:teamID/api-keys/get.md)

---

[API](https://skmtc.dev/e2b-dev/apis/e2b-api.md) - [All operations](https://skmtc.dev/e2b-dev/apis/e2b-api/llms.txt) - [OpenAPI document](https://skmtc.dev/e2b-dev/apis/e2b-api/revisions/99fccbc60e6d?raw)
