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

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.

https://api.qualtrics.com/guides/docs/Instructions/oauth-authentication.md#expired-token-server-response


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.


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.