Verification

Verifies a code provided by the user (from Google Authenticator or other method)

post/verification/verify

Request

  • Base URL: http://localhost:8080/api/v1
  • URL: http://localhost:8080/api/v1/verification/verify
  • Auth: API key in cookie jwt

Request body

user_idstring uuid required

The UUID of the user being verified

codestring required

The 6-digit verification code from Google Authenticator

Example request

{
  "user_id": "f20e5948-01ba-4113-b453-db05d8bde3bc",
  "code": "123456"
}

Response

Code verified successfully

messagestring
verifiedboolean
mfa_enabledboolean

Indicates if MFA is now enabled for this user

Example response

{
  "message": "Verification successful",
  "verified": true,
  "mfa_enabled": true
}

Changes