Parameters
No parameters required
This endpoint takes no path, query, header or body parameters.
Generates a fresh RFC 4226 base32 TOTP secret (160 bits) plus the canonical otpauth:// URI for QR-code rendering. The secret is NOT persisted yet — call /setup-otp-save with a verification code to enable 2FA.
No parameters required
This endpoint takes no path, query, header or body parameters.
1 status code documented
secretstringRequiredBase32-encoded TOTP secret (RFC 4648, A–Z2–7, 32 chars).
otpAuthUristringRequiredCanonical otpauth://totp/… URI suitable for direct QR encoding (works with all TOTP apps).
qrCodeUrlstringRequiredPre-rendered QR code image URL hosted on cdn.bizkithub.com.
{
"secret": "example_secret",
"otpAuthUri": "example_otpAuthUri",
"qrCodeUrl": "example_qrCodeUrl"
}POST /bff/account/setup-otp-generate-secret
curl -X POST "https://api.bizkithub.com/bff/account/setup-otp-generate-secret" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY"All BizKitHub public API endpoints require authentication via API key.