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

# Refresh access token

`POST /auth/refresh`

## Request

- Base URL: `http://localhost:3001`
- URL: `http://localhost:3001/auth/refresh`
- Auth: HTTP bearer

Refresh the access token using a valid refresh token

## Request body

- RefreshTokenDto
  - `refreshToken` string, required: Refresh token issued by Supabase

## Response `200`

Token refresh successful

- object
  - `data` AuthTokensResponseDto
    - `accessToken` string, required
    - `refreshToken` string, required
  - `success` boolean
  - `message` string

## Other responses

- `400`: Bad Request - Invalid input or validation failed
- `401`: Unauthorized - Authentication required or invalid token
- `403`: Forbidden - Insufficient permissions to access this resource
- `404`: Not Found - The requested resource does not exist
- `500`: Internal Server Error - An unexpected error occurred

---

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