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

# Refresh Access Token

`POST /auth/refresh`

## Request

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

Refresh expired access token using refresh token.

Args:
    refresh_token: Valid refresh token

Returns:
    New access token and refresh token

Rate limited to 20 requests per minute.

## Query parameters

- `refresh_token` string, required

## Response `200`

Successful Response

- TokenResponse: Response model for token generation.
  - `access_token` string, required
  - `refresh_token` string, nullable
  - `token_type` string
  - `expires_in` integer, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/codeofpaper/apis/code-of-paper-dev-api.md) · [All operations](https://skmtc.dev/codeofpaper/apis/code-of-paper-dev-api/llms.txt) · [OpenAPI document](https://skmtc.dev/codeofpaper/apis/code-of-paper-dev-api/revisions/94ea47fd4aa1?raw)
