Challenge
POST
/api/auth/mfa/challenge
const url = 'https://example.com/api/auth/mfa/challenge';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"backup_code":"example","mfa_pending_token":"example","otp_code":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/auth/mfa/challenge \ --header 'Content-Type: application/json' \ --data '{ "backup_code": "example", "mfa_pending_token": "example", "otp_code": "example" }'Complete login with a TOTP code or backup code, given the mfa_pending_token issued by POST /auth/login.
Request Bodyrequired
Section titled “ Request Bodyrequired ”Responses
Section titled “ Responses ”Successful Response
Media type application/json
Example generated
exampleValidation Error
Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError object
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Example generated
{ "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ]}