---
title: "Revoke User Token"
method: POST
path: "/api/v1/auth/tokens/revoke"
tags: ["auth"]
---

# Revoke User Token

`POST /api/v1/auth/tokens/revoke`

## Request

- Base URL: `https://api.ticktest.cn` (the document declares no server; this is the origin it was published from)
- URL: `https://api.ticktest.cn/api/v1/auth/tokens/revoke`
- Auth: none declared

吊销指定的 Token（需 Bearer Token 认证）。
支持传入 token_id 或原始 token 字符串。

## Request body

- RevokeRequest: 吊销 Token 请求
  - `token_id` integer, nullable
  - `token` string, nullable

## Response `200`

Successful Response

- RegisterResponse: 注册响应 — 注册即签发 API Key
  - `status` string, required
  - `api_key` string, nullable
  - `user_id` string, nullable
  - `credits` integer, nullable
  - `plan` string, nullable
  - `message` string, nullable

## Other responses

- `422`: Validation Error

---

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