POST /api/v1/auth/refresh
Refresh
Exchange a refresh token for a new access token.
Auth: no token required
Request
Section titled “Request”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
Section titled “Response 200”The contract carries no example for this response; schema: AccessOnly. Field-level shape: interactive explorer.
Returns
Section titled “Returns”AccessOnly — Successful Response
| Field | Type | Description |
|---|---|---|
access_token | string | |
expires_in | integer | |
token_type | string (opt.) |
Parameters
Section titled “Parameters”| Parameter | In | Required | Type | Default | Constraints | Description |
|---|---|---|---|---|---|---|
Idempotency-Key | header | no | string | — | uuid | Optional. |
Request body
Section titled “Request body”| Field | Type | Required | Description |
|---|---|---|---|
refresh_token | string | yes |
Example:
{ "refresh_token": "<refresh token from /api/v1/auth/login>"}Errors
Section titled “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.