Get started

Errors and limits

Errors are JSON with a stable error code and a plain-language detail. A refusal over spend also carries the quote, so you can see what the call would have cost.

response · 402
{
  "error": "spend_cap",
  "detail": "the organisation's monthly spend cap ($100.00) would be passed: $99.80 spent",
  "quote": { "count": 14, "full": 14, "cached": 0, "amount": 0.21 }
}

Codes

StatusCodeMeaning
401unauthorizedNo token or key, or one that is invalid or expired.
402insufficient_balanceThe call costs more than your balance. Nothing is charged; quotes still work.
402spend_capThe call would pass a spend cap (organisation, key or MCP client). The error names which.
402over_max_readsThe call returns more reads than the request ceiling. Narrow it or raise max_reads.
403forbiddenYour role can't make this call, or the account isn't in an organisation.
404not_foundThe thing doesn't exist in your organisation.
409conflictThe change clashes with what exists, such as an email already in an organisation.
410goneThe route was retired. The detail names its replacement.
422bad_requestA parameter is missing or out of range. The detail says which.
422unknown_metricA metric name isn't in the catalogue (GET /v1/metrics lists them).
422release_mismatchValues from different releases were asked for together. Pin one release.
429rate_limitedToo many requests. Wait the seconds in the Retry-After header.
429drilldown_limitThe daily limit on single-property detail is reached.
503pendingA value or area isn't ready yet. Try again later.

Rate limits

BucketSustainedBurst
Your organisation, every request300 a minute60
Each API key120 a minute30
Creating catchments and running analyses30 a minute10

A request takes one token from each bucket it belongs to. Over a limit, the API answers 429 with Retry-After in seconds; a refused request uses nothing.