---
title: "Get User"
method: GET
path: "/api/user/{id}"
tags: ["AdminUser"]
---

# Get User

`GET /api/user/{id}`

## Request

- Base URL: `https://api.unorouter.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.unorouter.com/api/user/{id}`
- Auth: one of:
  - API key in header `Authorization` and API key in header `New-Api-User`
  - API key in header `New-Api-User` and API key in cookie `session`

## Path parameters

- `id` string, required

## Response `200`

OK

- ResponseModelUser: Response_model.User schema
  - `data` User, required
    - `admin_permissions` object, nullable
    - `aff_code` string, required
    - `aff_count` integer, required
    - `aff_history_quota` integer, required
    - `aff_quota` integer, required
    - `created_at` integer, required
    - `creem_customer` string, required
    - `customer_type` string, required
    - `customer_type_at` integer, required
    - `discord_id` string, required
    - `display_name` string, required
    - `email` string, required
    - `github_id` string, required
    - `google_id` string, required
    - `group` string, required
    - `id` integer, required
    - `inviter_id` integer, required
    - `last_login_at` integer, required
    - `linux_do_id` string, required
    - `oidc_id` string, required
    - `original_password` string, required
    - `password` string, required
    - `quota` integer, required
    - `referral_commission_percent` number, double, nullable, required
    - `register_ip` string
    - `remark` string
    - `request_count` integer, required
    - `role` integer, required
    - `setting` string, required
    - `status` integer, required
    - `stripe_customer` string, required
    - `telegram_id` string, required
    - `topup_bonus_percent` number, double, nullable, required
    - `used_quota` integer, required
    - `username` string, required
    - `verification_code` string, required
    - `wechat_id` string, required
  - `message` string, required
  - `success` boolean, required

## Changes

- **2026-10-15** `6cb670e861f5`: 4 info
  - added the required property `data/customer_type` to the response with the `200` status (media type: application/json)
  - added the required property `data/customer_type` to the response with the `200` status (media type: application/xml)
  - added the required property `data/customer_type_at` to the response with the `200` status (media type: application/json)
  - added the required property `data/customer_type_at` to the response with the `200` status (media type: application/xml)

[Operation history](https://skmtc.dev/unorouter/apis/new-api/changes/api/user/:id/get.md)

---

[API](https://skmtc.dev/unorouter/apis/new-api.md) - [All operations](https://skmtc.dev/unorouter/apis/new-api/llms.txt) - [OpenAPI document](https://skmtc.dev/unorouter/apis/new-api/revisions/1b50ada14f59?raw)
