20% offevery plan

Black Friday Sale. New purchases, extensions and upgrades all qualify.

Ends in
00days
00hrs
00min
00sec
See plans
API

API reference: settings

Read and change the server address, version, join command, and reconnect settings from code, and move accounts to another server.

Read settings

GET /settings returns the settings the API can manage. They are the values of Settings → Connection, Behavior and Auto Reconnect in the dashboard.

{
  "settings": {
    "serverHost": "donutsmp.net",
    "serverPort": 25565,
    "bedrockServerHost": "",
    "bedrockServerPort": 19132,
    "version": "1.21.11",
    "bedrockVersion": "1.26.51",
    "joinCommand": "/home 1",
    "joinCommandEnabled": true,
    "joinCommandDelayMs": 3000,
    "joinCommandOnServerMove": true,
    "antiAfk": true,
    "antiAfkIntervalSec": 30,
    "autoEat": false,
    "autoConfirmGuis": true,
    "voiceChatSpoofStatus": "deafened",
    "chatLogging": true,
    "proxyRegionMatching": true,
    "fastReconnect": false,
    "fastReconnectDelayMs": 30000,
    "reconnectDelayMs": 300000,
    "proxyRetryDelayMs": 60000,
    "loginTimeoutMs": 60000,
    "spawnTimeoutMs": 180000
  }
}

The server fields describe your default server. An account you put on another server in the Servers tab keeps that server: see server in the account list.

Change settings

PATCH /settings changes only the fields you send. Everything else keeps its value.

curl -X PATCH https://dashboard.consoleclient.com/api/v1/settings \
  -H "Authorization: Bearer $CC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"serverHost": "hugosmp.net", "serverPort": 25565, "version": "1.21.11"}'
{ "ok": true }

Switches such as Anti AFK, Auto Eat and Chat Logging reach accounts that are online within a few seconds. The server, the version and the join command apply the next time an account connects, the reconnect settings at its next reconnect.

To move the accounts on your default server to a new address, change the settings, then disconnect and connect them.

FieldTypeAllowed values
serverHoststringJava server address, up to 255 characters, no spaces or slashes.
serverPortinteger1 to 65535.
bedrockServerHoststringBedrock server address. An empty string clears it.
bedrockServerPortinteger1 to 65535.
version, bedrockVersionstringExactly as the Java Version and Bedrock Version lists in Settings → Connection show it, such as 26.1 or 1.26.51. The API does not check the lists: a version that does not exist is saved, and the accounts then fail to connect.
joinCommandstringUp to 256 characters. See join commands.
joinCommandEnabledboolean
joinCommandDelayMsinteger0 to 600000.
joinCommandOnServerMovebooleanRuns the join command again after the server moves the account to another server. On by default.
antiAfk, autoEat, autoConfirmGuis, chatLogging, proxyRegionMatching, fastReconnectbooleanSee stay online and auto reconnect.
antiAfkIntervalSecinteger10 to 600.
voiceChatSpoofStatusstringdeafened, connected, speaking or whispering: what players with Simple Voice Chat see. Switching it on or off per account is done in the dashboard.
fastReconnectDelayMsinteger10000 to 300000.
reconnectDelayMsinteger300000 to 86400000.
proxyRetryDelayMsinteger60000 to 86400000.
loginTimeoutMsinteger60000 to 600000.
spawnTimeoutMsinteger180000 to 1800000.
ErrorHTTPMeaning
invalid_field400A value has the wrong type or is out of range. The response names it in field. Nothing is saved when any field is invalid.
no_valid_fields400The body contained none of the fields above.

Fields that are not in the table are ignored. Every other setting, including Discord alerts, Spawner Sentry, Auto Sell and combat, is managed in the dashboard only.

Move accounts to another server

POST /accounts/server gives up to 500 accounts their own server in one call, like ticking them on Overview and clicking Server. Only offline accounts move.

FieldTypeDetail
accountIdsarrayRequired. 1 to 500 account IDs.
javaobjectserverHost, and optionally serverPort and version, for the Java accounts in the list. Send the port too: without it each account keeps its old port. Without version each account keeps its version. An empty serverHost puts the accounts back on your default server.
bedrockobjectThe same for the Bedrock accounts. Needed when the list holds Bedrock accounts.
curl -X POST https://dashboard.consoleclient.com/api/v1/accounts/server \
  -H "Authorization: Bearer $CC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"accountIds": ["[email protected]"], "java": {"serverHost": "hugosmp.net", "serverPort": 25565, "version": "1.21.11"}}'
{
  "ok": true,
  "changedAccountIds": ["[email protected]"],
  "skipped": [{ "accountId": "[email protected]", "error": "account_online", "status": "connected" }],
  "missingAccountIds": [],
  "poolBlocked": []
}
FieldMeaning
changedAccountIdsThe accounts that moved. They join the new server the next time they connect.
skippedAccounts left as they were: account_online (disconnect it first) or proxy_required (it has no proxy).
missingAccountIdsIDs that are not yours.
poolBlockedMoved accounts on the Shared Proxy Pool whose new server the pool does not allow. Give them another proxy before you connect them.
ErrorHTTPMeaning
invalid_accounts, too_many_accounts400accountIds is missing, empty or malformed, or holds more than 500 IDs.
invalid_server400Neither java nor bedrock was sent, or one of them is malformed.
java_server_required, bedrock_server_required400The list holds accounts of an edition you sent no server for. Nothing moved.
Need a hand?

Check the troubleshooting guide or return to all guides.