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

Authenticate with a recovery code

Verifies the second factor of the session started by POST /api/v1/auth.

post
Authorizations
defguard_sessionstringRequired
Body
codestringRequired
Responses
200

Recovery code verified, user is fully authenticated.

application/json

Return type needed for knowing if a user came from OpenID flow. If so, fill in the optional URL field to redirect him later.

urlstring · nullableOptional
post/api/v1/auth/recovery

Last updated

Was this helpful?