---
title: "Rotate refresh token and return new tokens"
method: POST
path: "/auth/refresh"
---

# Rotate refresh token and return new tokens

`POST /auth/refresh`

## Request body

- object
  - `refreshToken` string, required

## Response `200`

Rotated tokens

- SuccessEnvelope
  - `data` unknown, required
  - `meta` ResponseMeta, required
    - `requestId` string, required
    - `timestamp` string, date-time, required

## Other responses

- `400` — Problem details response
- `401` — Problem details response

## Changes

- **2026-02-28** `832c7fc616ed` — 4 warning, 1 info
  - removed the optional property `code` from the response with the `400` status
  - removed the optional property `code` from the response with the `401` status
  - removed the optional property `params` from the response with the `400` status
  - removed the optional property `params` from the response with the `401` status
  - …1 more

[Change history](https://skmtc.dev/cyklokoalicia/apis/opensourcebikeshare-api/changes/auth/refresh/post.md)

---

[API](https://skmtc.dev/cyklokoalicia/apis/opensourcebikeshare-api.md) · [All operations](https://skmtc.dev/cyklokoalicia/apis/opensourcebikeshare-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cyklokoalicia/opensourcebikeshare-api/revisions/8bb1bd05db6b/schema)
