---
title: "Get API key"
method: GET
path: "/v1/projects/{ref}/api-keys/{id}"
tags: ["Secrets"]
---

# Get API key

`GET /v1/projects/{ref}/api-keys/{id}`

## Path parameters

- `ref` string, required
- `id` string, uuid, required

## Query parameters

- `reveal` boolean

## Response `200`

- ApiKeyResponse
  - `api_key` string, nullable
  - `id` string, nullable
  - `type` 'legacy' | 'publishable' | 'secret', nullable
  - `prefix` string, nullable
  - `name` string, required
  - `description` string, nullable
  - `hash` string, nullable
  - `secret_jwt_template` object, nullable
  - `inserted_at` string, date-time, nullable
  - `updated_at` string, date-time, nullable

## Other responses

- `401` — Unauthorized
- `403` — Forbidden action
- `429` — Rate limit exceeded

---

[API](https://skmtc.dev/supabase/apis/management-api.md) · [All operations](https://skmtc.dev/supabase/apis/management-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/supabase/management-api/revisions/a7cb39418064/schema)
