This question was posted over 2 years ago and was answered - but can anyone please inform me if the expiry of PagerDuty oauth tokens has been addressed? I’m trying to write an integration but don’t know if to try and support refresh tokens or not… the tokens themselves are set to expire in 12 months, but if the machinery to get the token via the refresh token isn’t implemented then this is really bad…


I’ve registered an app, and can quite happily generate an access token using the Auth Code Grant Flow. Alongside the access token, we get a refresh token returned - but there’s nothing (that I can find) in the developer documentation that tells us how to go about using the refresh token to generate a new access token. I’ve tried a post to the oauth/token endpoint, with a grant type of refresh_token and all other usual bits of information provided, but get a 401 returned with the following error:

The request is missing a required parameter, includes an unsupported parameter value, or is otherwise malformed.

Does anyone have an example of this working?