---
title: "Get Self"
method: GET
path: "/api/user/self"
tags: ["User"]
---

# Get Self

`GET /api/user/self`

## 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/self`
- 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`

## Response `200`

OK

- ResponseDtoUserSelfData: Response_dto.UserSelfData schema
  - `data` UserSelfData, required
    - `access_expires_at` integer
    - `access_token` string
    - `aff_code` string, required
    - `aff_commission_max_recharges` integer, required
    - `aff_commission_rate` number, double, required
    - `aff_count` integer, required
    - `aff_history_quota` integer, required
    - `aff_quota` integer, 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
    - `has_password` boolean, required
    - `id` integer, required
    - `inviter_id` integer, required
    - `linux_do_id` string, required
    - `oidc_id` string, required
    - `permissions` unknown, required
    - `quota` integer, required
    - `request_count` integer, required
    - `role` integer, required
    - `setting` string, required
    - `sidebar_modules` string, required
    - `status` integer, required
    - `stripe_customer` string, required
    - `telegram_id` string, required
    - `topup_bonus_percent` number, double, required
    - `used_quota` integer, required
    - `username` 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/self/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)
