---
title: "Get a key"
method: GET
path: "/keys/{id}"
tags: ["Keys"]
---

# Get a key

`GET /keys/{id}`

## Request

- Base URL: `https://api.warplink.app/v1`
- URL: `https://api.warplink.app/v1/keys/{id}`
- Auth: HTTP bearer

## Path parameters

- `id` string, uuid, required

## Response `200`

API key details

- ApiKey
  - `id` string, uuid
  - `type` 'api' | 'sdk'
  - `key_prefix` string
  - `name` string
  - `app_id` string, uuid, nullable: The app an `sdk` key is tied to. Null for `api` keys and for `sdk` keys that work for any app.
  - `scopes` string[]
  - `last_used_at` string, date-time, nullable
  - `expires_at` string, date-time, nullable
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found

---

[API](https://skmtc.dev/warplink/apis/warplink-api.md) · [All operations](https://skmtc.dev/warplink/apis/warplink-api/llms.txt) · [OpenAPI document](https://skmtc.dev/warplink/apis/warplink-api/revisions/2a90ae8c44e8?raw)
