POST
/
api
/
refresh
cURL
curl --request POST \
  --url https://forecaster.cairhealth.com/api/refresh \
  --header 'Content-Type: application/json' \
  --data '{
  "refreshToken": "xxxxxxxxxxxxx.xxxxxxxx"
}'
{
  "accessToken": "xxxxxxxxxxxxx.xxxxxxxx",
  "refreshToken": "xxxxxxxxxxxxx.xxxxxxxx",
  "expiresAt": "2025-03-24T18:38:47.781Z",
  "refreshTokenExpiresAt": "2025-03-25T18:28:47.781Z"
}
This endpoint as well as /api/token will be used in tandem to provide authentication to all of our public endpoints.

Body

application/json

Refresh token for generating new access token

refreshToken
string
required

Latest refresh token

Response

Authentication tokens refreshed successfully

accessToken
string

Access token to use in your API request

refreshToken
string

Refresh token to refresh your access token

expiresAt
string<date-time>

Date and timestamp at which the access token will expire

refreshTokenExpiresAt
string<date-time>

Date and timestamp at which the refresh token will expire