Enable 2FA
account_2fa_enableActivate two-factor authentication on a Pterodactyl account by confirming a 6-digit TOTP code, returning recovery tokens for backup access.
Instructions
Enable two-factor authentication by confirming a TOTP code. Returns recovery tokens.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | 6-digit TOTP code. | |
| panel | No | Name of a saved panel. Omit to use the active or default panel. | |
| baseUrl | No | Inline panel URL override, e.g. https://panel.example.com. Not persisted. | |
| clientKey | No | Inline client API key (ptlc_…) override. Not persisted. | |
| applicationKey | No | Inline application API key (ptla_…) override. Not persisted. |