Skip to main content
POST
Enable 2FA

Authorizations

Authorization
string
header
required

Authentication using either a FormBnB session JWT (issued by /auth) or an API key (prefixed with sk_). Both token types are passed as Bearer tokens in the Authorization header.

Body

application/json
code
string
required

TOTP code from authenticator app

Required string length: 6
Pattern: ^\d+$

Response

2FA enabled successfully

success
boolean
required
message
string