429 Too Many Requests response. You should design your integration to handle this response gracefully by reducing request frequency and retrying with a delay, rather than failing immediately or retrying in a tight loop.
429 — Too Many Requests
When you exceed the rate limit, the API responds with:Best practices
Cache fetched campaigns. The most effective way to stay within rate limits is to avoid fetching campaigns more often than necessary. Fetch a batch of campaigns once per page load (or once per session) and reuse the results rather than calling/campaigns/fetch on every render or component mount.
Use the limit parameter. The limit query parameter accepts values up to 100, allowing you to retrieve up to 100 campaigns in a single request. Batching fetches this way reduces the total number of API calls your integration makes.
Implement exponential backoff for retries. When you receive a 429 response, wait before retrying. Double the wait time on each successive failure to avoid hammering the API while it recovers.