Skip to content

Rate Limits

API rate limits help ensure fair usage and protect service availability for all users.

Current Limits

Limit Type Value Description
Requests per minute 200 Maximum API requests per minute per client
Burst allowance 250 Brief spikes above the average are permitted

Rate Limit Headers

When you make API requests, the following headers are included in responses:

Header Description
Retry-After Seconds to wait before retrying (when rate limited)

Rate Limit Response

When you exceed the rate limit, you'll receive a 429 Too Many Requests response:

{
  "detail": "Rate limit exceeded. Please retry after 60 seconds."
}

Best practice: Check the Retry-After header and wait before retrying.

Handling Rate Limits

Implement Exponential Backoff

import time
import requests

def make_request_with_retry(url, headers, max_retries=3):
    for attempt in range(max_retries):
        response = requests.get(url, headers=headers)

        if response.status_code == 429:
            retry_after = int(response.headers.get('Retry-After', 60))
            time.sleep(retry_after)
            continue

        return response

    raise Exception("Max retries exceeded")

Batch Your Requests

Instead of making many individual requests, use batch endpoints where available: - Use search endpoints with pagination instead of individual lookups - Cache responses to reduce redundant requests

Need Higher Limits?

If your use case requires higher rate limits, we'd love to hear from you!

Contact us to discuss your needs: - Email: [support@bedrockbilling.com] - Subject: "API Rate Limit Increase Request"

Please include: - Your organization name - Current use case description - Estimated request volume needed - Any specific endpoints with high usage

We review requests on a case-by-case basis and can provide custom rate limits for legitimate high-volume use cases.