Sign in (5 attempts, then 1 per minute and per IP address)
POST
/auth/loginPublic: no authentication needed
Request body
application/jsonobjectrequired
passwordstringrequired
Responses
200OKAuthState
modestringsetupRequiredbooleanauthenticatedboolean
401Errorobject
errorobjectFields · 2
codestringmessagestring
429Errorobject
errorobjectFields · 2
codestringmessagestring
Request
curl -X POST "http://localhost:8080/api/v1/auth/login" \ -H "Content-Type: application/json" \ -d '{ "password": "string"}'const response = await fetch('http://localhost:8080/api/v1/auth/login', { method: 'POST', headers: { 'Content-Type': 'application/json', }, body: JSON.stringify({ "password": "string" }),});const data = await response.json();import requests
response = requests.post( "http://localhost:8080/api/v1/auth/login", json={ "password": "string", },)response.raise_for_status()print(response.json())Response
{ "mode": "password", "setupRequired": true, "authenticated": true}{ "error": { "code": "not_found", "message": "string" }}{ "error": { "code": "not_found", "message": "string" }}