News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
Actin - Prod Refresh token issue
Tags: authorization
May 18, 2021 at 7:33am   •   3 replies  •  0 likes
Guy Clifton

Looks like both auth token and refresh token has expired. Please suggest how to get new token.

Application name is ‘Actin’ and client_id is ‘LKszrWSjS26fhbXY7xB9Kw’

3 Answers
answered on May 18, 2021 at 11:59am  

this is response i am getting using refresh token through postman.

"error": "invalid_grant",
"errors": [
"errorCode": "OAU-212",
"message": "Token type mismatch"
"error_description": "Token type mismatch"

on May 18, 2021 at 1:42pm   •  0 likes

There must be something incorrect in the way you authenticate or using the code to exchange for tokens. What endpoint you use in Postman to get the token? What language is your app actually written in?

on May 18, 2021 at 7:17pm   •  0 likes

Language is C# dot net.



on May 18, 2021 at 8:40pm   •  0 likes

Why you called the "/oauth/token" endpoint with those params? That is for getting a new access token using a refresh token.

In this case, you are logging in and you just get the code. You have to use the code to exchange for tokens.

- The grant_type must be set to "authorization_code"

- The code must be set with the code value you get in the call back

See this reference for more explanation.

on May 19, 2021 at 9:04am   •  0 likes

I did that but it says account does not exist.

this is the account number 18478076161

client id : LKszrWSjS26fhbXY7xB9Kw


on May 19, 2021 at 9:29am   •  0 likes

Again, it must be messed up somewhere.

You said you are using C# .NET, why you show me Postman. What is the reason of mixing the authorization process?

on May 19, 2021 at 10:17am   •  0 likes

Shared postman here for an example. there is no mixing of process happening. after getting code. application is making call to below method of ring central client and throwing exception.

using RingCentral.Client.2.3.4\lib\RingCentral.dll 
public Task<TokenInfo> Authorize(string authCode, string redirectUri);

this is client object:

this is token object:


this is the exception message contain request body and post url

POST failed. An error occurred while sending the request.
Request body:

on May 19, 2021 at 11:11am   •  0 likes

It looks like you are using the very old .NET SDK. Can you check and update using the latest SDK version 5.x.x?

on May 19, 2021 at 11:56am   •  0 likes

I can't do it right away. we are not even on RingCentral.Net we are on RingCentral.Client and latest stable version of that is 3.0.0.

on May 19, 2021 at 12:25pm   •  0 likes

Response is coming null in application.


so can you please check why its saying "Account does not exist" from postman. I can share Authorization header information separately by which ever means. I think issue is with using account credentials but how its validating those credentials.

on May 19, 2021 at 1:50pm   •  0 likes

can you please check what error is getting logged at your end with this call. we can go from there at least for now.

on May 19, 2021 at 10:20pm   •  0 likes

Issue is fixed. thanks

on May 19, 2021 at 12:18pm   •  0 likes

The RingCentral.Client is very old and there is no update to that package for years. Once you have time to port, please port your code to use the latest .NET

answered on May 18, 2021 at 8:32am  

When both access token and refresh token expire, you have to re-authenticate (login) and that is all you need to do. It is the same as after you logout, then you re-login.


A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

Developer Platform
Integrated Apps
App Gallery
Developer support
Games and rewards

Resource center
Product Releases
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us