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

# Get Face Match Session



## OpenAPI

````yaml facematch-openapi.json GET /liveness/session
openapi: 3.0.0
info:
  title: Verisoul Face Match API
  description: >-
    Face Match is a Verisoul platform add-on that uses facial biometrics to
    match and deduplicate users, while ensuring they're humans. It can be used
    for step-up authentication or verification processes.


    FaceMatch offers two primary workflows:

    - **Authentication (1-1)**: Match a user with an enrolled account to ensure
    it's the same person

    - **Uniqueness (1-N)**: Deduplicate users to verify a user is unique


    For users, the process takes about thirty seconds, works on any
    device/language, and does not require an ID.

    For developers, FaceMatch can be integrated within a couple hours of one
    developer's time.
  version: 1.0.0
  contact:
    name: Verisoul Support
    url: https://verisoul.ai
    email: support@verisoul.ai
servers:
  - url: https://api.sandbox.verisoul.ai
    description: Sandbox server
security:
  - ApiKeyAuth: []
paths:
  /liveness/session:
    get:
      tags:
        - Session
      summary: Get Face Match Session
      description: >-
        Get a new session for Face Match verification. This is the first step in
        the Face Match workflow.
      operationId: createFaceMatchSession
      parameters:
        - name: account_id
          in: query
          description: >-
            Your identifier for the user's account. If provided, the session is
            linked to the account automatically when it completes, enabling
            multi-accounting detection and account-level features (lists, rules)
            on the verify response. Must be a non-empty string. See [Account
            ID](/verifications/face-match/integration/initialize-session#account-id)
            for more information.
          required: false
          schema:
            type: string
        - name: referring_session_id
          in: query
          description: ID of a referring session, if applicable
          required: false
          schema:
            type: string
            format: uuid
        - name: simulate
          in: query
          description: >-
            See [Simulate Face
            Match](/verifications/face-match/resources/simulate-face-match) for
            more information
          required: false
          schema:
            type: string
        - name: simulate_decision
          in: query
          description: >-
            Sandbox only. With `simulate=success`, the decision returned by the
            verify endpoint and the completion webhook. One of `Real`,
            `Suspicious`, `Fake`. If you pass only this, `risk_score` defaults
            to 0.1 (`Real`), 0.5 (`Suspicious`) or 0.9 (`Fake`). See [Simulate
            Face Match](/verifications/face-match/resources/simulate-face-match)
            for more information
          required: false
          schema:
            type: string
            enum:
              - Real
              - Suspicious
              - Fake
        - name: simulate_risk_score
          in: query
          description: >-
            Sandbox only. With `simulate=success`, the `risk_score` returned by
            the verify endpoint and the completion webhook. A number from 0 to
            1. Passed through as given; it is not checked against
            `simulate_decision`
          required: false
          schema:
            type: number
            minimum: 0
            maximum: 1
        - name: simulate_risk_flags
          in: query
          description: >-
            Sandbox only. With `simulate=success`, the `risk_flags` returned by
            the verify endpoint and the completion webhook. A comma-separated
            list of up to 20 lowercase snake_case flag names, for example
            `vpn_detected,repeat_face`. If you pass `simulate_decision` or
            `simulate_risk_score` without this, `risk_flags` is empty
          required: false
          schema:
            type: string
      responses:
        '200':
          description: Session created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionResponse'
              example:
                request_id: db4ad346-e8f1-46cc-922d-f89ca8fb7ac7
                session_id: 00022912-cbaa-4239-a3ec-51c32fcc0fc1
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                type: object
                properties:
                  request_id:
                    type: string
                    format: uuid
                    description: Unique identifier for the request
                  success:
                    type: boolean
                    description: Indicates whether the request was successful
                  error:
                    type: string
                    enum:
                      - groups_enabled
                      - invalid_account_id
                    description: Error code indicating the reason for failure
              example:
                request_id: e6f078a5-7931-4c41-ad53-1ef35a4ca762
                success: false
                error: groups_enabled
components:
  schemas:
    SessionResponse:
      type: object
      properties:
        request_id:
          type: string
          format: uuid
          description: Unique identifier for the request
        session_id:
          type: string
          format: uuid
          description: Unique identifier for the session
      required:
        - request_id
        - session_id
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: API key authentication

````

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