---
title: POST /api/v1/auth/refresh
description: Refresh
locale: en
version: 0.2.0
canonical: https://enterium-developer-docs.pages.dev/developers/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
Generated from the OpenAPI contract — do not edit by hand. Interactive explorer with full schemas: [https://entherium.duckdns.org:8443/reference](https://entherium.duckdns.org:8443/reference); frozen spec for this build: [openapi.json](/developers/api/openapi.json). Group: [auth](../).
:::

Refresh

Exchange a refresh token for a new access token.

**Auth:** no token required

## Request

```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>"}'
```

## Response `200`

The contract carries no example for this response; schema: `AccessOnly`. Field-level shape: [interactive explorer](https://entherium.duckdns.org:8443/reference).

## Returns

`AccessOnly` — Successful Response

| Field | Type | Description |
| --- | --- | --- |
| `access_token` | `string` |  |
| `expires_in` | `integer` |  |
| `token_type` | `string` (opt.) |  |

## Parameters

| Parameter | In | Required | Type | Default | Constraints | Description |
| --- | --- | --- | --- | --- | --- | --- |
| `Idempotency-Key` | header | no | `string` | — | uuid | Optional. |

## Request body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `refresh_token` | `string` | yes |  |

_Example:_

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

## Errors

| Code | Meaning | Body |
| --- | --- | --- |
| `422` | Validation Error | `HTTPValidationError` |

Every error body is `{detail, code?, request_id, doc_url}` — `request_id` is the value to quote, `doc_url` points at the [Errors reference](../../../reference/errors/).
