---
title: "Rotate the refresh token for a new access token (GoTrue's own rotation)"
method: POST
path: "/auth/refresh"
tags: ["Auth"]
---

# Rotate the refresh token for a new access token (GoTrue's own rotation)

`POST /auth/refresh`

## Request

- Base URL: `https://whatareyoudo.ing/api/v1`
- URL: `https://whatareyoudo.ing/api/v1/auth/refresh`
- Auth: none declared

## Request body

- RefreshRequest
  - `refreshToken` string, required

## Response `200`

OK

- object
  - `data` object, required
    - `accessToken` string, required
    - `expiresIn` integer, required
    - `refreshToken` string, required
  - `meta` object, required
    - `requestId` string, required

## Other responses

- `401`: Refresh failed

---

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