Client A P I
Get two-factor setup
Creates or returns the current two-factor setup payload for the authenticated user.
GET
/api/client/account/two-factorAuthorization
default AuthorizationBearer <token>
Application API requests require an application API token, or a client API token, that belongs to a root administrator. Admin API requests require a client API token that belongs to a root administrator, and reject application API tokens. Client API requests require a client API token.
In: header
Response Body
application/json
application/json
application/json
curl -X GET "https://example.com/api/client/account/two-factor"{ "data": { "image_url_data": "otpauth://totp/Pterodactyl:[email protected]?secret=EXAMPLESECRET&issuer=Pterodactyl", "secret": "EXAMPLESECRET" }}