---
title: "Get Api Key"
method: GET
path: "/myapi/getApiKey"
---

# Get Api Key

`GET /myapi/getApiKey`

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

返回当前用户的 api_key（通用 HTTP 网关凭据）。

用户不存在时返回 404 + sub_code=40402（例如 session 里的用户已被删除）。

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