Generate TOTP secret for setup
POST
https://app.speybooks.com/api/v1/auth/totp/setupBegin TOTP enrolment. Returns a shared secret and an otpauth URI for the client to render as a QR code. The secret is stored but not yet active; the user activates it by verifying a code at the enable endpoint. Returns an error if TOTP is already enabled.
Response
200Returns the TOTP secret and otpauth URL for QR code generation. Call /totp/enable with a valid code to activate.
Show response fields
otpauthstringsecretstringError codes
400TOTP is already enabled for this user.