Pre-enable TOTP

PUT /auth/totp

Prepare TOTP (Time-based One-Time Password) for enabling. It returns provisioning URI and secret for authenticator app setup.

Responses

  • 200

    TOTP pre-enabled

  • 400

    TOTP already enabled

PUT /auth/totp
curl \
 --request PUT 'http://api.example.com/auth/totp' \
 --header "Authorization: $API_KEY"