# Show the platform and your client

`GET /api/v1/platform`

The API version, the panel release that answered, the oldest agent release it accepts and the addresses the panel connects to storages from, plus the token's client: its cap per resource under `limits` (null means unlimited) and what it uses now under `usage`.

Guides: [Your first API call](/docs/developers/first-call), [How Clokeep works](/docs/how-clokeep-works)

## Response

### 200

The platform's versions and the token's client.

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| version | string | yes | The release of the panel that answered. |
| api_version | string | yes |  |
| min_agent_version | string | yes | The oldest agent release the panel still accepts. |
| panel_egress_ips | string[] | yes | The addresses the panel connects to storages from (Test connection, browsing, downloads, retention deletes, hourly checks): allow them on a storage that only accepts known addresses. IPv4/IPv6 addresses or CIDRs; empty when not published. Agents connect from their own servers. |
| client | object | yes |  |
| client.slug | string | yes | The client's short name in URLs. |
| client.limits | object | yes | The client's cap per resource; null when it is unlimited. |
| client.usage | object | yes | How many of each resource the client has now. |

### 401

The request carries no valid token: the `Authorization: Bearer` header is missing, or its token is unknown, revoked or past its expiry date. Send a current personal access token.

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| message | string | yes | Always `Unauthenticated.`. |

### 403

The token may not read this. The `message` says why: `Your role does not permit this action.` (its owner is not an Admin, Operator or Viewer in the client), `This account is disabled.`, `This token is not bound to a client you belong to.`, or `Client suspended`.

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| message | string | yes | What went wrong. |

### 429

More than 120 requests a minute for this user. Wait the seconds in `Retry-After`, then retry.

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| message | string | yes | What went wrong. |

## Request example

```bash
curl 'https://app.clokeep.com/api/v1/platform' \
  -H 'Authorization: Bearer YOUR_API_TOKEN' \
  -H 'Accept: application/json'
```

## Response example (200)

```json
{
  "version": "4.2.0",
  "api_version": "v1",
  "min_agent_version": "1.2.0",
  "panel_egress_ips": [
    "203.0.113.10",
    "2001:db8::10"
  ],
  "client": {
    "slug": "example-hosting",
    "limits": {
      "servers": 25,
      "storages": 10,
      "plans": 100,
      "users": 5
    },
    "usage": {
      "servers": 3,
      "storages": 1,
      "plans": 4,
      "users": 2
    }
  }
}
```

## Response example (401)

```json
{
  "message": "Unauthenticated."
}
```

## Response example (403)

```json
{
  "message": "Your role does not permit this action."
}
```

## Response example (429)

```json
{
  "message": "Too Many Attempts."
}
```
