TooManyRequests error

Hello,

I implemented a Powershell code to get count of endpoints in each tenant using Sophos Central API. The code works one time per day.

Before each HTTP request to *.central.sophos.com my code waits a minute in order to avoid "TooManyRequests" error (the "Start-Sleep -s 60" Powershell command)

But I still receive the error, e.g:

{ "error": "TooManyRequests", "correlationId": "152830cb-7744-42ee-8105-3fde2dc84052", "requestId": "37df488f-5386-43e4-b777-efa2d89a3d9e" }

The error occurs only on "api-us03.central.sophos.com" host and does not occur on "api.central.sophos.com"

Please help me understand how to avoid this error?

Parents Reply Children