Skip to content

Rate limits

What a 429 means, how long to wait, and which operations have limits.

On this page

Some operations limit how often your organization, or you, can call them. Over a limit, the API answers 429 Too Many Requests.

What a 429 looks like

  • code is rate_limited.

  • The Retry-After header says how many seconds to wait.

inspectImage and createRental can also answer 429 mirror_quota_exceeded: your organization asked Legion to copy in too many different tags or digests of one image repository today. Use a tag you've used before, or wait until tomorrow (UTC).

What to do

  • Wait at least Retry-After seconds, then try again.

  • For an operation that takes an Idempotency-Key, retry with the same key. See Idempotency.

  • Don't retry in a tight loop. Add jitter if several workers share a key.

Operations with limits

These operations can answer 429. Each one's reference page says what its limit is.