# The credential in use, its scopes and its rate limit.

> https://koi.dog/docs/api/meta/get-who-am-i/

`GET /api/v1/whoami` · Key: `any`

No path or query parameters.

## Response.

200 OK: a JSON object. The example has placeholder values.

## Request.

```sh
curl https://app.koi.dog/api/v1/whoami \
    -H "Authorization: Bearer $KOIDOG_API_KEY"
```

```js
const res = await fetch("https://app.koi.dog/api/v1/whoami", {
  headers: {
    Authorization: `Bearer ${process.env.KOIDOG_API_KEY}`,
  },
});
console.log(await res.json());
```

```python
import os

import requests

r = requests.get(
    "https://app.koi.dog/api/v1/whoami",
    headers={
        "Authorization": f"Bearer {os.environ['KOIDOG_API_KEY']}",
    },
)
r.raise_for_status()
print(r.json())
```

## Response example.

```json
{
  "credential": "session",
  "scopes": [],
  "apiKey": {
  },
  "rateLimit": {
  },
  "installId": "string",
  "serverVersion": "string"
}
```
