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

# Submit 2FA code

> Verifies a two-factor authentication code for an ongoing authentication session



## OpenAPI

````yaml post /authentication/submitTwoFactorAuthCode
openapi: 3.1.0
info:
  title: Kaizen API
  version: 1.0.0
  description: API for the Kaizen Automation Platform
servers:
  - url: https://api.kaizenautomation.com
    description: Production server
security: []
paths:
  /authentication/submitTwoFactorAuthCode:
    post:
      tags:
        - Authentication
      summary: Submit 2FA code
      description: >-
        Verifies a two-factor authentication code for an ongoing authentication
        session
      requestBody:
        content:
          application/json:
            schema:
              oneOf:
                - type: object
                  properties:
                    code:
                      type: string
                      minLength: 4
                      maxLength: 8
                      description: Two-factor authentication code
                  required:
                    - code
                - type: object
                  properties:
                    content:
                      type: string
                      description: Content of the 2FA code
                  required:
                    - content
      responses:
        '201':
          description: 2FA code verification result
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    description: Whether the 2FA code was accepted
                  message:
                    type: string
                    description: Status message
                  data:
                    description: The created two-factor authentication code data
                required:
                  - success
                  - message
        '400':
          description: Invalid input
        '401':
          description: Unauthorized
        '500':
          description: Server error

````