REST APIAuth
Set up the first admin with the setup code, and sign in.
Works while `setup_required` is true: no admin who can sign in exists. The code is printed in the server log at startup. 10 attempts per client address in 10 minutes.
POST
Works while setup_required is true: no admin who can sign in exists. The code is printed in the server log at startup. 10 attempts per client address in 10 minutes.
application/json- body
code*stringThe setup code from the server log, XXXXX-XXXXX; case and dashes do not matter.
name*stringLength
1 <= length <= 100email*stringStored trimmed and lowercased.
Length
length <= 254password*stringLength
10 <= length <= 256The admin exists and is signed in.
application/json- response
success*unknowncurl -X POST 'https://sluby.example.com/api/v1/auth/setup' \ -H 'Content-Type: application/json' \ -d '{ "code": "string", "name": "string", "email": "string", "password": "stringstri"}'Example Response
{ "success": true}