---
title: "Check Captcha Required"
method: POST
path: "/auth/checkCaptchaRequired"
---

# Check Captcha Required

`POST /auth/checkCaptchaRequired`

## Request

- Base URL: `https://api.twtapi.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.twtapi.com/auth/checkCaptchaRequired`
- Auth: none declared

供前端在提交登录前询问「这次要不要显示图形验证码」。

判定来源有两处：Redis 登录失败计数（先看，便宜），以及风控画像里的历史风险标记。
返回：success(data={"captcha_required": bool})。
副作用：只读（风控画像是读缓存/DB）。

## Query parameters

- `lang` string

## Request body

- CheckCaptchaRequest: 按邮箱探测「本次登录是否需要图形验证码」，用于前端决定是否展示输入框。
  - `email` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/twtapi/apis/twtapi-backend.md) · [All operations](https://skmtc.dev/twtapi/apis/twtapi-backend/llms.txt) · [OpenAPI document](https://skmtc.dev/twtapi/apis/twtapi-backend/revisions/5295976febaf?raw)
