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

# Perform Face Compare

> Perform face comparison between two images. Requires Bearer token and domain ID. Use the following URLs depending on your environment:
  - Demo: https://d1.cynopsis.co
  - Production: https://util.cynopsis.co




## OpenAPI

````yaml /openapi/ares_openapi.yaml post /service/facecompare
openapi: 3.0.0
info:
  title: Cynopsis CRM OAuth2 Token API
  version: '1.0'
servers:
  - url: https://d1.cynopsis.co
    description: Demo Service API URL
  - url: https://util.cynopsis.co
    description: Production Service API URL
security: []
paths:
  /service/facecompare:
    post:
      summary: Perform Face Compare
      description: >
        Perform face comparison between two images. Requires Bearer token and
        domain ID. Use the following URLs depending on your environment:
          - Demo: https://d1.cynopsis.co
          - Production: https://util.cynopsis.co
      parameters:
        - name: X-Domain-Id
          in: header
          required: true
          schema:
            type: string
          description: Domain ID
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                file0:
                  type: string
                  format: binary
                  description: Selfie image file
                file1:
                  type: string
                  format: binary
                  description: Document image file
              required:
                - file0
                - file1
      responses:
        '201':
          description: Face Compare Result
          content:
            application/json:
              schema:
                type: object
                properties:
                  task_id:
                    type: string
                    example: cde65789-3a79-43e9-b774-e6d9a1880250
                  status:
                    type: string
                    example: MATCHED
                  status_task:
                    type: string
                    example: SUCCESS
                  result:
                    type: object
                    properties:
                      simiarity:
                        type: number
                        format: float
                        example: 0.9
                      matched:
                        type: boolean
                        example: true
                      error:
                        type: string
                        example: ''
                example:
                  task_id: cde65789-3a79-43e9-b774-e6d9a1880250
                  status: MATCHED
                  status_task: SUCCESS
                  result:
                    simiarity: 0.9
                    matched: true
                    error: ''
        '400':
          description: Invalid request
        '401':
          description: Unauthorized
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````