Account
2FA details
Generates a TOTP QR code image to allow the setup of 2FA
GET
/api/client/account/two-factorAuthorization
ClientToken AuthorizationBearer <token>
Client API key (generated at /account/api)
In: header
Response Body
application/json
curl -X GET "https://pterodactyl.file.properties/api/client/account/two-factor" \ -H "Authorization: Bearer ptlc_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \ -H "Accept: application/json"{
"data": {
"image_url_data": "otpauth://totp/Pterodactyl:example%40example.com?secret=LGYOWJEGVRPPGPWATP5ZHOYC7DHAYQ6S&issuer=Pterodactyl"
}
}