REST APIAuth
Sign in with an email and password.
10 attempts per client address in 10 minutes, and 5 wrong passwords per email in 15 minutes.
POST
10 attempts per client address in 10 minutes, and 5 wrong passwords per email in 15 minutes.
application/json- body
email*stringCompared trimmed and lowercased.
password*stringLength
1 <= length <= 1024Signed in.
application/json- response
success*unknowncurl -X POST 'https://sluby.example.com/api/v1/auth/password' \ -H 'Content-Type: application/json' \ -d '{ "email": "string", "password": "string"}'Example Response
{ "success": true}Set up the first admin with the setup code, and sign in. 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.
Change the signed-in member's password. POST
Studio sessions only. Every other session of the account ends; this one stays. `revoked` is how many ended.