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

# Refresh access token

`POST /auth/refresh`

## Request

- Base URL: `https://api.volcano.dev`
- URL: `https://api.volcano.dev/auth/refresh`
- Auth: HTTP bearer

Get a new access token using a refresh token. Requires an anon key.

Send `refresh_token` in the body for the default flow. An eligible
cookie-mode browser request may instead send `session_mode: cookie`
with an empty token or omit the request body; the API reads and resets
the project's HttpOnly cookie and omits `refresh_token` from the
response.

## Headers

- `X-Volcano-Proxy-Authorization` string
- `X-Volcano-Client-IP` string

## Request body

- object
  - `refresh_token` string
  - `session_mode` 'cookie'

## Response `200`

Token refreshed

- AuthTokenResponse
  - `access_token` string, required: JWT access token (expires after configured lifetime)
  - `token_type` string, required
  - `expires_in` integer, required: Access token lifetime in seconds
  - `refresh_token` string: Long-lived token for getting new access tokens. Omitted when the request uses eligible HttpOnly cookie session storage.
  - `user` AuthUser, required
    - `id` string, uuid, required
    - `project_id` string, uuid
    - `email` string, email, required
    - `email_confirmed` boolean
    - `user_metadata` object: User-editable metadata
    - `app_metadata` object: Application-controlled metadata (read-only for users)
    - `avatar_url` string, uri: User avatar URL (from OAuth provider or manually set)
    - `status` 'active' | 'banned' | 'deleted', required
    - `banned_until` string, date-time, nullable: When temporary ban expires (null if not banned or permanent)
    - `last_sign_in_at` string, date-time
    - `created_at` string, date-time
    - `updated_at` string, date-time

## Other responses

- `401`: Invalid or expired refresh token; or invalid auth proxy metadata
- `403`: The account's email domain is not in `allowed_email_domains` while `allowed_email_domains_mode` is `signup_and_signin`, so the session cannot be extended
- `429`: Rate limit exceeded

## Changes

- **2026-10-23** `5113707385cc`: 2 info
  - added the new optional `header` request parameter `X-Volcano-Client-IP`
  - added the new optional `header` request parameter `X-Volcano-Proxy-Authorization`
- **2026-09-19** `3a6f365f3f35`: 4 breaking, 11 info
  - the response's body type changed from no type to `object` for status `200`
  - the response's body type changed from no type to `object` for status `401`
  - the response's body type changed from no type to `object` for status `403`
  - the response's body type changed from no type to `object` for status `429`
  - …11 more
- **2026-08-27** `bb44e98aba2e`: 10 breaking, 2 warning, 4 info
  - the response's body type changed from `object` to no type for status `200`
  - the response's body type changed from `object` to no type for status `401`
  - the response's body type changed from `object` to no type for status `429`
  - removed the required property `access_token` from the response with the `200` status
  - …12 more
- **2026-07-27** `bb52784e098a`: 2 info
  - added the optional property `code` to the response with the `401` status
  - added the optional property `code` to the response with the `429` status

[Operation history](https://skmtc.dev/kong/apis/volcano-api/changes/auth/refresh/post.md)

---

[API](https://skmtc.dev/kong/apis/volcano-api.md) - [All operations](https://skmtc.dev/kong/apis/volcano-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kong/apis/volcano-api/revisions/84c4488f91e9?raw)
