2FA

Generate a TOTP code (query) or render the 2FA tool page

get/2fa

Request

  • Base URL
    https://dummyjson.com
  • URL
    https://dummyjson.com/2fa
  • Auth
    none required

Query parameters

keystring

Base32 secret or otpauth:// URI. When omitted, returns the HTML tool page.

Response

TOTP payload or HTML page

totpstring
expiresIninteger
periodinteger

Example response

{
  "totp": "123456",
  "expiresIn": 25,
  "period": 30
}

Changes

No recorded changes to this operation across all 1 revision of this API.