AgentController

Create an agent-managed TOTP device from a base32 secret key

post/agent/totp/devices/base32-secret-key

Request

  • Base URL: https://api.mailslurp.com
  • URL: https://api.mailslurp.com/agent/totp/devices/base32-secret-key
  • 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

Created

Changes

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