Skip to content

POST /api/v1/auth/login

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

Login

OAuth2 password flow. username field is the user’s email.

Auth: no token required

Terminal window
curl -sS -X POST "https://entherium.duckdns.org:8443/api/v1/auth/login" \
--data-urlencode "client_id=<client_id>" \
--data-urlencode "client_secret=<client_secret>" \
--data-urlencode "grant_type=<grant_type>" \
--data-urlencode "password=<password>" \
--data-urlencode "scope=<scope>" \
--data-urlencode "username=<username>"

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

TokenPair — Successful Response

FieldTypeDescription
access_tokenstring
expires_ininteger
refresh_tokenstring
token_typestring (opt.)
ParameterInRequiredTypeDefaultConstraintsDescription
Idempotency-Keyheadernostring—uuidOptional.
FieldTypeRequiredDescription
client_idstring | nullno
client_secretstring | nullno
grant_typestring | nullno
passwordstringyes
scopestringno
usernamestringyes
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.