---
title: "Get current user"
method: GET
path: "/v2/auth/whoami"
tags: ["Auth"]
---

# Get current user

`GET /v2/auth/whoami`

Returns information about the authenticated user, their current organization, and API key permissions.
Use this endpoint to verify your authentication and understand your available API access levels.

## Response `200`

OK

- WhoAmI — WhoAmI model
  - `tenant` Tenant, required
    - `id` integer, required — The tenant's unique identifier
    - `name` string, required — The name of the tenant
    - `subdomain` string, hostname, required — The tenant's subdomain under affinity.co
  - `user` User, required
    - `id` integer, required — The user's unique identifier
    - `firstName` string, required — The user's first name
    - `lastName` string, nullable, required — The user's last name
    - `emailAddress` string, email, required — The user's email address
  - `grant` Grant, required
    - `type` 'api-key' | 'access-token', required — The type of grant used to authenticate
    - `scopes` string[], required — The scopes available to the current grant
    - `createdAt` string, date-time, required — When the grant was created

## Other responses

- `404` — Not Found
- `default` — Errors

---

[API](https://skmtc.net/affinity/apis/affinity-api-v2.md) · [All operations](https://skmtc.net/affinity/apis/affinity-api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/affinity/affinity-api-v2/revisions/4c2891c31b7f/schema)
