---
title: "Get current user"
method: GET
path: "/users/me"
tags: ["User"]
---

# Get current user

`GET /users/me`

## Request

- Base URL: `https://api.your-domain.com`
- URL: `https://api.your-domain.com/users/me`
- Auth: API key in header `X-API-KEY`
- TypeScript: <https://skmtc.dev/neulandai/apis/neuland-ai-hub-api/docs/users/me/get.ts> (a function with typed inputs; its response is checked against the schema)

Return the profile of the currently authenticated user.

## Query parameters

- `cookie_name` string, nullable

## Response `200`

Successful Response

- UserOut
  - `id` integer, required: Unique identifier of the user.
  - `created_at` string, date-time, required: UTC timestamp when the user was created.
  - `email` string, email, required: Current confirmed email address.
  - `email_confirmed` boolean, required: Whether the email address has been confirmed.
  - `pending_email` string, nullable: New email awaiting confirmation, or null if none pending.
  - `name` string, nullable: Full display name, if set.
  - `first_name` string, nullable: User's given name.
  - `last_name` string, nullable: User's family name.
  - `admin` boolean, required: Whether the user has tenant administrator privileges.
  - `superadmin` boolean, nullable: Whether the user is a platform operator.
  - `active` boolean, required: Whether the account is active and can authenticate.
  - `tenant_id` integer, nullable: Identifier of the tenant the user belongs to.

## Other responses

- `401`: Missing or invalid authentication.
- `404`: The current user no longer exists.
- `422`: Validation Error

---

[API](https://skmtc.dev/neulandai/apis/neuland-ai-hub-api.md) - [All operations](https://skmtc.dev/neulandai/apis/neuland-ai-hub-api/llms.txt) - [OpenAPI document](https://skmtc.dev/neulandai/apis/neuland-ai-hub-api/revisions/b53e89b98c2b?raw)
