Skip to content

POST /api/v1/auth/refresh

Status: GA Access: open, no token API contract: 0.3.0 · capability 2026-09-03.1 View as Markdown Open in Claude Open in ChatGPT

Refresh

Exchange a refresh token for a new access token.

Auth: no token required

Terminal window
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>"}'

The contract carries no example for this response; schema: AccessOnly. Field-level shape: interactive explorer.

AccessOnly — Successful Response

FieldTypeDescription
access_tokenstring
expires_ininteger
token_typestring (opt.)
ParameterInRequiredTypeDefaultConstraintsDescription
Idempotency-Keyheadernostring—uuidOptional.
FieldTypeRequiredDescription
refresh_tokenstringyes

Example:

{
"refresh_token": "<refresh token from /api/v1/auth/login>"
}
CodeMeaningBody
422Validation ErrorHTTPValidationError

Every error body is {detail, code?, request_id, doc_url} — request_id is the value to quote, doc_url points at the Errors reference.