question

jonathan-lloyd11647 avatar image
jonathan-lloyd11647 asked Anirban answered

Rate limit impact on access and refresh tokens?

Hello,


We occasionally see 429 responses due to our batching of status checks against the RC REST API. If we receive a 429, but then continue to hit the endpoint, does RC eventually invalidate the access and refresh tokens? We are running into a problem where we cannot seem to get a new refresh token because the old one is invalid even though it appears it should be valid.


Thanks.

rate limits
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

anton-nikitin avatar image
anton-nikitin answered
Jonathan, see  https://developer.ringcentral.com/api-docs/latest/index.html#!#APIRateLimits.html

The fact that you are getting 429 does not cause token invalidation. There are multiple possible reasons why refresh tokens may become invalid:
* Previously completed refreshment transaction (old tokens become invalid)
* End user password change
* Direct revocation via API
* Session invalidation by end-user via Service Web portal
* Expiration
* Reaching the limit of simultaneously active sessions.

Hope it helps. If you provide some reference to your account (client_id or RC account ID or organization name) I can take a look in our logs about your particular case.

1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Anirban avatar image
Anirban answered

One more reason the token can get invalidate is if someone calling https://platform.devtest.ringcentral.com/restapi/oauth/revoke API and passing the active token to revoke. This will also make a toke invalid

1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys