---
title: "Inspect the calling agent identity (proxy_token auth)"
method: GET
path: "/api/agent/whoami"
tags: ["Agent"]
---

# Inspect the calling agent identity (proxy_token auth)

`GET /api/agent/whoami`

## Response `200`

OK

- AgentWhoamiResponse
  - `display_name` string, required
  - `role` string, required
  - `sandbox_id` string, required
  - `sandbox_status` string, required — SandboxStatus is the current sandboxes.status column verbatim — one of creating / running / pausing / paused / resuming / offline / deleting (see internal/sbxstore/state.go), or "" for legacy rows where the field was never set. The server always populates this field on 200 responses.
  - `short_id` string, required
  - `user_id` string, required
  - `workspace_id` string, required
  - `workspace_name` string, required

## Other responses

- `401` — unauthorized
- `403` — identity not valid for this token (missing user binding or workspace membership)
- `500` — internal error

## Changes

> 20 revisions in range; 1 could not be searched.

- **2026-06-04** `f66ef1c55406` — 1 info
  - endpoint added
- **2026-05-22** `1ba39f384b63` — 1 breaking
  - api path removed without deprecation

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

---

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