Dev Login — POST /api/v1/auth/dev-login
Dev Login
Development-only: issue a JWT for a seeded user without credentials.
Endpoint: POST /api/v1/auth/dev-login
Authentication: No access token or API key is needed.
Parameters
Section titled “Parameters”| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
role | query | no | string | admin | |
username | query | no | string or null |
Request body
Section titled “Request body”No request body.
Responses
Section titled “Responses”| Status | Meaning | Body |
|---|---|---|
200 | Successful Response | TokenResponse (application/json) |
422 | Validation Error | HTTPValidationError (application/json) |
Errors this endpoint returns, read from its source code:
400403, with the message “dev-login cannot be used for an account with MFA enabled. Sign in with the password + authenticator flow”404, with the message “Not found”
Statuses not listed here are explained in Errors and retries.
More details
Section titled “More details”- Group: Authentication
- Operation ID:
dev_login_api_v1_auth_dev_login_post - Source code:
backend/app/routers/auth.py, line 631 - Specification: OpenAPI JSON