Accounts
Authentication
Get Account
GET
https://demo.getlynx.dev/api/auth/me
Headers
Authorization
String
Your API key
Cookies
token
String
Your JWT Session
Log In
POST
https://demo.getlynx.dev/api/auth/login
Request Body
username*
String
password*
String
token
String
2FA Token
Register
POST
https://demo.getlynx.dev/api/auth/register
Request Body
username*
String
password*
String
email*
String
Log Out
DELETE
https://demo.getlynx.dev/api/auth/me
Cookies
token*
String
Your JWT Session
Two-Factor Authentication (2FA)
Get new TOTP token
GET
https://demo.getlynx.dev/api/auth/totp
Cookies
token
String
Your JWT Session
Enable 2FA
POST
https://demo.getlynx.dev/api/auth/totp
Cookies
token
String
Your JWT Session
Request Body
token*
String
2FA Token
Disable 2FA
DELETE
https://demo.getlynx.dev/api/auth/totp
Cookies
token
String
Your JWT Session
Request Body
token
String
2FA Token
Account Recovery
Recover Account
POST
https://demo.getlynx.dev/api/auth/totp/recover
Request Body
backupCode*
String
password*
String
username*
String
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
token*
String
Your JWT Session
Request Body
newEmail*
String
password*
String
token
String
2FA Token (If Enabled)
Update Password
PATCH
https://demo.getlynx.dev/api/auth/password
Cookies
token*
String
Your JWT Session
Request Body
password*
String
newPassword*
String
token
String
2FA Token (If Enabled)
Update Username
PATCH
https://demo.getlynx.dev/api/auth/username
Cookies
token*
String
Your JWT Session
Request Body
newUsername*
String
password*
String
token
String
2FA Token (If Enabled)
Other
Get new secret
POST
https://demo.getlynx.dev/api/auth/newSecret
Last updated
Was this helpful?