---
title: "Refresh token"
method: POST
path: "/api/v1/auth/refresh"
tags: ["Authentication"]
---

# Refresh token

`POST /api/v1/auth/refresh`

## Request

- Base URL: `http://localhost:8080`
- URL: `http://localhost:8080/api/v1/auth/refresh`
- Auth: HTTP bearer

Exchanges a valid refresh token for new access and refresh tokens

## Cookies

- `refresh_token` string

## Request body

- RefreshTokenRequest
  - `refreshToken` string, required

## Response `200`

Tokens refreshed successfully

## Other responses

- `401`: Invalid or expired refresh token

---

[API](https://skmtc.dev/railhook/apis/railhook-api.md) · [All operations](https://skmtc.dev/railhook/apis/railhook-api/llms.txt) · [OpenAPI document](https://skmtc.dev/railhook/apis/railhook-api/revisions/4e2c76dfc33d?raw)
