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

# Get two-factor authentication status

> Shows whether two-factor authentication is enabled on your account and when a second factor was last verified.



## OpenAPI

````yaml /spec/platform-auth.yaml get /v1/me/two-fa
openapi: 3.0.1
info:
  title: Authentication & Account
  version: 1.0.0
  description: >-
    Log in, issue API tokens, change or reset your password, set up two-factor
    authentication, verify your email address and phone number, and manage your
    account profile and billing contact details.
servers:
  - url: https://api.liara.ir
security:
  - bearerAuth: []
tags:
  - name: Login
    description: Exchange your credentials or a one-time code for an API token.
  - name: Registration
    description: Create a new account.
  - name: Password
    description: Change your password while logged in, or reset a forgotten one.
  - name: API Tokens
    description: Issue additional API tokens for your account.
  - name: Account
    description: Read and update your profile and billing contact details.
  - name: Two-Factor Authentication
    description: Set up and manage authenticator-app (TOTP) two-factor authentication.
  - name: Verification
    description: Verify, or change, your account's email address and phone number.
paths:
  /v1/me/two-fa:
    get:
      tags:
        - Two-Factor Authentication
      summary: Get two-factor authentication status
      description: >-
        Shows whether two-factor authentication is enabled on your account and
        when a second factor was last verified.
      operationId: getTwoFAStatus
      responses:
        '200':
          description: Two-factor authentication status.
          content:
            application/json:
              schema:
                type: object
                properties:
                  twoFA:
                    type: boolean
                    description: Whether two-factor authentication is enabled.
                  lastTwoFAVerifiedAt:
                    type: string
                    format: date-time
                    description: >-
                      When a second factor was last verified. Omitted when
                      two-factor authentication is disabled.
              example:
                twoFA: true
                lastTwoFAVerifiedAt: '2026-01-01T08:00:00.000Z'
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  responses:
    Unauthorized:
      description: The API token is missing, invalid or expired.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/AuthError'
          example:
            error: Unauthorized.
  schemas:
    AuthError:
      type: object
      description: Error body returned when the API token is rejected.
      properties:
        error:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Send your API token as `Authorization: Bearer <api-token>`. Tokens
        expire (30 days by default) and stop working when you change or reset
        your password.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.