---
title: "user/:id 获取用户信息"
method: GET
path: "/user/:id"
tags: ["用户"]
---

# user/:id 获取用户信息

`GET /user/:id`

获取用户信息

## Headers

- `Authorization` string, required

## Response `200`

ok

- object
  - `code` integer — 状态码
  - `data` object — 返回结构数据
    - `age` integer
    - `avatar` string
    - `bio` string
    - `email` string
    - `id` integer
    - `last_login_time` string
    - `name` string
    - `sex` integer
    - `status` integer
    - `uid` string
  - `httpCode` integer — http状态码
  - `message` string — 消息内容

## Changes

- **2022-08-14** `311fa8a9a415` — 1 info
  - endpoint added
- **2022-08-07** `664e5f696805` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/im-tools/apis/im-services/changes/user/:id/get.md)

---

[API](https://skmtc.dev/im-tools/apis/im-services.md) · [All operations](https://skmtc.dev/im-tools/apis/im-services/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/im-tools/im-services/revisions/67283dad9bee/schema)
