---
title: "Get Access By Refresh"
method: POST
path: "/v1/users/auth/login/refresh"
tags: ["Users"]
---

# Get Access By Refresh

`POST /v1/users/auth/login/refresh`

## Request

- Base URL: `https://api.fettle.sh` (the document declares no server; this is the origin it was published from)
- URL: `https://api.fettle.sh/v1/users/auth/login/refresh`
- Auth: API key in header `Authorization`

Refresh the access token using a valid refresh token.

Reads the refresh token from the httpOnly cookie (or, as a fallback,
the `Authorization` header), rotates the refresh token, and returns
the new access token. The rotated refresh token replaces the cookie.

## Response `200`

Successful Response

- AccessTokenResponseModel: Response body for login and refresh — refresh token lives in httpOnly cookie.
  - `access_token` string, required

---

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