REST API
Rate limits
The API limits how fast a key, and an organisation as a whole, may call.
| Limit | Value | Over it |
|---|---|---|
| Per key | 240 calls a minute | 429 rate_limited |
| Per organisation | 600 calls a minute, over all its keys | 429 rate_limited |
| Per organisation, a day | 20,000 calls a UTC day | 429 daily_limit_reached |
| Per organisation, in flight | 2 requests at once, over all its keys and AI clients | 429 rate_limited at once |
The daily limit is shared by every key of your organisation and restarts at 00:00 UTC. WatchTower15 support can raise the per-key limit (up to 600), the daily limit and the limit on requests in flight (below) for an organisation; the
per-organisation minute limit is already at its ceiling of 600 and cannot be raised; see account limits. GET /v1/organisation returns the limits that apply to
your organisation, and today’s calls against the daily one, in limits.api.
Requests in flight
Section titled “Requests in flight”An organisation may have 2 requests in flight at once by default, counted together over all its keys and over the tool calls of its AI clients: a request holds one of the two from the moment its key is accepted until its answer is sent. A request that would be a third is refused at once, not queued, with 429 rate_limited, Retry-After: 1 and limit set to the number allowed at a time; it does not count against the per-minute or daily limits, and the call can be sent again a second later.
An AI client’s handshake, its list requests (tools/list, prompts/list, resources/list), ping and its notifications hold nothing: only a tool call does. The spec document (GET /v1/openapi.json), the OAuth endpoints and the discovery documents hold nothing either.
Cap a client’s parallelism at the number allowed and it never meets the limit: a job that sends calls two at a time, each waiting for its answer before the next, is never refused for this. Past it, retry after the Retry-After second rather than at once.
This limit is not in GET /v1/organisation’s limits.api: each refusal carries it in its limit field instead. WatchTower15 support can raise it for an organisation, up to 6; see account limits.
Repeated reads
Section titled “Repeated reads”A list or a metrics read asked again with the same parameters within a short time is answered from a recent copy: lists (servers, alarms, incidents,
domains, databases, services, custom metrics and a server’s ports, units and volumes) for up to 30 seconds, time series, log aggregates and the health
overviews for up to 60 seconds. Such an answer carries Age, how many seconds old it is, and still counts against every limit above. A change your
organisation makes, through the API, an AI client or the console, is seen by the next read at once. A change WatchTower15 itself sees, a new reading or an
alarm firing, can take until the copy expires. Errors are never kept, and a single-resource read (GET /v1/servers/{server_uuid}), a log search and the
calls about your own key are always answered fresh.
The scan cooldown
Section titled “The scan cooldown”Running a scan has a limit of its own, beside the call limits: a domain can be scanned once
every 10 minutes for each scan type. A second call inside that time answers 429
rate_limited with Retry-After, the seconds left, and starts nothing. It applies to every
key, and a call refused for billing (402) does not start it. See
acting on incidents and scans.
Reading the limits
Section titled “Reading the limits”Every answer to a call that found its key carries:
X-RateLimit-Limit— the limit that applies to the call;X-RateLimit-Remaining— what is left of it;X-RateLimit-Reset— when it restarts.
A 429 also carries Retry-After, the seconds to wait. Wait that long, then retry; do not
retry in a tight loop. A job that walks many rows is best paced at four calls a second or slower, and is better still when it asks for what it needs: the
list of a server’s security findings takes filters, so a question about one vulnerability is a call or two, not one call per finding.
Calls that fail authentication are counted apart (per key and per address) and throttled with
the same 429 and Retry-After; a key that does not exist cannot be guessed at speed.
At the edge
Section titled “At the edge”WatchTower15’s network edge also limits one address to 600 requests a minute, counted across the console and the API together. The limits above are the ones you plan around; the edge’s is a backstop against abuse. A CI provider that sends many customers’ jobs from one shared address is counted together at the edge, so spread the work out or ask support if you meet it.