Developers

Live in three steps.

One proxy rule, one script tag and one backend call. Your own code decides what to do with every visit.

Setup

Three changes to your site

The script, its endpoints and its cookie run from your own domain. The cookie is set by your server, so Safari's seven-day cap on cookies written by scripts does not apply to it.

  1. Step 1

    One proxy rule

    Your nginx or Caddy forwards /kp/ to knownprint. Only knownprint's own cookie goes through; your session cookies stay where they are.

    nginx, inside your site's TLS server block
    # Inside your site's TLS server block. Signup (coming) gives you this
    # file and a one-line include for your http block, with your upstream
    # and proxy secret.
    include /etc/nginx/snippets/knownprint.conf;
    Caddy, inside your site block
    import knownprint
  2. Step 2

    One script tag, and the request id posted with the form

    The page gets a request id, never the visitor id or the confidence, so there is no answer in the page to tamper with. If a blocker stops the script, the form arrives without one: treat that as unknown, not a pass.

    Your page
    <script src="/kp/agent.js" defer></script>
    
    // PUBLIC_KEY is your environment's public key (pk_live_...).
    const agent = await window.knownprint.load({ pk: PUBLIC_KEY, profile: 'security' });
    const { requestId } = await agent.identify();
    form.elements.kp_request_id.value = requestId; // posted with the form
  3. Step 3

    One call in your backend

    Read the visit with your secret key. Your own code decides what to do with it.

    HTTP, live today
    GET /v1/events/evt_q3vx7k2mz4rb6nw5tc2ehj7ypd
    Authorization: Bearer <your secret key>
    Node SDK, coming with the SDK release
    const event = await kp.verifyRequestId(await kp.events.get(requestId), { origin, ip });

The answer

What your backend reads

One call with your secret key returns the whole visit. Everything below is live today.

PartFieldWhat it tells you
Visitor idvisitor_idOne id per browser, the same when it comes back, with or without its cookie, in a private window or behind another network, whenever knownprint is sure enough.
How sureconfidenceHow sure knownprint is of the match, as a probability. When it is not sure, it starts a new visitor id instead of guessing.
Lookalikesanonymity_set_sizeHow many browsers look like this one, so a common setup is never mistaken for a sure match.
Likely earlier visitorhigh_recall_idWhen knownprint will not link, the likely earlier visitor, if there is one, as a lead for your review with its own probability.
Device clusterdevice_cluster_id cluster_confidenceWhat is probably a second browser on the same device. coming
Browser and systembrowserThe browser, engine and operating system, as knownprint classified them.
Network and countrynetwork.ip network.ip_prefix network.country network.asnThe address and network block of the visit, the country the address is used in and the network operator behind it.
Each signalsignals.bot signals.vpn signals.tampering and the restBots, private windows, VPNs and relays, proxies, Tor, tampering, virtual machines, developer tools, privacy settings and high activity, each with its detail.
Replayed or forgedintegrityCatches replayed and forged requests.
Suspect scoresignals.suspect_score detail.partsOne number from 0 to 100 that adds up the signals of the visit, with what each adds, so your code can act on one threshold.

Send your own account id with each request, and knownprint keeps which accounts each browser has used and which browsers each account has used. Search every visit by browser, account or address with GET /v1/events.

Webhooks

Your server hears it as it happens

knownprint calls your endpoint, and tries each delivery eight times before it gives up.

knownprint calls you when

  • A browser is identified.
  • Visitors are merged into one.
  • A visitor is split.
  • A visitor is deleted.
  • A browser turns up with another account, or an account on a new browser.

Limits and data

Rate limits, deletion and retention

The same rate limit on every key, and one call to delete a visitor's data when a user asks.

  • Every key gets 50 requests a second, with a burst of 150.
  • Past the limit, the answer tells your code when to try again.
  • One call deletes a visitor's data, and the job finishes within minutes.
  • The answer is the same whether or not a record exists.
  • A one-way record of the deletion is kept for 30 days, so the deleted browser is not recognised again and its old cookie no longer counts.

Retention on the live demo

Every event is recorded for security only. No advertising use, ever. Customer retention by plan coming.

WhatKept for
One security event per visit30 days
Raw values90 days
A record of the browser's characteristicsUntil 400 days pass without a visit
The cookieUp to 400 days

SDKs

SDKs for Node, Go, Python and PHP

coming

Until they ship, any backend reads every visit with the HTTP call in step 3.

  • Node

    coming

  • Go

    coming

  • Python

    coming

  • PHP

    coming

Every signal, by name, on the demo site

Wire it up when signup opens.

One email when you can sign up, with the price list in it. Until then, read your own browser on the live demo.