Loading API documentation...
Complete API reference for RentAmac Portal endpoints
/loginemailUser's email address
passwordUser's password
twoFactorCode2FA code from authenticator app (optional)
twoFactorRecoveryCode2FA recovery code (optional, alternative to twoFactorCode)
Login credentials with optional 2FA code or recovery code
{
"email": "user@example.com",
"password": "yourpassword",
"twoFactorCode": "123456",
"twoFactorRecoveryCode": null
}{
"tokenType": "Bearer",
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"expiresIn": 3600,
"refreshToken": "def50200..."
}Authentication tokens
/refreshrefreshTokenValid refresh token obtained from login
Refresh token to generate new access token
{
"refreshToken": "def50200..."
}{
"tokenType": "Bearer",
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"expiresIn": 3600,
"refreshToken": "def50200..."
}New authentication tokens
/registeremailValid email address for the new account
passwordStrong password for the account (minimum requirements apply)
User registration details
{
"email": "newuser@example.com",
"password": "securepassword123"
}trueRegistration success status
/confirmEmailuserIdUser ID from registration
codeEmail confirmation code sent to user's email
changedEmailNew email if email was changed (optional)
trueEmail confirmation success status
/forgotPasswordemailEmail address of the account to reset password for
Email address for password reset
{
"email": "user@example.com"
}truePassword reset request success status
/resetPasswordemailEmail address of the account
resetCodePassword reset code received via email
newPasswordNew password for the account
Password reset details
{
"email": "user@example.com",
"resetCode": "ABC123",
"newPassword": "newsecurepassword123"
}truePassword reset success status
/manage/2faenableEnable or disable 2FA (optional)
twoFactorCode2FA code for verification when enabling (optional)
resetSharedKeyReset the shared key for 2FA setup (optional, default: false)
resetRecoveryCodesGenerate new recovery codes (optional, default: false)
forgetMachineRemove machine from trusted devices (optional, default: false)
2FA management options
{
"enable": true,
"twoFactorCode": "123456",
"resetSharedKey": false,
"resetRecoveryCodes": false,
"forgetMachine": false
}{
"sharedKey": "JBSWY3DPEHPK3PXP",
"recoveryCodesLeft": 8,
"recoveryCodes": ["12345678", "87654321"],
"isTwoFactorEnabled": true,
"isMachineRemembered": false
}2FA configuration details
/manage/infonewEmailNew email address (optional)
newPasswordNew password (optional)
oldPasswordCurrent password (required when changing password or email)
User info update details
{
"newEmail": "newemail@example.com",
"newPassword": "newpassword123",
"oldPassword": "currentpassword"
}{
"email": "user@example.com"
}Updated user information