---
title: "Обновление токенов"
method: POST
path: "/auth/refresh"
tags: ["Авторизация"]
---

# Обновление токенов

`POST /auth/refresh`

Обменивает действующий refresh token на новую пару access и refresh token. Использованный refresh token отзывается.

## Headers

- `X-Lang` 'ru' | 'kk' | 'en' | 'es'

## Request body

- object
  - `refresh_token` string, required — Refresh token

## Response `200`

Успешная авторизация

- AuthData
  - `user_id` integer, required — ID пользователя панели
  - `access_token` string, required — JWT access token. В payload содержит `token_type`, `token_id` и `user_id`.
  - `refresh_token` string, required — Refresh token

## Other responses

- `400` — Неправильный запрос
- `401` — Пользователь не авторизован
- `403` — Доступ запрещен
- `429` — Превышен лимит на количество запросов
- `500` — Внутренняя ошибка сервера
- `503` — Сервис недоступен или отключен

## Changes

> 10 revisions in range; 3 could not be searched.

- **2026-05-18** `f6e4c021cd18` — 1 warning
  - deleted the `header` request parameter `User-Agent`

[Change history](https://skmtc.dev/smartofood/apis/smartofood-admin-api/changes/auth/refresh/post.md)

---

[API](https://skmtc.dev/smartofood/apis/smartofood-admin-api.md) · [All operations](https://skmtc.dev/smartofood/apis/smartofood-admin-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/smartofood/smartofood-admin-api/revisions/c22dfa568481/schema)
