---
title: "Get user from authorization header"
method: GET
path: "/user"
tags: ["users"]
---

# Get user from authorization header

`GET /user`

## Response `200`

Expected response to a valid request

- User
  - `username` string, required — The user's username
  - `name` string, nullable — The user's display name
  - `email` string, email, nullable — The user's email (only displayed if requesting your own account). Requires `USER_READ_EMAIL` PAT scope.
  - `bio` string — A description of the user
  - `payout_data` UserPayoutData, nullable — Various data relating to the user's payouts status (you can only see your own)
    - `balance` integer — The payout balance available for the user to withdraw (note, you cannot modify this in a PATCH request)
    - `payout_wallet` 'paypal' | 'venmo' — The wallet that the user has selected
    - `payout_wallet_type` 'email' | 'phone' | 'user_handle' — The type of the user's wallet
    - `payout_address` string — The user's payout address
  - `id` string, required — The user's ID
  - `avatar_url` string, required — The user's avatar url
  - `created` string, ISO-8601, required — The time at which the user was created
  - `role` 'admin' | 'moderator' | 'developer', required — The user's role
  - `badges` integer — Any badges applicable to this user. These are currently unused and undisplayed, and as such are subject to change In order from first to seventh bit, the current bits are: - (unused) - EARLY_MODPACK_ADOPTER - EARLY_RESPACK_ADOPTER - EARLY_PLUGIN_ADOPTER - ALPHA_TESTER - CONTRIBUTOR - TRANSLATOR
  - `auth_providers` string[], nullable — A list of authentication providers you have signed up for (only displayed if requesting your own account)
  - `email_verified` boolean, nullable — Whether your email is verified (only displayed if requesting your own account)
  - `has_password` boolean, nullable — Whether you have a password associated with your account (only displayed if requesting your own account)
  - `has_totp` boolean, nullable — Whether you have TOTP two-factor authentication connected to your account (only displayed if requesting your own account)
  - `github_id` integer, nullable — Deprecated - this is no longer public for security reasons and is always null

## Other responses

- `401` — Incorrect token scopes or no authorization to access the requested item(s)

---

[API](https://skmtc.net/modrinth/apis/labrinth.md) · [All operations](https://skmtc.net/modrinth/apis/labrinth/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/modrinth/labrinth/versions/439f357e772d/schema)
