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

Enable TOTP

Applies to the user of the current session.

post
Authorizations
defguard_sessionstringRequired
Body
codestringRequired
Responses
200

TOTP enabled. Returns recovery codes when this is the first configured factor.

application/json
codesstring[] · nullableOptional
post/api/v1/auth/totp
POST /api/v1/auth/totp HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 15

{
  "code": "text"
}
{
  "codes": [
    "text"
  ]
}

Last updated

Was this helpful?