2FA
Generate a TOTP code (query) or render the 2FA tool page
get/2fa
Request
- Base URLhttps://dummyjson.com
- URLhttps://dummyjson.com/2fa
- Authnone required
Query parameters
keystring
Base32 secret or otpauth:// URI. When omitted, returns the HTML tool page.
Response
TOTP payload or HTML page
Example response
{
"totp": "123456",
"expiresIn": 25,
"period": 30
}Changes
No recorded changes to this operation across all 1 revision of this API.