MFAController

Create a TOTP device from custom options

Create a virtual TOTP device for custom options specifying all parameters of the TOTP device.

post/mfa/totp/device/custom

Request

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

Request body

secretstring required

The base32 encoded secret provided by the identity provider for the TOTP device.

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

{
  "secret": "LJCTOYKGGBAWCMSHJRZGITCVLIXCG4JY",
  "algorithm": "SHA1"
}

Response

OK

Changes

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