Skip to main content
POST
Set TOTP MFA key

Authorizations

x-api-key
string
header
required

Body

application/json
key
string
required

Secret key obtained through userGenerateNewMfaKey.

totpToken
string
required

TOTP token that is valid for the key (to ensure the device is configured correctly)

Response

200 - application/json

OK

success
boolean
required

Whether the operation succeeded

recoveryCodes
string[]
required

10 recovery codes, which can be used in case you've lost access to your MFA TOTP app. Recovery codes are single use. Once you've used a recovery code once, it can not be used again.

error
string

Optional error description (set if 'success' was false)