Skip to content

TOTP Prepare

Generates the secret material needed to enroll TOTP.

Method and path

  • Method: POST
  • Path: /auth/totp/prepare
  • Auth: required

Response

{
  "secret": "BASE32SECRET",
  "otpauthUrl": "otpauth://totp/OpenASA:dev@example.com?secret=BASE32SECRET"
}