Skip to main content

How to install

Add @fingerprint/node-sdk as a dependency to your application via npm or yarn.
Bash
npm install @fingerprint/node-sdk
bash
yarn add @fingerprint/node-sdk
Initialize the client instance and use it to make API requests. You need to specify your secret API key and region.
TypeScript
import { FingerprintServerApiClient, Region } from "@fingerprint/node-sdk";

const client = new FingerprintServerApiClient({
  apiKey: "SECRET_API_KEY",
  region: Region.Global,
});

// Search events for a specific visitor
client.searchEvents({ visitor_id: "VISITOR_ID" }).then((events) => {
  console.log(events);
});

// Get a specific identification event
client.getEvent("EVENT_ID").then((event) => {
  console.log(event);
});

Documentation

You can find the full documentation in the official GitHub repository.