Clokeep Clokeep Docs
Documentation API Reference
PlatformShow the platform and your client
Platform View as Markdown

Show the platform and your client

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.

Get /api/v1/platform
curl 'https://app.clokeep.com/api/v1/platform' \
  -H 'Authorization: Bearer YOUR_API_TOKEN' \
  -H 'Accept: application/json'
<?php

$ch = curl_init('https://app.clokeep.com/api/v1/platform');

curl_setopt_array($ch, [
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_HTTPHEADER => [
    'Authorization: Bearer YOUR_API_TOKEN',
    'Accept: application/json',
  ],
]);

$response = curl_exec($ch);

echo $response;
const response = await fetch("https://app.clokeep.com/api/v1/platform", {
  headers: {
    "Authorization": "Bearer YOUR_API_TOKEN",
    "Accept": "application/json",
  },
});

console.log(await response.text());
import requests

response = requests.get(
    "https://app.clokeep.com/api/v1/platform",
    headers={
        "Authorization": "Bearer YOUR_API_TOKEN",
        "Accept": "application/json",
    },
)

print(response.text)
{
  "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
    }
  }
}
{
  "message": "Unauthenticated."
}
{
  "message": "Your role does not permit this action."
}
{
  "message": "Too Many Attempts."
}

New to the API? Read Your first API call and How Clokeep works.

Response

200

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

  • versionstring

    The release of the panel that answered.

  • api_versionstring
  • min_agent_versionstring

    The oldest agent release the panel still accepts.

  • panel_egress_ipsstring[]

    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.

  • clientobject
    Show properties
    • client.slugstring

      The client's short name in URLs.

    • client.limitsobject

      The client's cap per resource; null when it is unlimited.

    • client.usageobject

      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.

  • messagestring

    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.

  • messagestring

    What went wrong.

429

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

  • messagestring

    What went wrong.

Esc
↑↓to navigate↵to openEscto close