Since 22.0.0 REST module in the Bitrix24 cloud version, an additional
operating key has been added to all REST request responses in the time array with additional information about the request execution time. The key tells you about the execution time of the request to the method within the account. Data on the execution time of requests to the method is summarized. Then it is checked. If the time of all method request exceeds 480 seconds over the last 10 minutes, the method is blocked for 10 minutes.
Let's consider examples:
- The application 1 collects data on the leads using the crm.lead.list method. Each request is executed for 20 seconds. The application makes 2 requests per minute. In 10 minutes the execution time of the queries will be 400 seconds. The application does not exceed the limit, so it will work.
- The application 2 begins to select deals from the account using the crm.deal.list method. Each request is executed for 15 seconds. The application makes 2 requests per minute. In 10 minutes the execution time will be 300 seconds, but this is a different method, so the execution time does not add up and the application continues to work.
- The application 3 begins to select leads using the crm.lead.list method simultaneously with the application 1. It spends the same 20 seconds per query. The first and third applications use the same method, so when the query time exceeds 480 seconds, they will get a 429 error when calling the method.