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

# Refresh access token

`POST /auth/refresh`

## Request

- Base URL: `https://api.production.yourmedley.com`
- URL: `https://api.production.yourmedley.com/auth/refresh`
- Auth: none declared

Get a new access token using a valid refresh token

## Request body

- object
  - `refreshToken` string, required

## Response `200`

Token refreshed successfully

- object
  - `success` boolean
  - `data` AuthTokens
    - `accessToken` string
    - `refreshToken` string
    - `expiresIn` number

## Other responses

- `401`: Invalid or expired refresh token

---

[API](https://skmtc.dev/withmedley/apis/medley-api.md) - [All operations](https://skmtc.dev/withmedley/apis/medley-api/llms.txt) - [OpenAPI document](https://skmtc.dev/withmedley/apis/medley-api/revisions/40aaac5ca6bd?raw)
