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

# Submit 2FA (/api-reference/fansly/connect-fansly-account/submit2fa)

Submit the verification code for a pending Fansly challenge (emailed new-IP code or authenticator-app code). If the code is invalid the challenge remains in place so you can retry.

## OpenAPI

````yaml https://app.onlyfansapi.com/scribe-fansly-docs/openapi.yaml put /api/fansly/authenticate/{fanslyAccount}
openapi: 3.0.3
info:
  title: Fansly API Documentation
  description: ""
  version: 1.0.0
servers:
  - url: https://app.onlyfansapi.com
security:
  - default: []
tags:
  - name: Account
    description: Endpoints for your linked Fansly accounts
  - name: Chats
    description: Endpoints for Fansly chats (messaging groups)
  - name: Connect Fansly Account
    description: ""
  - name: Earnings
    description: Endpoints for Fansly Earnings — wallets, balances, transactions,
      payouts, and statements.
  - name: Followers
    description: Endpoints for Fansly followers.
  - name: Lists
    description: Endpoints for Fansly subscriber/fan lists (e.g. "VIP", "Spenders").
  - name: Profile Statistics
    description: Endpoints for Fansly Profile Statistics (viewer engagement insights).
  - name: Subscribers
    description: Endpoints for Fansly subscribers and subscription tiers.
  - name: Top Supporters
    description: Endpoints for the Fansly "Top Supporters" view — see who spends the
      most and what they spend on.
  - name: Tracking Links
    description: Endpoints for Fansly tracking links — per-source attribution links
      (e.g. "Twitter bio", "FYP", "Search").
  - name: Users
    description: APIs for fetching Fansly users
paths:
  /api/fansly/authenticate/{fanslyAccount}:
    parameters:
      - in: path
        name: fanslyAccount
        description: The Fansly account ID returned by Start Authentication
        example: fansly_acct_XXXXXXX
        required: true
        schema:
          type: string
    put:
      summary: Submit 2FA
      operationId: submit2FA
      description: Submit the verification code for a pending Fansly challenge
        (emailed new-IP code or authenticator-app code). If the code is invalid
        the challenge remains in place so you can retry.
      parameters: []
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                type: object
                example:
                  account_id: fansly_acct_123
                  display_name: My Fansly
                  status: verifying
                  is_authenticated: false
                  needs_code: true
                  twofa_type: 2
                  masked_email: t**@e*****.com
                  last_error: null
                  fansly_user_data: null
                properties:
                  account_id:
                    type: string
                    example: fansly_acct_123
                  display_name:
                    type: string
                    example: My Fansly
                  status:
                    type: string
                    example: verifying
                  is_authenticated:
                    type: boolean
                    example: false
                  needs_code:
                    type: boolean
                    example: true
                  twofa_type:
                    type: integer
                    example: 2
                  masked_email:
                    type: string
                    example: t**@e*****.com
                  last_error:
                    type: string
                    example: null
                    nullable: true
                  fansly_user_data:
                    type: string
                    example: null
                    nullable: true
      tags:
        - Connect Fansly Account
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                code:
                  type: string
                  description: The verification code from the creator's email or authenticator
                    app.
                  example: "123456"
              required:
                - code
components:
  securitySchemes:
    default:
      type: http
      scheme: bearer
      description: Get your API Key from OnlyFansAPI Console -
        https://app.onlyfansapi.com/api-keys
````