Create MFA challenge
POST
/api/mfa/challenge
const url = 'http://localhost:3001/api/mfa/challenge';const options = {method: 'POST', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:3001/api/mfa/challenge \ --header 'Authorization: <Authorization>'Create a multi-factor authentication challenge for the user to verify
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”OK
Media typeapplication/json
object
challenge_id
string
challenge_type
string
expires_at
integer
message
string
success
boolean
Examplegenerated
{ "challenge_id": "example", "challenge_type": "example", "expires_at": 1, "message": "example", "success": true}Bad Request
Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{ "error": "example", "success": true}Unauthorized
Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{ "error": "example", "success": true}Internal Server Error
Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{ "error": "example", "success": true}Service Unavailable
Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{ "error": "example", "success": true}