Skip to main content
mandeeeps
New Member
Jun 23, 2025 6:42 AM UTC
Question

429 Status code with message "Too many Request"

Hi all, 
I am calling the API of local users, license , interfaces etc . Getting response status - 429 with message "Too many requests" . 
How can it solve this.

3 replies

atakannatak
Explorer
Jun 23, 2025 10:09 AM UTC

Hi @mandeeeps ,

 

FortiGate’s REST API returns HTTP 429 “Too Many Requests” when a client exceeds the firewall’s built-in rate-limit. Typical default caps are ~100 GET/monitor calls per second and ~30 configuration writes per second. When you hit the limit the appliance blocks further queries from that source IP for a short sliding window and answers with like your mentioned.

 

https://community.fortinet.com/t5/FortiGate/Technical-Tip-Ansible-too-many-attempts/ta-p/344330

 

https://community.fortinet.com/t5/FortiGate/Technical-Tip-Administrative-lockout-durations-for-FortiGate-API/ta-p/362817

 

https://docs.fortinet.com/document/fortigate/6.2.7/cookbook/631730/setting-the-administrator-password-retries-and-lockout-time

 

The limits are fixed in FortiOS and cannot be raised, so the remedies are to:

 

  • Throttle your script (sleep/back-off or cut request bursts).
  • Batch queries (ask once for the whole table instead of per-object loops).
  • Reuse one session/API key instead of many parallel logins.
  • Stagger multiple monitoring systems so their polls do not collide.

BR.

 

If my answer provided a solution for you, please mark the reply as solved it so that others can get it easily while searching for similar scenarios.

 

CCIE #68781

 

Translate
mandeeeps
mandeeepsAuthor
New Member
Jun 26, 2025 7:34 AM UTC

Thank you @atakannatak , i tried with added time sleep, generated new api key with new resource ip but still getting the same 429 status code with message “Too Many Requests”.
Could you help on this what need to be do next.


- mandeeeps

Translate
dpeterson
New Member
Mar 25, 2026 7:21 PM UTC

Also having this issue, did you ever get a response to this @mandeeeps 

Translate
Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024