Verify MFA recovery code
POST
/api/auth/mfa/recovery-code/verify
const url = 'https://hitkeep.com/api/auth/mfa/recovery-code/verify';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"challenge_token":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","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://hitkeep.com/api/auth/mfa/recovery-code/verify \ --header 'Content-Type: application/json' \ --data '{ "challenge_token": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "code": "example" }'Consumes a recovery code for a pending MFA challenge.
Request Body required
Section titled “Request Body required ” Media type application/json
object
challenge_token
required
string format: uuid
code
required
string
Example generated
{ "challenge_token": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "code": "example"}Responses
Section titled “ Responses ”Status
Media type application/json
object
message
string
status
string
Example generated
{ "message": "example", "status": "example"}