Get Started
Best practices
Introduction
When using a solution that depends on an external API, it is essential to understand how it works to ensure optimized performance. This includes knowing its limitations and characteristics to avoid errors and make the most of the resources provided by the API.
Rate Limit
Currently, the API supports receiving:
- 650 requests per second: The maximum allowed limit is 650 requests per second. If this limit is exceeded, errors or temporary blocks may occur.
- 500 messages per payload: Each request can contain a payload of up to 500 messages. It is crucial to respect this limit to avoid data sending failures.
Error Handling
During the use of the API, unexpected errors may occur. Therefore, it is essential to carefully analyze the error messages returned.
The application has mappings for specific error codes, such as 308 and 429. These errors indicate an excessive volume of requests. To mitigate this issue, it is recommended that the script identifies these errors and implements an interval of approximately 5 seconds before resuming the sending of requests.