Error code
rate_limited
HTTP 429code: rate_limitedtitle: Rate limited
The key made more calls in a minute than its limit (240 by default), or the organisation more than its own (600 by default) over all its keys, or the organisation already had its limit of requests in flight (2 by default) when this one arrived, or repeated failed authentications were throttled. A scan run through POST /v1/domains/{domain_uuid}/scans/{scan_type} answers it too when that domain’s scan of that type was started less than 10 minutes ago.
What the answer carries
Section titled “What the answer carries”Every problem document carries type, title, status, code, detail and request_id. In addition: limit: the limit that was exceeded. Header Retry-After: the seconds to wait.
What to do
Section titled “What to do”Wait for Retry-After seconds, then retry, and slow the job down. When the refusal is for requests in flight, Retry-After is 1 and limit is the number of requests an organisation may have in flight at once (2 by default): send fewer calls at the same time, up to that number, each waiting for its answer, and retry the refused call after a second. For a scan, Retry-After is the seconds left of its 10-minute cooldown, per domain and scan type: back off for that long rather than retrying at once. See rate limits and acting on incidents and scans.
This page's address
The API's answer names this page in type as https://docs.watchtower15.com/api/errors/rate_limited/, an identifier that never changes within v1. That address answers with a permanent redirect to this page, so a link in a log still opens it, and a client comparing type as a string never breaks.