> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lerian.studio/llms.txt
> Use this file to discover all available pages before exploring further.

# Verify MFA Setup

> Verifies the MFA passcode during setup process.



## OpenAPI

````yaml /es/openapi/v3-current/AM-identity.yaml post /v1/users/{id}/mfa/verify
openapi: 3.0.1
info:
  contact: {}
  description: This is a swagger documentation for the Identity API
  termsOfService: http://swagger.io/terms/
  title: Identity API
  version: 1.0.0
servers:
  - url: //localhost:4001/
security: []
paths:
  /v1/users/{id}/mfa/verify:
    post:
      tags:
        - MFA
      summary: Verify MFA Setup
      description: Verifies the MFA passcode during setup process.
      parameters:
        - description: User ID
          in: path
          name: id
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MFAVerifyInput'
        description: MFA Verify Input
        required: true
      responses:
        '204':
          content: {}
          description: No Content
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pkg.HTTPError'
          description: Bad Request
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pkg.HTTPError'
          description: Not Found
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pkg.HTTPError'
          description: Internal Server Error
      security:
        - BearerAuth: []
components:
  schemas:
    MFAVerifyInput:
      description: MFAVerifyInput payload
      example:
        mfaType: app
        secret: JBSWY3DPEHPK3PXP
        passcode: '123456'
      properties:
        mfaType:
          description: MFA type being verified
          enum:
            - app
            - email
          example: app
          type: string
        passcode:
          description: 6-digit code from authenticator app or verification code from email
          example: '123456'
          maxLength: 8
          minLength: 6
          type: string
        secret:
          description: >-
            Secret returned from setup (required for TOTP/app, optional for
            email)
          example: JBSWY3DPEHPK3PXP
          type: string
      required:
        - mfaType
        - passcode
      type: object
    pkg.HTTPError:
      properties:
        code:
          type: string
        entityType:
          type: string
        err:
          type: object
        message:
          type: string
        title:
          type: string
      type: object
  securitySchemes:
    BearerAuth:
      description: 'Bearer authentication. Send Authorization: Bearer <token>.'
      in: header
      name: Authorization
      type: apiKey

````