> ## Documentation Index
> Fetch the complete documentation index at: https://venator-06aff335.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Fingerprint Match (One to One)

Verify whether two fingerprint samples belong to the same individual. The service performs biometric fingerprint comparison and returns a similarity score indicating the confidence of the match.

<div
  style={{
display: "inline-flex",
alignItems: "center",
background: "#fff",
borderRadius: "12px",
padding: "16px 24px",
border: "1px solid #e5e7eb",
boxShadow: "0 1px 3px rgba(0,0.05)",
fontFamily: "monospace",
gap: "16px"
}}
>
  <span
    style={{
color: "#2563eb",
fontWeight: "700",
fontSize: "18px",
letterSpacing: "0.5px"
}}
  >
    POST
  </span>

  <span
    style={{
fontSize: "14px",
color: "#4b5563"
}}
  >
    /api/gw/services/fingerprint\_match
  </span>
</div>

***

### Authorizations

<ResponseField name="x-api-key" type="string" required>
  API key used to authenticate the request.
</ResponseField>

***

### Body

<ResponseField name="fingerprintImage1Base64" type="string" required>
  Base64 encoded first fingerprint image sample.
</ResponseField>

<ResponseField name="fingerprintImage2Base64" type="string" required>
  Base64 encoded second fingerprint image sample to compare.
</ResponseField>

<ResponseField name="fingerprintImage1FileName" type="string">
  File name of the first fingerprint image.
</ResponseField>

<ResponseField name="fingerprintImage2FileName" type="string">
  File name of the second fingerprint image.
</ResponseField>

***

### Response

<Tabs>
  <Tab title="200">
    <ResponseField name="success" type="boolean">
      Indicates whether the request was processed successfully.
    </ResponseField>

    <ResponseField name="requestId" type="string">
      Unique identifier for the API request.
    </ResponseField>

    <ResponseField name="correlationId" type="string">
      Identifier used for tracing the request across systems.
    </ResponseField>

    <ResponseField name="data" type="object">
      Contains fingerprint comparison results.
    </ResponseField>

    <ResponseField name="data.match" type="boolean">
      Indicates whether both fingerprint samples belong to the same individual.
    </ResponseField>

    <ResponseField name="data.similarityScore" type="number">
      Similarity score between both fingerprint samples (0 to 1).
    </ResponseField>

    <ResponseField name="data.confidenceScore" type="number">
      Confidence score of the fingerprint verification result (0 to 1).
    </ResponseField>

    <ResponseField name="error" type="object | null">
      Contains error details if the request fails; otherwise null.
    </ResponseField>

    <ResponseField name="durationMs" type="number">
      Time taken to process the request in milliseconds.
    </ResponseField>

    <ResponseField name="processedAt" type="string">
      Timestamp when the request was processed (ISO 8601 format).
    </ResponseField>
  </Tab>

  <Tab title="400">
    <ResponseField name="error" type="string">
      Error message returned when fingerprint matching fails.
    </ResponseField>
  </Tab>
</Tabs>

***

<RequestExample>
  ```bash Curl theme={null}
  curl -X POST "https://dev-idf-gw.cognetlabs.org/api/gw/services/fingerprint_match" \
  -H "Content-Type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{
    "fingerprintImage1Base64": "<base64-fingerprint-1>",
    "fingerprintImage2Base64": "<base64-fingerprint-2>",
    "fingerprintImage1FileName": "fingerprint_1.png",
    "fingerprintImage2FileName": "fingerprint_2.png"
  }'
  ```

  ```python Python theme={null}
  import requests

  url = "https://dev-idf-gw.cognetlabs.org/api/gw/services/fingerprint_match"

  headers = {
      "Content-Type": "application/json",
      "x-api-key": "YOUR_API_KEY"
  }

  payload = {
      "fingerprintImage1Base64": "<base64-fingerprint-1>",
      "fingerprintImage2Base64": "<base64-fingerprint-2>",
      "fingerprintImage1FileName": "fingerprint_1.png",
      "fingerprintImage2FileName": "fingerprint_2.png"
  }

  res = requests.post(url, json=payload, headers=headers)

  print(res.json())
  ```

  ```javascript JavaScript theme={null}
  fetch("https://dev-idf-gw.cognetlabs.org/api/gw/services/fingerprint_match", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
      "x-api-key": "YOUR_API_KEY"
    },
    body: JSON.stringify({
      fingerprintImage1Base64: "<base64-fingerprint-1>",
      fingerprintImage2Base64: "<base64-fingerprint-2>",
      fingerprintImage1FileName: "fingerprint_1.png",
      fingerprintImage2FileName: "fingerprint_2.png"
    })
  })
  .then(res => res.json())
  .then(console.log);
  ```

  ```php PHP theme={null}
  <?php
  $url = "https://dev-idf-gw.cognetlabs.org/api/gw/services/fingerprint_match";

  $data = [
    "fingerprintImage1Base64" => "<base64-fingerprint-1>",
    "fingerprintImage2Base64" => "<base64-fingerprint-2>",
    "fingerprintImage1FileName" => "fingerprint_1.png",
    "fingerprintImage2FileName" => "fingerprint_2.png"
  ];

  $options = [
    "http" => [
      "header"  => "Content-Type: application/json\r\nx-api-key: YOUR_API_KEY",
      "method"  => "POST",
      "content" => json_encode($data),
    ],
  ];

  $context = stream_context_create($options);
  $result = file_get_contents($url, false, $context);

  echo $result;
  ?>
  ```

  ```go Go theme={null}
  package main

  import (
  	"bytes"
  	"net/http"
  )

  func main() {

  	jsonData := []byte(`{
  		"fingerprintImage1Base64":"<base64-fingerprint-1>",
  		"fingerprintImage2Base64":"<base64-fingerprint-2>",
  		"fingerprintImage1FileName":"fingerprint_1.png",
  		"fingerprintImage2FileName":"fingerprint_2.png"
  	}`)

  	req, _ := http.NewRequest(
  		"POST",
  		"https://dev-idf-gw.cognetlabs.org/api/gw/services/fingerprint_match",
  		bytes.NewBuffer(jsonData),
  	)

  	req.Header.Set("Content-Type", "application/json")
  	req.Header.Set("x-api-key", "YOUR_API_KEY")

  	client := &http.Client{}
  	client.Do(req)
  }
  ```

  ```java Java theme={null}
  import okhttp3.*;

  public class Main {
      public static void main(String[] args) throws Exception {

          OkHttpClient client = new OkHttpClient();

          String json = "{\"fingerprintImage1Base64\":\"<base64-fingerprint-1>\", \"fingerprintImage2Base64\":\"<base64-fingerprint-2>\", \"fingerprintImage1FileName\":\"fingerprint_1.png\", \"fingerprintImage2FileName\":\"fingerprint_2.png\" }";

          RequestBody body = RequestBody.create(
              json,
              MediaType.parse("application/json")
          );

          Request request = new Request.Builder()
              .url("https://dev-idf-gw.cognetlabs.org/api/gw/services/fingerprint_match")
              .addHeader("x-api-key", "YOUR_API_KEY")
              .post(body)
              .build();

          Response response = client.newCall(request).execute();

          System.out.println(response.body().string());
      }
  }
  ```

  ```ruby Ruby theme={null}
  require 'net/http'
  require 'uri'
  require 'json'

  uri = URI.parse("https://dev-idf-gw.cognetlabs.org/api/gw/services/fingerprint_match")

  header = {
    'Content-Type': 'application/json',
    'x-api-key': 'YOUR_API_KEY'
  }

  payload = {
    fingerprintImage1Base64: "<base64-fingerprint-1>",
    fingerprintImage2Base64: "<base64-fingerprint-2>",
    fingerprintImage1FileName: "fingerprint_1.png",
    fingerprintImage2FileName: "fingerprint_2.png"
  }

  http = Net::HTTP.new(uri.host, uri.port)

  request = Net::HTTP::Post.new(uri.request_uri, header)
  request.body = payload.to_json

  response = http.request(request)

  puts response.body
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "success": true,
    "requestId": "fp123456",
    "correlationId": "58664e8f17d1452ea3b171e7a90e09bf",
    "data": {
      "match": true,
      "similarityScore": 0.94,
      "confidenceScore": 0.97
    },
    "error": null,
    "durationMs": 350,
    "processedAt": "2026-04-29T13:59:35.9472104Z"
  }
  ```

  ```json 400 theme={null}
  {
    "error": "FingerprintImage1Base64 is required"
  }
  ```
</ResponseExample>
