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

# Refresh

`POST /auth/refresh`

## Request

- Base URL: `https://api.getathly.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.getathly.com/auth/refresh`
- Auth: none declared

Refresh an access token using a refresh token.

## Request body

- RefreshRequest
  - `refresh_token` string, required

## Response `200`

Successful Response

- SessionResponse
  - `access_token` string, required
  - `refresh_token` string, required
  - `expires_at` integer, required
  - `user_id` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/getathly/apis/athly-api.md) - [All operations](https://skmtc.dev/getathly/apis/athly-api/llms.txt) - [OpenAPI document](https://skmtc.dev/getathly/apis/athly-api/revisions/6adfdc258d75?raw)
