How do I refresh API token with refresh token?

I couldn’t find this in API doc, when I create a token(morphapi), it also creates refresh token.

I would like to refresh API token to extend the expiration date.

Thanks

Hi Dong_park,

Please find the below doc

you can generate a new token using the existing refresh token.

This endpoint also allows refreshing your current access token to get a new token. This is done by passing your current refresh_token . This provides a way to renew your client’s session with the API, and extend the expiration date.

Example:-

curl --request POST \
     --url 'https://<appliance url>/oauth/token?client_id=morph-api&grant_type=refresh_token&scope=write' \
     --header 'accept: application/json' \
     --header 'content-type: application/x-www-form-urlencoded' \
     --data refresh_token=5bcbbf2c-29d6-4c4d-8f51-42e48242ef54

Thanks
Velan