y-okano | 2019-03-20 01:49:54 UTC | #1
Hi team,
I want to develop custom application on 3rd party CRM enabling outbound call and I'm thinking now I need to execute these two Platform APIs.
(1)https://developer.mypurecloud.com/api/rest/v2/users/ GET /api/v2/users inin-ratelimit-allowed = 180
(2)https://developer.mypurecloud.com/api/rest/v2/conversations/ POST /api/v2/conversations/calls inin-ratelimit-allowed = 300
This page refers on rate limit but I could not understand inin-ratelimit-count would be calculated every each PurCloud APIs or totally accumulated all executed PureCloud APIs that means (1) + (2). https://developer.mypurecloud.com/api/rest/rate_limits.html
I confirmed as below.
I executed PureCloud API (1) 180 times within 60 seconds then I got 429 error. That is because API (1) had gotten inin-ratelimit-count = 180. After that I executed API (2) few times right away then that got inin-ratelimit-count = 187. When PurCloud Platform checks rate limit does it check whole PureCloud APIs executed by custom applications using every each OAuth client?
Thanks,
y-okano
tim.smith | 2019-03-20 13:22:07 UTC | #2
From https://developer.mypurecloud.com/api/rest/rate_limits.html
PureCloud uses hundreds of micro services to fulfill to API requests. Each service has general protection in the form of rate limits. Each service may impose limits per access token, per user, per application, or per organization based on the individual service's needs.
Please note that per that page, the inin-ratelimit-* headers are deprecated. Your application should focus on making use of the retry-after header.
system | 2019-04-20 13:22:07 UTC | #3
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 4825