First run: sets the password and opens a session
POST
/auth/setupPublic: no authentication needed
Request body
application/jsonobjectrequired
passwordstringrequired
Responses
201OKAuthState
modestringsetupRequiredbooleanauthenticatedboolean
400Errorobject
errorobjectFields · 2
codestringmessagestring
409Errorobject
errorobjectFields · 2
codestringmessagestring
Request
curl -X POST "http://localhost:8080/api/v1/auth/setup" \ -H "Content-Type: application/json" \ -d '{ "password": "string"}'const response = await fetch('http://localhost:8080/api/v1/auth/setup', { 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/setup", 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" }}