MFAController

Create a TOTP device from an base32 secret key

Create a virtual TOTP device for a given secret key. This is usually present as an alternative login option when pairing OTP devices.

post/mfa/totp/device/base32SecretKey

Request

  • Base URL: https://api.mailslurp.com
  • URL: https://api.mailslurp.com/mfa/totp/device/base32SecretKey
  • Auth: API key in header x-api-key

Request body

base32SecretKeystring required

Base32 secret key for TOTP device as alternative to OTP Auth URI or QR code.

namestring nullable

Name for labeling the TOTP device

usernamestring nullable

Optional username for the TOTP device

issuerstring nullable

Optional issuer override for the TOTP device

digitsinteger nullable

Optional number of digits in TOTP code

periodinteger nullable

Optional period in seconds for TOTP code expiration

algorithmstring nullable

Optional algorithm override

Example request

{
  "base32SecretKey": "EVJWGYZUIVGECOSWGBKGSRTBPE3FQVDQ",
  "algorithm": "SHA1"
}

Response

OK

Changes

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