---
title: "Reset Api Key"
method: POST
path: "/myapi/resetApiKey"
---

# Reset Api Key

`POST /myapi/resetApiKey`

## 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/myapi/resetApiKey`
- Auth: none declared

重新生成 api_key。

ValueError（用户不存在）会被吞掉并转成 404；不向外暴露 service 层的异常类型，
也避免 500。

## Query parameters

- `lang` string

## 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)
