Validate OTP
1 min
POST
{{baseurl}}/twofactorauth-ui/rest/tfa/otpValid
baseurlstring
Content-Typestring
X-XSRF-TOKENstring
usernamestring
tokenstring
ignoreUsedBeforestringthis field allows a token to be used multiple times in validity time period. The field takes "true" or "false" values
200Validate OTP
curl --request POST \
--url {{baseurl}}/twofactorauth-ui/rest/tfa/otpValid \
--header 'accept: application/json' \
--header 'content-type: application/x-www-form-urlencoded' \
--header 'x-xsrf-token: {{csrftoken}}' \
--form 'username="{{TestUserName}}"' \
--form 'token="183942"' \
--form 'ignoreUsedBefore="true"'