API reference: accounts and connections
Read your plan and accounts with live status, connect or disconnect one account or a list, Connect All, Stop All, Pause, and answer a CAPTCHA from code.
Check your key and plan
GET /me confirms the key works and returns your plan, your limits, the key that made the call and the areas your plan includes. It is the cheapest call for a health check.
{
"discordId": "100000000000000001",
"plan": { "tier": 3, "maxAccounts": 20, "expiresAt": 1792540800000 },
"rateLimit": { "limit": 120, "windowSeconds": 60, "maxConcurrent": 8 },
"ipWhitelist": { "enabled": true, "count": 1 },
"key": { "name": "Sell script", "hint": "N5VC", "createdAt": 1790000000000 },
"access": {
"accounts": true, "chat": true, "macros": true, "settings": true,
"inventory": true, "look": true, "statCheck": true, "movement": true
}
}| Field | Meaning |
|---|---|
plan.tier | Your plan: 1, 2 or 3. |
rateLimit | Requests per minute and requests in flight for your plan, shared by all your keys. |
key | The name of the key that made this call, its last four characters, and when it was created. |
access | true for every area your plan includes. inventory, look (setting the head angle) and statCheck (Stat Checker) need Tier 2. movement (walking, tasks, reading the head angle) needs Tier 3. |
List accounts
GET /accounts returns every account on your dashboard with its live status.
{
"accounts": [
{
"id": "[email protected]",
"username": "ConsoleClient",
"serverUsername": "",
"type": "microsoft",
"status": "connected",
"lastError": "",
"connectedAt": 1790000000000,
"lastSeenAt": 1790000450000,
"reconnectPending": false,
"reconnectAt": 0,
"proxyLatencyMs": 48,
"position": { "x": 120.5, "y": 64, "z": -33.5 },
"xpLevel": 30,
"server": { "host": "", "port": 0, "version": "" },
"joinCommand": "",
"captchaPending": false
}
]
}| Field | Meaning |
|---|---|
id | The account ID used in every other endpoint. It never changes. |
username | The player name. serverUsername is filled only when the server reports a different name. |
type | microsoft, cookie, ssid (SSID and refresh token accounts), offline or bedrock. |
status | See the status table below. |
lastError | The latest kick or error text, or empty. |
connectedAt, lastSeenAt | When the current session started, and when the account was last seen online. |
reconnectPending, reconnectAt | Whether an automatic reconnect is scheduled, and when. |
proxyLatencyMs | Latency through the account’s proxy, or null when unknown. |
position | Last reported coordinates, or null. |
xpLevel | The experience level. |
server | The account’s own server address, port and version. Empty values mean the account uses your default server from settings. |
joinCommand | The join command set in the account’s own details, if any. |
captchaPending | true when the server shows this account a CAPTCHA that needs an answer. Answer it in the dashboard, or with /accounts/{id}/captcha below. |
| Status | Meaning |
|---|---|
connected | Online on the server. |
connecting | Joining the server. |
authing | Signing in with Microsoft. |
waiting-proxy | Waiting for its proxy to respond. |
disconnected | Offline. |
kicked | The server kicked it. lastError has the reason. |
error | The connection failed. lastError has the reason. |
auth-failed | The sign-in failed or needs you. Open the dashboard to sign in again. |
invalid-account | The account’s cookie or token no longer works. |
session-conflict, running-on-another-node | The account is already online somewhere else. |
Proxy details and credentials are never returned by the API. To hear about changes instead of polling, see notifications and live updates.
Get one account
GET /accounts/{id} returns one account in the same shape, under account. An unknown ID answers 404 not_found.
curl https://dashboard.consoleclient.com/api/v1/accounts/[email protected] \
-H "Authorization: Bearer $CC_API_KEY"This is the call to poll after a connect. Every two to five seconds is plenty.
Connect an account
POST /accounts/{id}/connect starts the account, like the Connect button. No body.
curl -X POST https://dashboard.consoleclient.com/api/v1/accounts/[email protected]/connect \
-H "Authorization: Bearer $CC_API_KEY"{ "ok": true }| Error | HTTP | Meaning |
|---|---|---|
not_found | 404 | No account with that ID. |
slot_limit | 403 | As many accounts are online as your plan allows. The response includes maxAccounts. |
proxy_required | 400 | The account has no proxy. Assign one in the dashboard. |
proxy_expired, proxy_limit_reached | 400 | The account’s proxy from the Proxy Shop expired or used up its bandwidth. |
proxy_not_allowed | 400 | The account’s own proxy cannot be used on Console Client. Pick another one. |
shared_pool_empty, shared_proxy_blocked | 400, 403 | The Shared Proxy Pool is empty, or it is not allowed on this server. The second one names the server in server. |
auth_required | 409 | The account needs a Microsoft sign-in first. Do it in the dashboard. |
cooldown | 429 | The account was connected moments ago. cooldownRemaining is the wait in milliseconds, reason is in_progress, recent_attempt or cooldown. |
no_backend | 503 | No Node can take the account right now. Try again shortly. |
Disconnect an account
POST /accounts/{id}/disconnect takes the account offline, like the Disconnect button. It stays offline, with no automatic reconnect, until you connect it again.
POST /accounts/{id}/cancel-reconnect turns off the account’s automatic reconnect. An offline account stays offline. An online account stays online, but does not reconnect by itself after it next drops. An account that is still connecting stops.
Both answer { "ok": true } and need no body, also for an ID that does not exist. POST /accounts/connect-all turns automatic reconnect back on for accounts that are online.
Connect, stop and pause many accounts
| Endpoint | What it does |
|---|---|
POST /accounts/connect-all | Starts Connect All: every offline account connects one after another at the pace the dashboard uses. Answers { "ok": true, "started": true }, or "started": false when a run is already going. |
POST /accounts/connect | Connect All for the accounts in accountIds only, 1 to 200 IDs. IDs that are not yours are skipped. Same rules and answer as connect-all: it counts as a Connect All run, so only one of the two runs at a time. |
POST /accounts/connect-all/stop | Stops a Connect All run that is still starting accounts. Accounts already online stay online. Reconnects that are already scheduled still happen: POST /accounts/pause-all cancels them. |
POST /accounts/pause-all | Pause, like the Pause button on Overview: stops a Connect All run and every scheduled reconnect. Online accounts stay online but do not reconnect by themselves after a drop, and accounts still connecting stop. connect-all turns automatic reconnect back on. Answers { "ok": true }. |
POST /accounts/disconnect-all | Stop All: disconnects every account and keeps them offline until you connect them again. |
POST /accounts/disconnect | Disconnects the accounts in accountIds, 1 to 200 IDs, like the Disconnect button of each, and keeps them offline. IDs that are not yours, and accounts that were never started, are skipped. A Connect All run keeps going. Answers { "ok": true }. |
curl -X POST https://dashboard.consoleclient.com/api/v1/accounts/connect \
-H "Authorization: Bearer $CC_API_KEY" \
-H "Content-Type: application/json" \
-d '{"accountIds": ["[email protected]", "[email protected]"]}'A list of more than 200 IDs answers 400 too_many_accounts. An empty list, or one that holds anything but account IDs, answers 400 invalid_request. An ID that appears twice counts once.
Answer a CAPTCHA
Some servers show a code on a map, or a question with buttons, when an account joins. While captchaPending is true, read it and send the answer, like the CAPTCHA window in the dashboard.
GET /accounts/{id}/captcha returns the open CAPTCHA, or { "captcha": null }.
{
"captcha": {
"kind": "map",
"message": "Type the code you see on the map",
"server": "donutsmp.net",
"expiresAt": 1790000700000,
"width": 128,
"height": 128,
"image": "data:image/png;base64,iVBORw0KGgo..."
}
}| Field | Meaning |
|---|---|
kind | map for a picture code, choice for a question with buttons. |
image | For a map: the picture as a PNG data URL, width by height pixels, in the colors the dashboard shows. |
title, text, choices | For a choice: the question and the button texts. links lists pages the server points to, each with a label and a url. |
message, server | The server’s own message, and the server that asks. |
expiresAt | When the CAPTCHA closes. Answer before then. |
POST /accounts/{id}/captcha sends the answer in code and answers { "ok": true }. For a map, code is what the picture shows, 1 to 32 letters or digits. For a choice, it is the position of the right button, counting from 0.
curl -X POST https://dashboard.consoleclient.com/api/v1/accounts/[email protected]/captcha \
-H "Authorization: Bearer $CC_API_KEY" \
-H "Content-Type: application/json" \
-d '{"code": "7KQ2"}'| Error | HTTP | Meaning |
|---|---|---|
invalid_code | 400 | The answer is empty, too long, or not one of the choices. |
no_captcha | 404 | The account has no open CAPTCHA, or it expired. |
not_assigned | 404 | The account has not been started. |
command_timeout | 504 | The account did not answer in time. Read the CAPTCHA again before you retry. |
Any other refusal from the account answers 409 with its code, or with answer_failed.
Check the troubleshooting guide or return to all guides.