Skip to main content
POST
Verify 2FA code

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 or backup code

Minimum string length: 1

Response

Verification result

success
boolean
required
valid
boolean
required
backupCodeUsed
boolean
remainingBackupCodes
number
error
string