---
title: "POST /v1/auth/refresh — exchange a refresh token for a new token pair."
method: POST
path: "/v1/auth/refresh"
tags: ["auth"]
---

# POST /v1/auth/refresh — exchange a refresh token for a new token pair.

`POST /v1/auth/refresh`

## Request body

- RefreshRequest — POST /v1/auth/refresh
  - `refresh_token` string, required

## Response `200`

Tokens refreshed

- AuthResponse — Successful auth response (login, register, refresh).
  - `access_token` string, required
  - `expires_in` integer, required — Access token TTL in seconds.
  - `refresh_token` string, required

## Other responses

- `401` — Invalid or expired refresh token

---

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