---
title: "通过 token 查询账户信息"
method: GET
path: "/api/v1/users/passwords/accounts/{token}"
tags: ["【用户】密码管理"]
---

# 通过 token 查询账户信息

`GET /api/v1/users/passwords/accounts/{token}`

通过传入的 token 查询账户信息

## Path parameters

- `token` string, required

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

## Other responses

- `400` — 请求参数错误
- `401` — 未授权，token 无效或已过期

---

[API](https://skmtc.net/chaitin/apis/untitled-api.md) · [All operations](https://skmtc.net/chaitin/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/chaitin/untitled-api/versions/5a5929cb17f2/schema)
