---
title: "Resolve session cookie or X-API-Key into the user's identity"
method: GET
path: "/api/v1/whoami-key"
tags: ["Auth"]
---

# Resolve session cookie or X-API-Key into the user's identity

`GET /api/v1/whoami-key`

## Request

- Base URL: `https://api.quantifyme.ai`
- URL: `https://api.quantifyme.ai/api/v1/whoami-key`
- Auth: none required

## Response `200`

Successful response

- WhoamiResponse
  - `api_key` string
  - `is_trial` boolean
  - `plan` 'free' | 'pro'
  - `user_id` integer
  - `username` string

## Other responses

- `400`: Bad request
- `401`: Invalid or missing API key
- `429`: Rate limit exceeded, or insufficient credits (body carries credits_remaining and credits_required)

---

[API](https://skmtc.dev/quantifyme/apis/quantifyme-api.md) · [All operations](https://skmtc.dev/quantifyme/apis/quantifyme-api/llms.txt) · [OpenAPI document](https://skmtc.dev/quantifyme/apis/quantifyme-api/revisions/089d1cee1ec5?raw)
