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