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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"code": "<code>"
},
"name": "account_2fa_enable"
}
}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. |