I have created an app in developer tools and performing step1 to get the authorization code on callback url step1: https://app.smartsheet.com/b/authorize?response_type=code&client_id=vztdl8m9evf73v4fumz&scope=READ_SHEETS%20WRITE_SHEETS&state=MY_STATE
step1 will call redirect url and gives code which is used in step2 below
With the refresh_token from above I am getting refresh_token to access the smartsheet data. step3: https://api.smartsheet.com/2.0/token?client_id=vztdl8m9evf73v4fumz&client_secret=jstivmg6zwvffhhdlib&grant_type=refresh_token&refresh_token=qhetlorupehbdob3ujfjo7q0r3
But code generated in step1 expires in 599531.How to get new authorization code again? I want to automate all this process in Mule 4 with HTTP requests. Step2 and step3 I am clear. But I am unable to automate the step1. Calling this on postman is giving some html response