## Rate Limits

Every plan has a monthly allowance of visitor checks (calls to `/v1/evaluate`, the SDKs' `evaluate()` included) and no hourly limit; a per-address ceiling that protects the service runs alongside it. Whichever you hit first returns `429`.

| Scope | Limit |
| --- | --- |
| Free plan | 10,000 visitor checks / month |
| Starter | 50,000 / month |
| Growth | 250,000 / month |
| Scale | 1,000,000 / month |
| Enterprise | Agreed in the contract |
| [Public interest](https://maskbreak.com/public-interest) | No monthly allowance, no hourly cap |
| Per source IP | 200,000 requests / hour (approved public-interest keys pass through it) |

Monthly allowances count per calendar month in UTC and reset at 00:00 UTC on the 1st; unused checks do not carry over. `/v1/lookup` and the MCP `lookup_ip` tool have their own monthly allowance of 30× the plan’s visitor checks (300,000 on Free). The fixed `test_*` tokens and the public sandbox key are never counted (since 5 November 2026 the fixed tokens answer up to 1,000 times an hour for each account, then 429 with `Retry-After`; the sandbox key answers 60 times a minute for each address); calls with your test key and the console’s own checks run the full detection, so they count toward the month. A call to `/v1/evaluate` that ends without a verdict is not counted: a token the provider rejects (`400 Invalid token.`) or the bare fail-open allow (`degraded: true` with no browser result). Since 5 November 2026, once an account has made 1,000 such calls in an hour that sent a network token or a browser check ID (`fingerprintEventId`), each further one that hour counts toward the month (never toward `total_evaluations`), with the same answer. There are no overage charges: when the month’s allowance is used up, calls return 429 with `"code": "monthly_quota_exceeded"` and a `Retry-After` that counts down to the 1st, until the month resets or you upgrade. No account has an hourly limit since 29 October 2026. An account created before 1 October 2026 has no cap at all until 30 November 2026, then the Free plan’s allowance, and a custom plan agreed with Maskbreak has none either. The per-IP ceiling is a backstop against runaway abuse from a single machine. `Retry-After` is included on every 429 response. [Plans and prices](https://maskbreak.com/pricing)

When the month’s allowance is used up

```
HTTP/1.1 429 Too Many Requests
Retry-After: 172800   // seconds until 00:00 UTC on the 1st

{
  "error": "…",   // human-readable; branch on code
  "code": "monthly_quota_exceeded"
}
```

Keyed `/v1/evaluate` and `/v1/lookup` responses carry an `X-Request-Id` header you can quote to [support](mailto:support@maskbreak.com) when something looks wrong. The `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset` headers are no longer sent: no account has an hourly limit since 29 October 2026.

No key has an hourly limit: `/v1/usage` reports `hourly_limit: null` with `uncapped: true`. A plan’s monthly allowance still applies (`monthly_limit`). `monthly_limit` is `null` for a key on the [public-interest program](https://maskbreak.com/public-interest) (hospitals, public health, government, elections, emergency services, universities, registered non-profits), a custom plan, and an account created before 1 October 2026 until 30 November 2026.

## Reliability & fail-open behaviour

Maskbreak returns the best available evidence when an intelligence layer is unavailable. `degraded: true` specifically reports missing **network** intelligence; a device-provider failure alone does not set it. A missing `device` object is not proof that browser checks passed. With a network outage or missing token, only the bare non-suspicious allow fallback is excluded from evaluation totals and Events. Independent signals or policy overrides may still yield a stored review or block; personal test keys retain test-event semantics. A provider-rejected or non-string token instead returns `400 Invalid token.`. Choose an explicit endpoint-specific fallback for missing evidence; do not equate unavailable checks with a safe visitor.

## Error Codes

All error responses from the API include an `error` string field. One exception, noted under 403: a block at the edge returns plain text, not JSON.

- 400 **Bad Request** — Invalid `token` (rejected by the provider, or not a string). A missing or empty token is not an error: it is answered fail-open with `degraded: true`. A rejected token is not counted, except that since 5 November 2026, once an account has made 1,000 calls in an hour that ended without a verdict, each further one that hour counts toward the month (see [Rate Limits](https://maskbreak.com/api#rate-limits)). On an account with no monthly allowance, once it has made 1,000 such calls in an hour from tokens or browser check IDs the providers rejected or did not know, the rest of that hour’s calls skip the network and browser checks and get the degraded allow, a rejected token included. A body sent as JSON that does not parse (or a JSON `null`, number or string instead of an object) answers `Malformed JSON body.`, before the key is checked.
- 400 **Bad Request** on `/v1/lookup/{ip}` — the path is not one public IPv4 or IPv6 address: `Invalid IP format.` or `Private or reserved IP — nothing to look up.` The second also answers an IPv4-mapped address (`::ffff:` followed by the IPv4): send the IPv4 alone. A path with broken percent-encoding answers `Malformed URL encoding.` The address is checked before the key is looked up.
- 413 **Payload Too Large** — the body is over 100 KB: `Request body too large.`, before the key is checked; nothing is evaluated or counted.
- 415 **Unsupported Media Type** — a charset or `Content-Encoding` the server cannot read: `Unsupported request encoding.`, before the key is checked.
- 401 **Unauthorized** — Invalid or missing API key. `Missing Key.` also answers `Authorization: Bearer` with nothing after it: the variable holding your key was empty where the call ran (for example `MASKBREAK_API_KEY` not set on that server or in that shell). Node sends an unset variable as the word `undefined`, which answers `Invalid API Key.` On `/v1` the `hint` field names the likely cause.
- 403 **Forbidden** — Account suspended (contact [support@maskbreak.com](mailto:support@maskbreak.com)), or the caller's IP is not on your key's IP allowlist (Settings → API keys → Allowed server addresses; the `hint` field names the calling address). Not retryable from the same address.
  **Third cause, and the confusing one:** a bare `error code: 1010` in `text/plain` with no JSON body is not us — that is our edge rejecting your HTTP client's default User-Agent. `Python-urllib` is the common one. Set any real `User-Agent` header and it clears; every official SDK already does.
- 429 **Rate Limited** — the plan’s monthly allowance is used up, or the separate per-address protection limit was hit. A used-up month carries `"code": "monthly_quota_exceeded"`, and its `Retry-After` counts down to 00:00 UTC on the 1st. No account has an hourly limit since 29 October 2026. The test key’s checks count toward the same monthly allowance. Accounts with no cap (public interest, a custom plan) are not exempt from every safety control: `/v1/usage`, sample responses, OAuth and invalid-key protection have independent limits. Honor `Retry-After` when returned.
- 500 **Server Error** — unexpected internal error, also a failure inside a check: `Server error.` with a `hint` (since 27 October 2026; such a failure answered `400 Invalid token.` before). Quote the answer's `X-Request-Id` to support if it repeats. Use bounded backoff within your action's deadline. A retry may repeat a completed evaluation; never retry a payment or other business mutation blindly.
- 503 **Service Unavailable** — with `code` `storage_unavailable`: we could not check your key or account at that moment (our account store did not answer). It is not an invalid key: a key that matches no account is always 401. Nothing was evaluated and no quota was used. Retry after `Retry-After` (30 seconds) and apply your outage policy meanwhile; never treat it as an allow.
