POST
/
api
/
refresh
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

The body is of type object.

Response

200
application/json
Authentication tokens refreshed successfully

The response is of type object.