© 1999-2024 RingCentral, Inc. All rights reserved.
Privacy Notice
Answer
Request rate exceeded when sending sms
Please find the error response below:
HTTP Response
=============
status code: 429
server: nginx
Date: Wed, 27 Apr 2022 17:17:34 GMT
Content-Type: application/json;charset=utf-8
Content-Length: 161
Connection: keep-alive
RCRequestId: edfe64b6-c64d-11ec-995d-0050568d1600
RoutingKey: IAD01P18PAS04
Retry-After: 2
Content-Language: en-US
X-Rate-Limit-Group: sms
X-Rate-Limit-Limit: 60
X-Rate-Limit-Remaining: 53
X-Rate-Limit-Window: 60
{
"errorCode" : "MSG-305",
"message" : "Request rate exceeded",
"errors" : [ {
"errorCode" : "MSG-305",
"message" : "Request rate exceeded"
} ]
}
HTTP Request
============
HTTP POST https://platform.ringcentral.com/restapi/v1.0/account/~/extension/~/sms
Can you please help us in finding the root cause?
Best answer by PhongVu
Since the /sms endpoint rate limit group is Medium, meaning 40 API calls (40 messages) per 60 seconds. You should call the endpoint following the Medium rate limit. The best approach is to send a message every 1.5 secs (DO NOT calling as fast as possible then wait for the next window)
Please read [this article][1] and use the 2 option (Call and wait based on the average rate limit)
The header returns a special sms group which may not be applied to your app and we are investigate this.
[1]: https://medium.com/ringcentral-developers/ringcentral-api-rate-limit-explained-2280fe53cb16
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.