Authentication
Get Account
GET
https://demo.getlynx.dev/api/auth/me
Cookies
Log In
POST
https://demo.getlynx.dev/api/auth/login
Request Body
Register
POST
https://demo.getlynx.dev/api/auth/register
Request Body
Occurs when at least 1 account exists and ENABLE_REGISTRATION is set to false
Log Out
DELETE
https://demo.getlynx.dev/api/auth/me
Cookies
Two-Factor Authentication (2FA)
Get new TOTP token
GET
https://demo.getlynx.dev/api/auth/totp
Cookies
Enable 2FA
POST
https://demo.getlynx.dev/api/auth/totp
Cookies
Request Body
Disable 2FA
DELETE
https://demo.getlynx.dev/api/auth/totp
Cookies
Request Body
Account Recovery
Recover Account
POST
https://demo.getlynx.dev/api/auth/totp/recover
Request Body
Manual Recovery
If you didn't save your backup codes you will need to run the following commands in your mongodb container/instance
Connect to your database and enter your password:
Switch to the lynx database:
Disable 2FA for your account's username:
Account Information Management
Update Email
PATCH
https://demo.getlynx.dev/api/auth/email
Cookies
Request Body
Update Password
PATCH
https://demo.getlynx.dev/api/auth/password
Cookies
Request Body
Update Username
PATCH
https://demo.getlynx.dev/api/auth/username
Cookies
Request Body
Other
Get new secret
POST
https://demo.getlynx.dev/api/auth/newSecret