Stop at the 429, wait the Retry-After interval the API returns, then retry with exponential backoff and jitter.
API rate limit retry: the short answer for a 429
When a customer data sync hits a rate limit, the API responds with a 429 Too Many Requests status code, as documented in Rate limits | Zendesk Developer Docs. Your code must handle these 429 errors and wait the Retry-After interval before retrying requests, according to Zendesk Developer Docs. This pause is the first step in recovering the feed without triggering further limits.
Key takeaways for how do i retry a rate-limited api request when a customer data sync returns a 429 error?
- Stop at the 429 status code, which signals that the rate limit is exceeded according to Zendesk Developer Docs.
- Wait the Retry-After interval before retrying requests, as instructed by Zendesk Developer Docs.
- Use the returned wait value, never a hard-coded minute, because Retry-After is often less than 60 seconds according to Asana Developers.
- For Notion, the Retry-After value is the time until the window resets, so it is at most 60 seconds according to Notion Developers.
- If another 429 or 529 arrives, increase the delay with exponential backoff and jitter according to Notion Developers.
- Retry 429 and 529 responses, except a 429 with public_api_request_blocked according to Notion Developers.
- Proactive pacing is smoother and avoids the "rejected requests still count" penalty entirely according to Asana Developers.
Step 1: read the 429 and its Retry-After header
When a customer data sync hits a rate limit, the API returns a 429 Too Many Requests status code, according to Zendesk Developer Docs. This specific status code signals that the request volume has exceeded the allowed threshold for that endpoint. Check the error type before you treat a 429 as retryable, because Notion excludes a 429 with public_api_request_blocked from retries. The response contains the standard Retry-After header, which tells the client how long to wait before attempting the request again. Asana’s documentation notes that requests hitting rate limits receive a 429 response containing this header, indicating the number of seconds the client should wait, according to Asana Developers.
Reading this header correctly is the first step in recovering the feed. Zendesk advises ensuring your code handles 429 errors and waits the Retry-After interval before retrying requests, according to Zendesk Developer Docs. Do not ignore the header value or assume a fixed pause time. Treat the header as the wait the server requires before you retry; for Notion, that value is the time until the window resets. If your code ignores this value and retries immediately, you will likely trigger another 429 error, extending the downtime for your health score data pull.
The Retry-After header is a standard mechanism for managing client behavior under load. It allows the API provider to communicate the necessary delay directly to the client. By reading this value, you align your retry logic with the server’s actual capacity constraints. This approach prevents your sync job from competing with other clients for the same limited resources. It also reduces the risk of being flagged for excessive request patterns.
Steps 2-3: wait the stated time, then back off with jitter
Do not hard-code a one-minute pause for every tool. The wait time varies by vendor and by the specific quota evaluation window. Asana Developers notes that because the quota is evaluated more frequently than once a minute, the Retry-After header is often less than 60 seconds, so you must always use the value returned rather than a hard-coded minute ( Asana Developers). For Notion, the documentation specifies that when a request exceeds the limit, the Retry-After value represents the time until the window resets, making it at most 60 seconds ( Notion Developers). In practice, you should wait for this Retry-After value, which is usually under 10 seconds according to Notion Developers ( Notion Developers).
If your initial retry also returns a 429 or 529 error, increase the delay using exponential backoff and jitter. Notion Developers explicitly recommends this approach when another 429 or 529 arrives ( Notion Developers). Google for Developers defines exponential backoff as a standard error handling strategy for network applications ( Google for Developers). By combining the returned wait time with this standard strategy, your sync job avoids hammering the API during the exact moment the quota is exhausted.
Action step:
1.
Parse the header:
Extract the integer value from the
Retry-After
header in the 429 response.
2.
Sleep for that value:
Pause your script for exactly that many seconds.
3.
Add jitter on repeat:
If Notion returns another 429 or 529 (except a 429 with public_api_request_blocked), lengthen the delay exponentially and add random jitter so concurrent retries spread out.
Steps 4-6: cap the backoff, pace requests and skip blocked retries
When your sync loop hits the ceiling of its wait time, you need a rule for what happens next. According to Google for Developers, the client can continue retrying after it has reached the maximum_backoff time. However, the strategy for the wait time changes once you hit that ceiling. According to Google for Developers, retries after this point don't need to continue increasing backoff time. Hold the wait at its maximum value rather than letting it grow indefinitely.
Before you rely on retry logic, consider adjusting how you send requests. According to Asana Developers, reacting to 429s works, but proactive pacing is smoother and avoids the "rejected requests still count" penalty entirely. If your script fires a burst of requests to pull account data, you may hit the limit even if your total volume is low. According to Asana Developers, if you're getting 429s while your request volume over a minute is low, you're firing too many requests at once. Spread your requests across the minute to reduce the chance of triggering a 429 in the first place.
Not every 429 error is worth retrying. You must check the error type before deciding to wait and try again. According to Notion Developers, retry 429 and 529 responses, except a 429 with public_api_request_blocked. If your sync receives a 429 with the public_api_request_blocked error, retrying will not help. Stop the retry loop for that specific request and investigate the block.
Check your sync logs for any 429 errors with the public_api_request_blocked type. If you find them, stop retrying those requests and look for the underlying cause.
Retry reference table by publisher
The table below maps the documented retry behavior for each publisher. Each row lists the specific Retry-After mechanics and the retry rule that publisher documents.
| Publisher | Retry-After behavior | Retry rule |
|---|---|---|
| Zendesk Developer Docs | The API responds with a 429 Too Many Requests status code when the rate limit is exceeded, according to Zendesk Developer Docs. | Ensure your code handles 429 errors and waits the Retry-After interval before retrying requests, according to Zendesk Developer Docs. |
| Asana Developers | Requests that hit rate limits receive a 429 Too Many Requests response containing the standard Retry-After header indicating how many seconds the client should wait before retrying, according to Asana Developers. | Because the quota is evaluated more frequently than once a minute, Retry-After is often less than 60 seconds, so always use the value returned, never a hard-coded minute, according to Asana Developers. |
| Notion Developers | When a request exceeds the limit, the Retry-After value is the time until the window resets, so it is at most 60 seconds, according to Notion Developers. | Wait for Retry-After, which is usually under 10 seconds, according to Notion Developers. |
| Notion Developers | If another 429 or 529 arrives, increase the delay with exponential backoff and jitter, according to Notion Developers. | Retry 429 and 529 responses, except a 429 with public_api_request_blocked, according to Notion Developers. |
| Google for Developers | Exponential backoff is a standard error handling strategy for network applications, according to Google for Developers. | The client can continue retrying after it has reached the maximum_backoff time, and retries after this point don't need to continue increasing backoff time, according to Google for Developers. |
| Asana Developers | Reacting to 429s works, but proactive pacing is smoother and avoids the "rejected requests still count" penalty entirely, according to Asana Developers. | If you're getting 429s while your request volume over a minute is low, you're firing too many requests at once, according to Asana Developers. |
| Notion Developers | The Retry-After value is the time until the window resets, so it is at most 60 seconds, according to Notion Developers. | If another 429 or 529 arrives, increase the delay with exponential backoff and jitter, according to Notion Developers. |
Check your sync configuration against the row for each tool you use to confirm your retry logic matches the documented behavior.
What to keep on file for each data feed
Log the recovery details for every tool that feeds your health score so you can verify the retry logic later. When the remaining count reaches zero, wait for the number of seconds indicated by the variable t before retrying, according to monday.com Developers. Record the specific wait time applied during that pause in your sync log. This entry confirms whether the system respected the returned value rather than using a fixed pause.
Create a log to track the last rate limit event for each data feed. Fill in the date of the last 429 error, the specific Retry-After value used, the backoff steps taken, and whether the request was blocked. This record helps you audit whether the retry steps followed the documented behavior for each publisher.
Review this log when a feed stops updating. Check if the recorded wait time matches the value returned by the API. If the log shows a fixed pause instead of the returned variable, update the sync configuration to use the dynamic value. This check ensures the feed recovers correctly after a rate limit event.
Related guides
FAQ: retrying 429 errors in customer data syncs
How does an api rate limit retry work after a 429 response?
Stop the request when the API returns a 429 status, then wait the interval specified in the Retry-After header before attempting the request again. For Notion, if another 429 or 529 arrives, increase the delay using exponential backoff and jitter, but do not retry a 429 with public_api_request_blocked. This process treats the error as a standard network handling strategy rather than a permanent failure, allowing the client to recover once the rate limit window resets.
How long should I wait after a 429 response?
Use the specific value returned in the Retry-After header rather than a hard-coded pause. Asana notes that because quotas are evaluated frequently, this value is often less than 60 seconds, so you should always use the returned value Asana Developers. Notion specifies that its Retry-After value represents the time until the window resets, which is at most 60 seconds and usually under 10 seconds Notion Developers.
Does every tool send the Retry-After header the same way?
No, the documentation for each tool describes its own specific behavior for rate limits. Zendesk states that the API responds with a 429 Too Many Requests status when the limit is exceeded and advises waiting the Retry-After interval Zendesk Developer Docs. Asana and Notion provide distinct details about how their specific windows reset and the typical length of the wait, meaning you cannot assume one publisher's rule applies to all firms Asana Developers.
Can I keep retrying after I reach the maximum backoff time?
Yes, the client can continue retrying after it has reached the maximum_backoff time according to Google for Developers. Once this maximum is reached, retries after that point do not need to continue increasing the backoff time Google for Developers. This allows the sync process to persist without indefinitely growing the wait duration between attempts.
Should I retry every 429 that Notion returns?
No, Notion advises retrying 429 and 529 responses except for a 429 with public_api_request_blocked Notion Developers. If you encounter this specific blocked status, retrying will not resolve the issue, so you should skip the retry for that particular error. Check your sync logs to identify if a 429 includes this blocked flag before applying your standard backoff logic.
Sources
Limits of this post
This post is general operational information, not legal advice about notice periods or renewal clauses. It does not promise that any method keeps a customer. Software can get a fact wrong, so open the sources before you act.