07-20-2025 05:25 AM - edited 07-20-2025 05:26 AM
Hello
We are using the Duo Admin API to automate user lifecycle management primarily adding & removing users in sync with our internal provisioning system. While our actual API calls are relatively infrequent (roughly 30–50 per hour); we have been facing rate limit errors (429 Too Many Requests) sporadically; even during off-peak hours.
We have reviewed the official rate limits and confirmed we are far below the documented threshold of 100 requests per minute. We also implemented exponential backoff with retries but the errors still occur unpredictably. This makes us wonder if background polling by another integration or stale API keys may be contributing to silent overuse. As I am exploring automation roles including understanding what is a Prompt Engineer? I find it essential to grasp how API behaviors like rate limits can silently disrupt downstream workflows.
Has anyone else experienced similar rate-limit issues despite seemingly low usage? Any tips for better visibility into API consumption per integration / ways to proactively audit key activity would be greatly appreciated.
Thank you !!
Thank you !!
07-20-2025 06:18 AM
hello @gabrielladawn. I've seen similar Duo API rate limit issues even under low loads. Key findings from my deployments:
curl -H "Authorization: Basic $(echo -n '<ikey>:<skey>' | base64)" \
https://api.duosecurity.com/admin/v1/logs/administrator | grep -A 5 "rate_limit"
the other thing that i would do is: Proactive fixes, meaning Implement request pacing (max 2/sec even if under 100/min), then rotate keys monthly and audit orphans, and why not use dedicated keys per integration. Also i have to tell u man, that the most common fices I've implemented is adding 500ms delays between sequential calls, which resolved 90% of false 429s.
check these links G:
hope it helps G..
-Enes
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide