---
title: "What the server received: key header, plan, credits, callable tools."
method: GET
path: "/v1/whoami"
tags: ["Diagnostics"]
---

# What the server received: key header, plan, credits, callable tools.

`GET /v1/whoami`

## Request

- Base URL: `https://api.klarix.ai`
- URL: `https://api.klarix.ai/v1/whoami`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-Api-Key`
  - none

Answers 200 whether or not the key is valid, and spends no credit. `key_headers_received: []` means no key reached the server — if you sent one, something in the path removed it.

## Response `200`

Auth diagnostic.

- object
  - `success` boolean
  - `data` object
    - `authenticated` boolean
    - `reason` string
    - `hint` string
    - `plan` 'free' | 'pro' | 'team' | 'ci'
    - `key_source` 'env' | 'database'
    - `credits_remaining` integer, nullable
    - `key_header_used` string, nullable
    - `key_fingerprint` string, nullable
    - `tools_allowed` string[]
    - `key_headers_received` string[]
    - `via_proxy` boolean
    - `auth_enforced` boolean

---

[API](https://skmtc.dev/klarix/apis/klarix-intelligence-api.md) · [All operations](https://skmtc.dev/klarix/apis/klarix-intelligence-api/llms.txt) · [OpenAPI document](https://skmtc.dev/klarix/apis/klarix-intelligence-api/revisions/2e206f7c347f?raw)
