---
title: "Get Api Key Status"
method: GET
path: "/api/v1/mcp/api-key"
tags: ["MCP API Keys"]
---

# Get Api Key Status

`GET /api/v1/mcp/api-key`

## Request

- Base URL: `https://backend.caspr.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://backend.caspr.ai/api/v1/mcp/api-key`
- Auth: OAuth 2
  - Password
  - Token URL: `token`

Return whether the user has an MCP API key and non-secret metadata.

## Response `200`

Successful Response

- McpApiKeyStatusResponse
  - `success` boolean
  - `has_key` boolean, required
  - `api_key` McpApiKeyMeta
    - `id` string, required
    - `key_prefix` string, required
    - `last_four` string, required
    - `created_at` string, nullable
    - `updated_at` string, nullable
    - `last_used_at` string, nullable

## Other responses

- `401`: Unauthorized
- `500`: Internal Server Error

---

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