TOKEN REFRESH and Expired after a month

Hi,

How can I make the token permanent?
After a month setting it up, We notice that it responded a Token Expired.

Thank you

Hi @SCOTTG!

We don’t have that available unfortunately, tokens need to be refreshed once a month. You can use the refresh token to get a new one after it expires.

To refresh a token, the cURL request should be like this one:

curl -X POST -H "Content-Type: application/json" -d 
'{ "refresh_token": "YOUR REFRESH TOKEN" }' 
"https://public-api.shiphero.com/auth/refresh"

Let me know if this doesn’t help.
Thanks in advance!
Tom