---
title: "Verify Token"
method: GET
path: "/tokens/verify"
tags: ["Tokens"]
---

# Verify Token

`GET /tokens/verify`

Verify an API key and return the associated token record.

Only ``sk``-prefixed (single-use) tokens are supported.  The raw key is hashed
and looked up in the database; the hash stored in the record must match to prevent
token enumeration.

Args:
    api_key: Raw API key supplied as a query parameter.
    token_service: Injected token service for database look-ups.

Returns:
    TokenOut: Validated token record.

Raises:
    InvalidAPIKey: When the key prefix is unrecognised, the token is not found,
        or the stored hash does not match.

## Query parameters

- `api_key` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/async/apis/text-to-speech-api-service.md) · [All operations](https://skmtc.dev/async/apis/text-to-speech-api-service/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/async/text-to-speech-api-service/revisions/9bfc541b6e9a/schema)
