---
title: "Refresh the access token"
method: POST
path: "/api/auth/refresh-token"
tags: ["Auth"]
---

# Refresh the access token

`POST /api/auth/refresh-token`

Generates a new access token using a valid refresh token.

## Request body

- RefreshTokenRequest — Represents the request for the "/refresh-token" endpoint
  - `refreshToken` string, required — The refresh token used to obtain a new access token.

## Response `200`

Access token successfully refreshed.

- RefreshTokenResponse — Represents the response for the "/refresh-token" endpoint
  - `accessToken` string — Access token returned upon success
  - `refreshToken` string — Refresh token returned upon success

## Other responses

- `400` — Invalid or expired refresh token.

## Changes

- **2025-03-24** `fbc3fe6ecbf1` — 5 warning, 4 info
  - removed the optional property `detail` from the response with the `400` status
  - removed the optional property `instance` from the response with the `400` status
  - removed the optional property `status` from the response with the `400` status
  - removed the optional property `title` from the response with the `400` status
  - …5 more

[Change history](https://skmtc.dev/endatix/apis/endatix-platform-rest-api/changes/api/auth/refresh-token/post.md)

---

[API](https://skmtc.dev/endatix/apis/endatix-platform-rest-api.md) · [All operations](https://skmtc.dev/endatix/apis/endatix-platform-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/endatix/endatix-platform-rest-api/revisions/a0bda80cd84a/schema)
