---
title: "检查用户登录状态"
method: GET
path: "/api/v1/users/status"
tags: ["【用户】认证"]
---

# 检查用户登录状态

`GET /api/v1/users/status`

## Request

- The document declares no server URL.
- Auth: none declared

检查当前用户是否已登录，返回认证状态和用户信息

## Response `200`

成功

- object
  - `code` integer
  - `data` DomainTeamUserInfo
    - `teams` DomainTeamMember[]
      - `team_id` string
      - `team_name` string
      - `team_role` 'admin' | 'user'
      - `user_id` string
    - `user` DomainUser
      - `avatar_url` string
      - `email` string
      - `has_password` boolean
      - `id` string
      - `identities` DomainUserIdentity[]
        - `avatar_url` string
        - `email` string
        - `id` string
        - `identity_id` string
        - `platform` 'baizhi' | 'google' | 'github' | 'gitlab' | 'gitea' | 'gitee' | 'oidc'
        - `username` string
      - `is_blocked` boolean
      - `name` string
      - `role` 'individual' | 'enterprise' | 'subaccount' | 'admin' | 'gittask'
      - `status` 'active' | 'inactive' | 'banded'
      - `team` DomainTeam
        - `id` string
        - `name` string
      - `token` string
      - `wechat_mp_bound` boolean
  - `message` string

---

[API](https://skmtc.dev/chaitin/apis/chaitin-tech-monkeycode-api.md) - [All operations](https://skmtc.dev/chaitin/apis/chaitin-tech-monkeycode-api/llms.txt) - [OpenAPI document](https://skmtc.dev/chaitin/apis/chaitin-tech-monkeycode-api/revisions/5a5929cb17f2?raw)
