How to refresh the OAuth token? | XM Community
Skip to main content
Solved

How to refresh the OAuth token?

  • November 30, 2020
  • 3 replies
  • 1003 views

Forum|alt.badge.img

Hi! I'm following this guide on implementing OAuth2: https://api.qualtrics.com/instructions/docs/Instructions/Quick%20Start/getting-more-secure-with-oauth.md
Everything is fine so far, but the docs do not mention how to refresh the token after expiry - what is the endpoint to call and what are the parameters? Usually I'd expect a call to

oauth/token?refresh_token=...&grant_type=refresh
but it's not mentioned anywhere.

Best answer by LukaszK

Answering my own question, as we have figured this out on our own:

You need to

POST
to
/oauth2/token
endpoint with the following parameters:

query-params: { grant_type: "refresh_token", refresh_token: "THE TOKEN" }
and use the client ID and client secret as basic authentication info.

3 replies

Forum|alt.badge.img+4

Forum|alt.badge.img
  • Author
  • 1 reply
  • Answer
  • December 4, 2020

Answering my own question, as we have figured this out on our own:

You need to

POST
to
/oauth2/token
endpoint with the following parameters:

query-params: { grant_type: "refresh_token", refresh_token: "THE TOKEN" }
and use the client ID and client secret as basic authentication info.


Forum|alt.badge.img+7
  • QPN Level 3 ●●●
  • 86 replies
  • September 22, 2025

Hi there! I am looking to use the refresh_token grant type. Can you explain how to get the refresh token using the grant_type parameter? See the way I am attempting to test this within a web service task below.

 

 

I am trying to setup OAuth authentication within a Workday outbound file connector and cannot figure out how to get the required refresh token parameter. Workday documentation is shown below. The client_credentials grant type is not supported so I’m not sure if the feature will work with Qualtrics.