---
title: "Resolve the authenticated principal behind the presented bearer"
method: GET
path: "/api/whoami"
tags: ["Users"]
---

# Resolve the authenticated principal behind the presented bearer

`GET /api/whoami`

## Response `200`

Authenticated principal

- object
  - `kind` 'operator' | 'user', required
  - `user` User, required
    - `id` string, required
    - `name` string, required
    - `email` string
    - `role` string
    - `notes` string
    - `emailAliases` string[]
    - `preferredChannel` string
    - `timezone` string
    - `metadata` object
    - `dailyBudgetUsd` number, nullable
    - `status` 'invited' | 'active' | 'suspended'
    - `createdAt` string, date-time, required
    - `lastUpdatedAt` string, date-time, required

## Other responses

- `401` — Unauthorized

## Changes

- **2026-08-08** `101e7a060651` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/changes/api/whoami/get.md)

---

[API](https://skmtc.dev/desplega-ai/apis/agent-swarm-api.md) · [All operations](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/desplega-ai/agent-swarm-api/revisions/e0acd2155cad/schema)
