Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Enable email MFA

Applies to the user of the current session.

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
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?