Dear Community,
We have recently released support for the OAuth refresh token grant type for more robust and flexible API authentication. We are thrilled to have you start trying this feature and hear your thoughts.
Please share your feedback with us here in the comments below to help us improve this feature! We will be moderating this thread to respond when needed. We appreciate you taking the time to share your insights.




The refresh token flow gives a way to both have tokens expire (more secure) and not cause disruptions to users by asking them to re-authorize the OAuth app when the token does expire (better user experience). Since
/api/v2/oauth/tokensis an API only endpoint, there is no user authorization performed and it isn't necessary to use the refresh token flow for these tokens. When one of these tokens expire you can simply do the same POST request tohttps://{subdomain}.zendesk.com/api/v2/oauth/tokens.jsonto get a new access token or preemptively monitor the expiry of the token and create a new token to rotate in before it actually expires. That said, any token with an associatedrefresh_tokencan use the refresh token grant detailed in articles here and here.