POST /api/v1/auth/login
Login
OAuth2 password flow. username field is the user’s email.
Auth: no token required
Request
Section titled “Request”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>"Response 200
Section titled “Response 200”The contract carries no example for this response; schema: TokenPair. Field-level shape: interactive explorer.
Returns
Section titled “Returns”TokenPair — Successful Response
| Field | Type | Description |
|---|---|---|
access_token | string | |
expires_in | integer | |
refresh_token | string | |
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 |
|---|---|---|---|
client_id | string | null | no | |
client_secret | string | null | no | |
grant_type | string | null | no | |
password | string | yes | |
scope | string | no | |
username | string | yes |
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.