Account Security
The options on this page are under Account (side menu), in the Profile tab (My account page), Security section.
Two-Factor Authentication (2FA)
2FA adds an extra layer of security to your login.
On Zenifra, 2FA uses an authenticator (TOTP) app. With 2FA enabled, the code for sign-in, password change, password recovery, and account deletion comes from the app. Without 2FA, sign-in, password changes, and account deletion are confirmed with a code sent to your email.
Enable 2FA
Enabling has two steps: you confirm your password, scan the QR code, and only then confirm with a code from the app.
- Go to Account > Security section
- Click Enable 2FA, enter your Current password, and click OK
- In Set up 2FA, scan the QR code with your authenticator app
- Enter the 6-digit code shown by the app in Authenticator app code
- Click Confirm activation
Important: 2FA only takes effect after Confirm activation. If you close the window before that, 2FA stays disabled and the started setup expires in 10 minutes; to enable it, start again. There are no 2FA backup codes; if you lose access to the app, email [email protected].
Compatible apps
- Google Authenticator
- Authy
- Microsoft Authenticator
- 1Password
- any compatible TOTP app
Disable 2FA
- Go to Account > Security section
- Click Disable 2FA
- Enter your Current password and the current TOTP code from your app
- Click Disable 2FA to confirm
Single-use codes and attempt limit
- Each authenticator app code is valid only once. After it is used (at sign-in, when enabling or disabling 2FA, when changing or recovering your password, or when deleting the account), the same code is rejected; wait for the app to generate the next one, which happens every 30 seconds.
- After 10 invalid codes within one hour, new verifications for the account are blocked until that one-hour window ends, counted from the first failure. A correct code before reaching the limit resets the count.
- Codes sent by email follow the same limit of 10 failures per hour, counted separately for each purpose (sign-in, email verification, password change, and account deletion).
Password Change
How to change it
- Go to Account > Security section
- Enter the Current password
- Set the New password (12 to 64 characters, with an uppercase letter, a lowercase letter, a number, and a special character)
- Repeat it in Confirm new password
- Enter the code:
- with 2FA enabled, the TOTP code from the app
- without 2FA, first click Change password: a code is sent to your email; enter it in Verification code
- Click Change password
The current password is checked before the code. After the change, all account sessions and connected integrations are ended and you must sign in again.
Sign-in history
The Sign-in history section shows sign-ins and attempts from the last 7 days, with date and time, origin, and status (success or failure).
Security Notifications
See Account Settings to manage account notification preferences, such as Sign-in notifications and Password change.
Sessions
- Sign out ends only the session in the browser where you clicked it; sessions open on other devices stay active.
- Changing or resetting your password ends all account sessions and disconnects the integrations authorized in Connected integrations, such as the CLI connected through the browser and Zenifra MCP.
- Through the API,
DELETE /v1/authenticationends the current session andDELETE /v1/authentication?scope=allends every session and authorized connection of the account. Any otherscopevalue is rejected with400.
If you suspect unauthorized access, change your password: that is how you end all sessions from the console.
API reference
All routes below require an authenticated session and live under https://api.zenifra.com/v1.
| Action | Request | Success response |
|---|---|---|
| Start enabling 2FA | POST /authentication/2fa with { "current_password": "..." } | 200 with data.qr_code, data.secret, and data.requires_confirmation: true |
| Confirm 2FA activation | POST /authentication/2fa with { "code": "123456" } | 200 (2FA enabled with success) |
| Disable 2FA | DELETE /authentication/2fa with { "current_password": "...", "code": "123456" } | 200 (2FA disabled successfully) |
| Sign out of this session | DELETE /authentication | 200 (logged out successfully) |
| Sign out of all sessions | DELETE /authentication?scope=all | 200 (logged out successfully) |
Send current_password or code in each POST /authentication/2fa call, never both. The confirmation step must happen within 10 minutes of starting.
| Status | Message or code | When it happens |
|---|---|---|
400 | current password does not match | Wrong current password when starting activation or disabling |
400 | 2FA not enabled for this user | Attempt to disable while 2FA is off |
401 | invalid TOTP code provided | Invalid or already used code |
409 | user already have totp | Attempt to enable while 2FA is already on |
409 | 2FA setup expired | Confirmation without a started activation or after 10 minutes |
429 | challenge_attempts_exceeded | Limit of 10 invalid codes per hour reached |
Features not currently available
These features are not currently available in the console:
- 2FA backup codes
- list of active sessions or connected devices
- ending one specific session on another device
- a button to sign out of all sessions
Next steps
Last updated on
Registration on Zenifra
Create a Zenifra account with email, CPF or CNPJ, a Brazilian phone and address, see the document and representative checks, and verify email within 48 hours.
Email Verification
Verify your Zenifra account email with the 6-digit code, valid for 15 minutes, resend the code if needed, and finish within 48 hours after you sign up.