OpenapiUser
Verify TOTP setup and enable two-factor authentication
Completes the TOTP setup process by verifying the TOTP code generated from the secret. On successful verification, TOTP is enabled for the user account.
POST
Completes the TOTP setup process by verifying the TOTP code generated from the secret. On successful verification, TOTP is enabled for the user account.
bearer_authheader
AuthorizationBearer <token>application/json- body
code*stringtempToken*stringTOTP enabled successfully
application/json- response
enabledAt*stringmessage*stringcurl -X POST 'https://example.com/api/user/totp/verify' \
-H 'Content-Type: application/json' \
-d '{
"code": "string",
"tempToken": "string"
}'Example Response
{
"enabledAt": "string",
"message": "string"
}