---
title: "Get Info"
method: GET
path: "/auth/getInfo"
---

# Get Info

`GET /auth/getInfo`

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

前端启动时拉取当前登录态，未登录也会给一个空 session。

返回：已登录 -> {is_login: True, user_id, email, api_key, is_admin}；
      未登录 -> {is_login: False, is_admin: False}。
副作用：写 Redis（未登录时新建空 session；stage_user_last_lang 是暂存，稍后批量落库）。

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