---
title: POST /api/v1/auth/refresh
description: Refresh
locale: ru
version: 0.2.0
canonical: https://enterium-developer-docs.pages.dev/developers/ru/api/auth/post-auth-refresh/
---

> Documentation index: https://enterium-developer-docs.pages.dev/developers/llms.txt — every page of this portal has a Markdown twin at <route>.md; the frozen API contract is at https://enterium-developer-docs.pages.dev/developers/api/openapi.json.

:::note
Сгенерировано из OpenAPI-контракта — не редактировать руками. Сводки операций и описания полей приводятся на английском (дословно из контракта). Интерактивный обозреватель с полными схемами: [https://entherium.duckdns.org:8443/reference](https://entherium.duckdns.org:8443/reference); замороженная спецификация этой сборки: [openapi.json](/developers/api/openapi.json). Группа: [auth](../).
:::

Refresh

Exchange a refresh token for a new access token.

**Авторизация:** токен не нужен

## Запрос

```sh
curl -sS -X POST "https://entherium.duckdns.org:8443/api/v1/auth/refresh" \
  -H "Content-Type: application/json" \
  -d '{"refresh_token":"<refresh token from /api/v1/auth/login>"}'
```

## Ответ `200`

В контракте нет примера для этого ответа; схема: `AccessOnly`. Поля — в [интерактивном обозревателе](https://entherium.duckdns.org:8443/reference).

## Возвращает

`AccessOnly` — Successful Response

| Поле | Тип | Описание |
| --- | --- | --- |
| `access_token` | `string` |  |
| `expires_in` | `integer` |  |
| `token_type` | `string` (opt.) |  |

## Параметры

| Параметр | Где | Обязателен | Тип | По умолчанию | Ограничения | Описание |
| --- | --- | --- | --- | --- | --- | --- |
| `Idempotency-Key` | header | нет | `string` | — | uuid | Optional. |

## Тело запроса

| Поле | Тип | Обязательно | Описание |
| --- | --- | --- | --- |
| `refresh_token` | `string` | да |  |

_Пример:_

```json
{
  "refresh_token": "<refresh token from /api/v1/auth/login>"
}
```

## Ошибки

| Код | Смысл | Тело |
| --- | --- | --- |
| `422` | Validation Error | `HTTPValidationError` |

Тело любой ошибки — `{detail, code?, request_id, doc_url}`: `request_id` — что цитировать, `doc_url` ведёт в [Справочник ошибок](../../../reference/errors/).
