---
title: "POST /api/refresh"
method: POST
path: "/api/refresh"
---

# POST /api/refresh

`POST /api/refresh`

## Request

- Base URL: `https://forecaster.cairhealth.com`
- URL: `https://forecaster.cairhealth.com/api/refresh`
- Auth: none required

Refreshes an expired access token using a valid refresh token.

## Request body

- object
  - `refreshToken` string, required: Latest refresh token

## Response `200`

Authentication tokens refreshed successfully

- object
  - `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

## Other responses

- `401`: Invalid or expired refresh token

## Changes

- **2026-11-03** `b32380ccde9a`: 1 info
  - added the optional property `error` to the response with the `401` status

[Operation history](https://skmtc.dev/cairhealth/apis/cair-health-apis/changes/api/refresh/post.md)

---

[API](https://skmtc.dev/cairhealth/apis/cair-health-apis.md) - [All operations](https://skmtc.dev/cairhealth/apis/cair-health-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/cairhealth/apis/cair-health-apis/revisions/b32380ccde9a?raw)
