Enable email MFA
post
Authorizations
defguard_sessionstringRequired
Body
codestringRequired
Responses
200
Email MFA enabled. Returns recovery codes when this is the first configured factor.
application/json
codesstring[] · nullableOptional
401
Session is missing or invalid.
application/json
404
Invalid email MFA code.
application/json
500
Unable to enable email MFA.
application/json
post/api/v1/auth/email
POST /api/v1/auth/email HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 15
{
"code": "text"
}{
"codes": [
"text"
]
}Last updated
Was this helpful?