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

# List 2FA verification events

> Returns the lifecycle events of the 2FA verification identified by `session_id`, such as number lookup and code delivery.



## OpenAPI

````yaml https://wavix.github.io/wavix-openapi/wavix-api.yaml get /v1/two-fa/session/{session_id}/events
openapi: 3.1.0
info:
  title: Wavix APIs
  description: >-
    Wavix provides robust APIs that let you integrate voice and text messaging
    features directly into your app. Send text, place calls, and access detailed
    reports  programmatically.
  termsOfService: https://wavix.com/terms-and-conditions
  license:
    name: MIT
    identifier: MIT
  contact:
    name: Wavix
    url: https://wavix.com
    email: support@wavix.com
  version: '1.0'
servers:
  - url: https://api.wavix.com
    description: https://api.wavix.com
    variables: {}
security:
  - bearerAuth: []
tags:
  - name: SIP trunks
    description: SIP trunks
  - name: Buy
    description: Numbers
  - name: Cart
    description: Numbers
  - name: My numbers
    description: Numbers
  - name: Billing
    description: Billing, transactions, and invoices
  - name: Profile
    description: Account profile and customer information
  - name: CDRs
    description: Call detail records and call history
  - name: Speech Analytics
    description: Call transcription and speech analytics
  - name: SMS and MMS
    description: Messaging
  - name: Number Validator
    description: Phone number validation
  - name: Link shortener
    description: Short link and click metrics
  - name: 2FA
    description: Two-factor authentication
  - name: 10DLC
    description: 10DLC Campaigns and Brands
  - name: API Keys
    description: API key management
  - name: Call webhooks
    description: Webhook configuration for call events
  - name: Call control
    description: Programmable Voice
  - name: Call streaming
    description: Real-time call audio streaming over WebSocket
  - name: Call recording
    description: Call recording
  - name: Sub-accounts
    description: Sub-account management
  - name: Voice campaigns
    description: Outbound voice campaigns
  - name: Wavix Embeddable
    description: WebRTC embeddable widget
paths:
  /v1/two-fa/session/{session_id}/events:
    get:
      tags:
        - 2FA
      summary: List 2FA verification events
      description: >-
        Returns the lifecycle events of the 2FA verification identified by
        `session_id`, such as number lookup and code delivery.
      operationId: two_fa_events_list
      parameters:
        - name: session_id
          in: path
          description: The unique ID of the 2FA verification session.
          required: true
          style: simple
          schema:
            type: string
            example: 8753d4308f2e11ecb75fcdafd6d2d690
      responses:
        '200':
          description: Returns the list of 2FA verification events.
          headers: {}
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/TwoFactorVerificationEvent'
                example:
                  - created_at: '2022-02-16T13:41:38.000Z'
                    event: Number lookup
                    status: success
                    charge: '0.005'
                    error: null
                  - created_at: '2022-02-16T13:41:38.000Z'
                    event: Code sent via SMS
                    status: success
                    charge: '0.005'
                    error: null
              examples:
                default:
                  value:
                    - created_at: '2022-02-16T13:41:38.000Z'
                      event: Number lookup
                      status: success
                      charge: '0.005'
                      error: null
                    - created_at: '2022-02-16T13:41:38.000Z'
                      event: Code sent via SMS
                      status: success
                      charge: '0.005'
                      error: null
        '403':
          $ref: '#/components/responses/ForbiddenErrorResponse'
        '404':
          description: Returns when no verification matches `session_id`.
          headers: {}
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/RecordNotFoundErrorResponse'
              examples:
                default:
                  value:
                    success: false
                    message: >-
                      2FA verification session with
                      ID=1c7d5259092eb11f083eed7e070f20a2b cannot be found
      deprecated: false
      security:
        - bearerAuth:
            - two_fa:read
components:
  schemas:
    TwoFactorVerificationEvent:
      title: TwoFactorVerificationEvent
      required:
        - created_at
        - event
        - status
        - charge
        - error
      type: object
      additionalProperties: false
      properties:
        created_at:
          type: string
          description: Date and time of the event
          format: date-time
          example: '2022-02-16T13:41:38.000Z'
        event:
          type: string
          description: >-
            Human-readable event description. One of the following values:

            - `Number lookup` — the Wavix platform checked whether the
            destination phone number is valid. Returned only when number
            validation is enabled for the 2FA Service.

            - `Code sent via SMS` — a code was sent via SMS.

            - `Code sent via voice` — a code was sent via a voice call.

            - `Verification` — a code verification attempt.
          example: Code sent via SMS
        status:
          type: string
          description: >-
            Status of an action associated with the event. Can be either
            `success`, `failed`, or `pending`.
          example: success
        charge:
          type: string
          description: Cost of an operation associated with the event, in USD
          example: '0.005'
        error:
          type:
            - string
            - 'null'
          description: Error description, if any
    RecordNotFoundErrorResponse:
      title: RecordNotFoundErrorResponse
      required:
        - success
        - message
      type: object
      properties:
        success:
          type: boolean
          description: >-
            Indicates whether the request was successful. Always `false` for
            this error.
          example: false
        message:
          type: string
          description: Human-readable error description
          example: Record not found
      example:
        success: false
        message: Record not found
    ForbiddenErrorResponse:
      title: ForbiddenErrorResponse
      type: object
      properties:
        success:
          type: boolean
          description: >-
            Indicates whether the request was successful. Always `false` for
            this error.
          example: false
        message:
          type: string
          description: Human-readable description of why access is forbidden.
          example: The service is not provisioned for your account.
  responses:
    ForbiddenErrorResponse:
      description: Request failed. The feature is disabled for your account.
      headers: {}
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ForbiddenErrorResponse'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >
        Wavix API key. Pass as `Authorization: Bearer <api_key>`. Keys support
        per-resource scopes (none / read / write). See [Restricted keys and
        scopes](https://docs.wavix.com/api-reference/authentication#restricted-keys-and-scopes).

````