The limits
Windows are fixed, not rolling. The minute resets at the start of each minute, and the day at midnight UTC.
The agency limit means several live keys can’t add up to more than 2,000 quotes a day between them. Test quotes are counted separately, against their own limits, so building and testing never use up your live allowance. If you need more headroom during the beta, tell your Bridgeline contact.
Partner keys
A partner API key has the same limits, counted for your partner account. They are separate from every agency’s.What counts
A request counts once it passes the checks on the key: a valid key, API access on for your agency or partner account, the right type of key, the mode and features the endpoint needs, and its scopes. A request refused by those checks (a401, or a 403 about the key) isn’t counted, and neither is one with a bad Bridgeline-Version (400 INVALID_API_VERSION).
Every request that passes them counts, whatever its outcome. That includes requests we reject as invalid (422), idempotent replays, 403s about the acting broker (BROKER_NOT_ACTIVE, ACTING_BROKER_NOT_ALLOWED, DEFAULT_BROKER_INACTIVE), and requests refused for being over a limit.
The limits are checked in order, shortest window first: the per-minute limit, then each key’s daily quote limit, then your agency’s or partner account’s. A request refused by one limit isn’t counted against the limits after it, so a request refused by the per-minute limit spends none of your daily quote allowance. So:
- Validate before you send. A
422costs a quote from your daily allowance. Don’t retry it unchanged. - Don’t poll hard. Checking quotes for a client’s response uses the same 60 a minute as everything else. See checking for a response.
- Back off on
429. Hammering a limit keeps it full.
The headers
Every response to a request that was counted, errors included, tells you where you stand against whichever limit is closest to running out. A request refused before it was counted (a401, a 403 about the key, or INVALID_API_VERSION) has no RateLimit-* headers:
At the limit
Over a limit, you get429 with a Retry-After header giving the seconds to wait:
Retry-After seconds, then retry with the same Idempotency-Key. A refused request does no work, so the retry is safe. If you hit a daily limit, Retry-After runs to midnight UTC. The retrying client in the idempotency guide handles this for you.