Chatilo
USDPrices shown in US dollars Sign in Start free trial
API reference

Account

Check a key and see the workspace behind it: its plan, how much of each limit is used, and what the key is allowed to do.

Test a key #

GET/api/v1/me

Works with any key

Returns the workspace behind the key. Use it to check that a key works.

Returns HTTP 200

okboolean
Always true on success.
workspaceobject
{"id", "name", "plan", "timezone"}.
keyobject
{"name", "scope"}: scope is read or write.

Errors

401unauthorized
The Authorization header is missing, or the key is wrong or deleted.
429rate_limited
More than 120 requests in a minute with this key. Wait for the seconds in Retry-After.

Plus the errors any request can get.

Request
curl "https://chatilo.me/api/v1/me" \
  -H "Authorization: Bearer YOUR_API_KEY"
<?php
$apiKey = 'YOUR_API_KEY';

$ch = curl_init('https://chatilo.me/api/v1/me');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . $apiKey],
]);
$result = json_decode((string) curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);

if ($status >= 400) {
    throw new RuntimeException($result['error']['code'] . ': ' . $result['error']['message']);
}
print_r($result);
const apiKey = 'YOUR_API_KEY';

const response = await fetch("https://chatilo.me/api/v1/me", {
  headers: {
    Authorization: `Bearer ${apiKey}`,
  },
});
const result = await response.json();

if (!response.ok) {
  throw new Error(`${result.error.code}: ${result.error.message}`);
}
console.log(result);
import requests

api_key = "YOUR_API_KEY"

response = requests.get(
    "https://chatilo.me/api/v1/me",
    headers={"Authorization": f"Bearer {api_key}"},
    timeout=30,
)
result = response.json()

if not response.ok:
    raise RuntimeError(f"{result['error']['code']}: {result['error']['message']}")
print(result)
Response · HTTP 200
{
    "ok": true,
    "workspace": {
        "id": 1,
        "name": "Maple Thread Co.",
        "plan": "Growth",
        "timezone": "Asia/Kolkata"
    },
    "key": {
        "name": "Order system",
        "scope": "write"
    }
}

Get the account #

GET/api/v1/account

Works with any key

The workspace, its plan, each plan limit with how much is used, and what this key may do.

Returns HTTP 200

okboolean
Always true on success.
workspaceobject
{"id", "name", "timezone", "currency", "created_at"}.
planobject
{"name", "state", "ends_at", "features"}: state is trial or active; features lists what the plan includes, such as api, flows or commerce.
limitsobject
One entry each for agents, contacts, messages (broadcast messages this month), numbers and widgets: {"limit", "used", "remaining", "description"}.
keyobject
{"id", "name", "prefix", "scope", "scopes", "created_at", "last_used_at"}. The key itself is never returned.
rate_limitobject
{"requests", "per_seconds"}: how many requests this key may make in how long.

Errors

401unauthorized
The Authorization header is missing, or the key is wrong or deleted.
429rate_limited
More than 120 requests in a minute with this key. Wait for the seconds in Retry-After.

Plus the errors any request can get.

Request
curl "https://chatilo.me/api/v1/account" \
  -H "Authorization: Bearer YOUR_API_KEY"
<?php
$apiKey = 'YOUR_API_KEY';

$ch = curl_init('https://chatilo.me/api/v1/account');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . $apiKey],
]);
$result = json_decode((string) curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);

if ($status >= 400) {
    throw new RuntimeException($result['error']['code'] . ': ' . $result['error']['message']);
}
print_r($result);
const apiKey = 'YOUR_API_KEY';

const response = await fetch("https://chatilo.me/api/v1/account", {
  headers: {
    Authorization: `Bearer ${apiKey}`,
  },
});
const result = await response.json();

if (!response.ok) {
  throw new Error(`${result.error.code}: ${result.error.message}`);
}
console.log(result);
import requests

api_key = "YOUR_API_KEY"

response = requests.get(
    "https://chatilo.me/api/v1/account",
    headers={"Authorization": f"Bearer {api_key}"},
    timeout=30,
)
result = response.json()

if not response.ok:
    raise RuntimeError(f"{result['error']['code']}: {result['error']['message']}")
print(result)
Response · HTTP 200
{
    "ok": true,
    "workspace": {
        "id": 1,
        "name": "Maple Thread Co.",
        "timezone": "Asia/Kolkata",
        "currency": "INR",
        "created_at": "2026-01-02T08:00:00Z"
    },
    "plan": {
        "name": "Growth",
        "state": "active",
        "ends_at": "2027-01-02T08:00:00Z",
        "features": [
            "inbox",
            "broadcasts",
            "widget",
            "auto_replies",
            "flows",
            "ai",
            "api"
        ]
    },
    "limits": {
        "contacts": {
            "limit": 10000,
            "used": 2140,
            "remaining": 7860,
            "description": "contacts"
        },
        "messages": {
            "limit": 50000,
            "used": 1250,
            "remaining": 48750,
            "description": "broadcast messages this month"
        }
    },
    "key": {
        "id": 3,
        "name": "Order system",
        "prefix": "ck_live_c4827a",
        "scope": "write",
        "scopes": [
            "read",
            "write"
        ],
        "created_at": "2026-01-05T10:00:00Z",
        "last_used_at": "2026-01-31T09:30:00Z"
    },
    "rate_limit": {
        "requests": 120,
        "per_seconds": 60
    }
}

Cookies on this site

We use the cookies needed to run the site and keep you signed in. With your OK we also remember choices you make here, such as the currency for prices. We don’t use advertising or tracking cookies. Cookie policy