---
title: "Introspect the current API key"
method: GET
path: "/api/v1/auth/key-info"
tags: ["Meta"]
---

# Introspect the current API key

`GET /api/v1/auth/key-info`

## Request

- Base URL: `https://api.gatewerk.com`
- URL: `https://api.gatewerk.com/api/v1/auth/key-info`
- Auth: HTTP bearer

Returns the prefix and scope list of the API key used to make the request. Useful for clients that want to surface permissions to users.

## Response `200`

Key info

- object
  - `object` 'key_info', required
  - `prefix` string, required
  - `scopes` Scope[], nullable

## Other responses

- `401`: 401. Missing or invalid API key.

---

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