Rate limiter#
The system is aimed to prevent incorrect use of the API. Requests made with frequency higher than indicated in the table will be rejected with error 429. The values apply to each instance.
Example
You can execute 500 requests in total without getting error 429 for 10 instances, each of which executes 50 SendMessage method requests.
If you execute 51 SendMessage method requests on one of the instances, the 51st request will be rejected with error 429. At the same time, all the rest instances will continue to execute requests without getting the error.
Allowed number of requests#
Method | Requests per second |
---|---|
getSettings | 1 |
setSettings | 1 |
getStateInstance | 1 |
reboot | 1 |
getWaSettings | 1 |
receiveNotification | 100 |
deleteNotification | 100 |
getChatHistory | 1 |
getMessage | 10 |
lastIncomingMessages | 1 |
lastOutgoingMessages | 1 |
sendMessage | 50 |
clearMessagesQueue | 1 |
showMessagesQueue | 1 |
sendTemplate | 50 |