> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Auth Whoami V1

> Echo the calling key's effective auth context. Useful for SDK debugging — 'what scopes do I have, what tenant am I bound to?' Doesn't hit the database…

> [!WARNING]
>
> **Confirm your deployment before running this request.** This page describes an API contract;
> a published reference does not establish hosted availability. Check the dated
> [host report](https://docs.stateset.com/api-reference/hosts.md) and obtain your deployment URL and credentials.
> Replace the example host if your provisioned service uses a different URL.

Echo the calling key's effective auth context.

Useful for SDK debugging — 'what scopes do I have, what tenant am I
bound to?' Doesn't hit the database; returns whatever
`get_api_key_tenant` resolved at request time. Reaching this endpoint
successfully proves the key is active, unexpired, and within rate
limit (the auth dependency would have rejected otherwise).

### Response

`WhoamiResponse`

**tenant\_id** `string` *required*

**api\_key\_id** `string` *required*

**user\_id** `string` *required*

**scopes** `string[]` *required*

**is\_admin** `boolean` *required*

Convenience flag: true iff `admin` is in the key's scope set. Admin keys can manage other keys, webhooks, and templates.

### Status codes

| Code | Meaning |
| - | - |
| `200` | Successful Response |

### Using this contract

Read the [source OpenAPI document](https://docs.stateset.com/spec/computer-use.json) for declared schemas and alternatives.
This page also includes documented corrections from the [spec overlays](https://github.com/stateset/docs/tree/main/spec/overlays).
Example IDs and values are illustrative; replace them with records from your workspace.

```bash cURL theme={null}
curl --silent --show-error --fail-with-body --request GET \
  --url 'https://api.computer.stateset.app/api/v1/auth/whoami' \
  --header "X-API-Key: $STATESET_COMPUTER_USE_API_KEY"
```

```json 200 theme={null}
{
  "tenant_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "api_key_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "user_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "scopes": [
    "string"
  ],
  "is_admin": true
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.