---
title: "Retrieve API key"
method: GET
path: "/api/v3/keys/{id}"
tags: ["API Keys"]
---

# Retrieve API key

`GET /api/v3/keys/{id}`

Retrieve a single API key belonging to the authenticated user, including its workspace scope.

## Path parameters

- `id` string, required

## Response `200`

The requested API key.

- APIKeyV3Response
  - `id` string, required
  - `name` string, required
  - `prefix` string, required
  - `created_at` string, date-time, required
  - `expires_at` string, date-time, nullable, required
  - `scopes` APIKeyScope[], required
    - `workspace_id` integer, required
    - `workspace_name` string, required
    - `workspace_upload_method` string, required
    - `workspace_datasource_type` string, nullable, required
    - `role` string, required
    - `scope_type` 'workspace' | 'global', required — * `workspace` - workspace * `global` - global

## Other responses

- `401` — Authentication credentials were not provided or are invalid
- `404` — The requested resource was not found

---

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