---
title: "Get API key details"
method: GET
path: "/admin/api-keys/{api_key_id}"
tags: ["API Keys"]
---

# Get API key details

`GET /admin/api-keys/{api_key_id}`

Get the details of an API key, excluding the API key secret.

## Path parameters

- `api_key_id` string, uuid, required

## Headers

- `X-Pinecone-Api-Version` string, required

## Response `200`

The details of the API key, excluding the API key secret.

- AdminAPIKey — The details of an API key, without the secret.
  - `id` string, uuid, required — The unique ID of the API key.
  - `name` string, required — The name of the API key.
  - `project_id` string, uuid, required — The ID of the project containing the API key.
  - `roles` string[], required — The roles assigned to the API key.

## Other responses

- `401` — Unauthorized. Possible causes: Invalid API key.
- `404` — Not found
- `500` — Internal server error.
- `4XX` — Unexpected error on request.

---

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