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
Get Refresh Token
Tags: get token
Jan 4, 2022 at 4:50am   •   1 replies  •  0 likes
Kiran Sutar

How can we get access token using refresh token. is it possible. Can you please guide me for this ?

I want to implement that on server side in node typescript and what header , body required for this ?

Please help me out.

Thank You In Advance.

1 Answer
answered on Jan 4, 2022 at 9:29am  

Are you sure about what you asked? People uses a refresh token to get a new access token. You want the other way around and it is not possible.

on Jan 4, 2022 at 10:25am   •  0 likes

Hey @Phong Vu My bad. How can I get access token using refresh token using client ID and client secrete. or any other all possible way. Can you please suggest/share with me.


on Jan 4, 2022 at 10:39am   •  1 likes
var endpoint = '/restapi/oauth/token'
var url = ''
var basic = [RC_CLIENT_ID] + ":" + [RC_CLIENT_SECRET]
var headers = {
       'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
       'Accept': 'application/json',
       'Authorization': 'Basic ' + Buffer.from(basic).toString('base64')
var body = querystring.stringify({
             'grant_type' : 'refresh_token',
             'refresh_token' : 'REFRESH_TOKEN'
var options = {host: url, path: endpoint, method: 'POST', headers: headers}

// Make an HTTPS POST request with the params above
on Jan 4, 2022 at 8:30pm   •  0 likes

@Phong Vu Thank You for solution

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