Refreshing an access token

All access tokens are valid for a period of two hours. After this period has expired, you will need to request a new access token with a POST request, providing the refresh token that came with the first access token.

curl -X POST 'https://api.factorialhr.com/oauth/token' -d 'client_id=<YOUR_CLIENT_ID>&client_secret=<YOUR_CLIENT_SECRET>&refresh_token=<REFRESH_TOKEN>&grant_type=refresh_token'

What’s Next