# Who am I

> The key, its tenants, and the domains and sizes of Shako.

`GET /v1/whoami`

```bash curl
curl -X GET "https://api.shako.dev/v1/whoami" \
  -H "Authorization: Bearer $SHAKO_API_KEY"
```

```python Python
import os

import requests

response = requests.get(
    "https://api.shako.dev/v1/whoami",
    headers={"Authorization": f"Bearer {os.environ['SHAKO_API_KEY']}"},
)
response.raise_for_status()
print(response.json())
```

```javascript JavaScript
const response = await fetch("https://api.shako.dev/v1/whoami", {
  method: "GET",
  headers: { Authorization: `Bearer ${process.env.SHAKO_API_KEY}` },
});
if (!response.ok) throw new Error(await response.text());
console.log(await response.json());
```

```json 200 (excerpt)
{
  "tenant": "acme",
  "email": "maya@example.com",
  "principal": {
    "kind": "api_key",
    "name": "ci"
  }
}
```

Authenticate with `Authorization: Bearer <API key>` on `https://api.shako.dev`. Role: any key.

## Response

200 with [the whoami object](https://shako.dev/api/objects/whoami.md).

The errors: https://shako.dev/api/errors.md. All the endpoints of Caller: https://shako.dev/api/caller.md.
