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

# Enable 2FA

> Enable two-factor authentication



## OpenAPI

````yaml post /v1/profile/security/2fa/enable
openapi: 3.0.0
info:
  title: Profile API
  version: 1.0.0
  description: API for managing user profiles and profile trays
servers: []
security:
  - bearerAuth: []
tags:
  - name: Profile
    description: Profile management operations
paths:
  /v1/profile/security/2fa/enable:
    post:
      tags:
        - Profile
      summary: Enable 2FA
      description: Enable two-factor authentication
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Enable2FARequest'
      responses:
        '200':
          description: 2FA enabled successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Enable2FAResponse'
              example:
                backup_codes:
                  - '12345678'
                  - '87654321'
                recovery_key: ABCD-EFGH-IJKL-MNOP
components:
  schemas:
    Enable2FARequest:
      type: object
      required:
        - method
        - code
      properties:
        method:
          type: string
          enum:
            - app
            - sms
            - email
          description: 2FA method to enable
        code:
          type: string
          description: Verification code
        phone:
          type: string
          description: Phone number for SMS method
    Enable2FAResponse:
      type: object
      properties:
        backup_codes:
          type: array
          items:
            type: string
          description: One-time use backup codes
        recovery_key:
          type: string
          description: Recovery key for account access
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````