---
title: "Get current user"
method: GET
path: "/whoami"
tags: ["sessions"]
---

# Get current user

`GET /whoami`

Get information about the currently authenticated user

## Response `200`

Current user information

- ModelsWhoamiResponse
  - `provider` string — The authentication provider
  - `session` ModelsSessionInfo
    - `expiry` string — Session expiry time
    - `uuid` string — Session UUID
  - `user` GithubComThandIoAgentInternalModelsUser
    - `email` string — Email is the user's email address, often used as a primary identifier.
    - `groups` string[] — Groups is a list of group names or IDs that this user belongs to.
    - `id` string — ID is the unique identifier for the user.
    - `name` string — Name is the user's full display name.
    - `source` string — Source identifies the identity provider or system where this user originated.
    - `username` string — Username is the user's login name or handle.
    - `verified` boolean — Verified indicates whether the user's identity has been verified.

## Other responses

- `401` — Unauthorized

---

[API](https://skmtc.net/thand-io/apis/thand-agent-api.md) · [All operations](https://skmtc.net/thand-io/apis/thand-agent-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/thand-io/thand-agent-api/revisions/62befb178368/schema)
