20% offevery plan

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

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

API errors and rate limits

Every error code the API can return, what the rate limits are, and how to retry safely.

What an error looks like

Any response that is not HTTP 200 is an error. The body is JSON with a short, stable error code, sometimes with extra fields that belong to that code. Match on the code, never on the HTTP status alone.

HTTP/1.1 429 Too Many Requests
Retry-After: 17
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 0

{ "error": "rate_limited", "limit": 60, "windowSeconds": 60, "tier": 2 }

Key, plan, and access errors

ErrorHTTPMeaning and fix
missing_api_key401No Authorization: Bearer header. Dashboard logins do not work on the API.
invalid_api_key401The key is wrong or was revoked. Keys are case sensitive and exactly 64 characters.
too_many_failed_attempts42920 failed attempts (wrong key, or an IP that is not on the whitelist) from your IP in 10 minutes. Fix the key or the whitelist, or wait Retry-After seconds.
ip_not_allowed403Your IP whitelist is on and the request came from an IP that is not on it, or the list is empty.
tier1_required403No active paid plan, on an endpoint that needs Tier 1. Without a plan every call is refused: endpoints that need a higher tier answer tier2_required or tier3_required with "tier": 0. It works again from the next request after you renew.
tier2_required, tier3_required403Your plan does not include this endpoint. The body carries requiredTier and your tier, for example { "error": "tier3_required", "requiredTier": 3, "tier": 2 }. See the plan table in Get started with the API.
suspended, banned403The Console Client account is suspended or banned.
maintenance503Console Client is in maintenance. Retry in a few minutes.

Request errors

ErrorHTTPMeaning and fix
unknown_endpoint404The path or the HTTP method is not part of the API. Check the spelling and the method.
invalid_json400The body is not valid JSON.
body_too_large413The body is over 5 MB.
invalid_request400A required field is missing or has the wrong type.
invalid_account400The account ID is missing.
not_found404No account with that ID.
not_assigned, account_missing404The account has not been started. Connect it first.
not_connected409The account is not online.
command_timeout, timeout504The account did not answer in time. It may be lagging or reconnecting. Retry once.
server_error500Something failed on our side. Retry, and open a ticket if it keeps happening.

Codes that belong to one endpoint, such as cooldown for connect or macro_not_found, are listed with that endpoint.

Rate limits

Your limits depend on your plan and belong to your account, not to a key: every key draws from the same allowance.

LimitTier 1Tier 2Tier 3When you hit it
Requests per minute3060120429 rate_limited with Retry-After. The body carries limit, windowSeconds and tier.
Requests in flight at once248429 too_many_concurrent_requests with maxConcurrent and tier. A long poll counts as one for as long as it is open.
LimitValueWhen you hit it
Failed attempts20 per 10 minutes, per IP429 too_many_failed_attempts. Requests with a valid key from an allowed IP are not affected.

Every authenticated response tells you where you stand:

HeaderMeaning
X-RateLimit-LimitRequests allowed per minute on your plan: 30, 60 or 120.
X-RateLimit-RemainingRequests left in the current minute, across all your keys.
X-RateLimit-ResetUnix time in seconds when the minute resets.
Retry-AfterWith rate_limited and too_many_failed_attempts: how many seconds to wait.

Refused requests count too, also those refused for too many requests at once. The minute starts with your first request and resets 60 seconds later, so retrying a 429 at once only uses up the rest of that minute.

A plan change applies from the next request. After a downgrade, requests already made in the current minute count against the lower limit.

Writes (anything but GET) from one IP address are also capped at 2,000 a minute, dashboard included. That rate_limited carries no Retry-After: wait a minute.

Poll less, get more

You wantDo this
Account statusOne GET /accounts long poll with rev (see live updates), or one GET /accounts every 5 to 10 seconds. Do not call GET /accounts/{id} once per account.
Kicks, deaths and alertsOne GET /notifications long poll with wait=25000 covers every account.
Chat in real timeOne GET /chat long poll with wait=25000 and limit=1000 covers every account, at two or three requests a minute.
To know a macro finishedGET /macros/active every few seconds, or watch GET /notifications for macro-done.
A long click sequenceBuild it as a macro and run it with one request.

Retry safely

ResponseRetry?
429Yes, after Retry-After seconds. For cooldown use cooldownRemaining. For too_many_concurrent_requests, wait until one of your open requests finishes.
500, 503, 504Yes, with a growing delay: 1, 2, 4, 8 seconds, then give up and alert yourself.
400, 401, 403, 404, 409No. The same request fails the same way until you change something.

Connect, disconnect, stop and close are safe to repeat. Be careful with repeating POST /chat/send after a timeout on your side: the first attempt may have gone through, and the account would say it twice.

Need a hand?

Check the troubleshooting guide or return to all guides.