Skip to contentOceanToken

Glossary term

What is a rate limit (HTTP 429)?

A cap on requests or tokens per minute; going over returns HTTP 429.

Definition

A rate limit caps how many requests or tokens a client may send in a period, usually per minute. A request over the limit is refused with HTTP status 429, Too Many Requests, often with a Retry-After header that says how long to wait before trying again.

Why it matters

Every busy application meets 429s sooner or later. Handling them with a short wait and a retry, instead of failing, keeps an app working through sudden bursts of traffic.

How it works on OceanToken

OceanToken sets rate limits per API key, in requests and tokens per minute; responses carry the key's limits in x-oceantoken-key-rpm-limit and x-oceantoken-key-tpm-limit. Over a limit you get 429 rate_limited with Retry-After. Details are in the docs.