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

# Refresh Token

`POST /auth/refresh`

Refresh a Temporary Access Token.

## Request body

- object
  - `refresh_token` string — JWT access token you want to refresh. This token can't be expired.
  - `mode` 'json' | 'cookie' | 'session' — Whether to submit and retrieve the refresh token in the JSON response, or in a httpOnly cookie.

## Response `200`

Successful request

- object
  - `data` object
    - `access_token` string
    - `expires` integer
    - `refresh_token` string

## Other responses

- `401` — Error: Unauthorized request

---

[API](https://skmtc.dev/utomic-media/apis/dynamic-api-specification.md) · [All operations](https://skmtc.dev/utomic-media/apis/dynamic-api-specification/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/utomic-media/dynamic-api-specification/revisions/4a0ccd34700e/schema)
