---
title: "Validate Api Key"
method: POST
path: "/api/keys/validate"
tags: ["api-keys"]
---

# Validate Api Key

`POST /api/keys/validate`

Validate an API key and check if it belongs to an associated user.

Request body:
    {
        "key": "qd_live_abc123..."
    }

Returns:
    {
        "valid": true
    }

Note: Returns true if the key is valid and not revoked, false otherwise.

## Request body

- ValidateKeyRequest — Request model for validating an API key.
  - `key` string, required

## Response `200`

Successful Response

- ValidateKeyResponse — Response model for API key validation.
  - `valid` boolean, required

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-18** `abf76937a751` — 2 info
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status

[Change history](https://skmtc.dev/quadrillion/apis/quadrillion-cloud-api/changes/api/keys/validate/post.md)

---

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