Refresh OAuth2 access_token and retry REST API when token expires

Hi, I have to get a new OAUTH2 access token every 30 mins and retry calls to a REST api endpoint with new access_token, every time it expires. Any pointers or examples that are out there for this?

Thanks,
JGP

Hi @josephgp -

Here’s a workflow on the Hub that demonstrates obtaining OAuth credentials for both Salesforce and SugarCRM, using a combination of POST Requests and Get Requests. Maybe it will help you get started?

1 Like

Hi Scott, thanks for that. I’ve done something similar, but wanted to know best practice approaches for retrying these REST requests after getting an HTTP 401 for token expiration (and after calling the Oauth2 credential server endpoint to get a fresh access token). Thanks.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.