Refresh Token Flow

Following process describes how to renew your application's access token if a refresh token is present.

Request

curl --request POST \
  --url 'https://auth.loomai.com/oauth/token' \
  --header 'content-type: application/x-www-form-urlencoded' \
  --data grant_type=refresh_token \
  --data client_id={CLIENT_ID} \
  --data refresh_token={REFRESH_TOKEN}

Response

{
  "access_token": "eyJz93a...k4laUWw",
  "token_type": "Bearer",
  "expiry": 3600
}

Last updated