---
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

---

[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)
