Help
Frequently asked questions
Short answers to the questions developers and fraud teams ask most about knownprint, from blockers and private windows to request ids, merges, deletion and signup.
Each answer is short and links to the page that covers the topic in full. If a term is new to you, the glossary defines it.
Getting started
Can I sign up today?
Not yet. knownprint is in early access: signup is not open, and keys come with an account. Join early access at https://knownprint.com for one email when signup opens, with the price list in it. Until then you can run the live demo on your own browser from the same site.
How much does knownprint cost?
Pricing comes with signup. Plans will differ in volume, retention, webhooks, environments and team members, never in the signals or the answers you get, and you never need a sales call to see a price. The price list reaches the early access list first, at https://knownprint.com.
What do I need to change on my site?
Three things:
- A proxy rule on your own server that forwards the
/kp/path of your site to knownprint. See Run knownprint from your domain, with recipes for nginx, Caddy and Cloudflare. - One script tag,
/kp/agent.js, on the pages you protect, and a call toidentify()that puts a request id into your form or request. See the browser agent and forms. - One call from your backend that reads the event for that request id with your secret key. See Verify a request in your backend.
The quickstart walks through all three, and go live is the checklist before you switch to live keys.
Where is the API? What address do I call?
The API address comes with your account. These docs write it as $KNOWNPRINT_API:
curl "$KNOWNPRINT_API/v1/events/$REQUEST_ID" \
-H "Authorization: Bearer $KNOWNPRINT_SECRET_KEY"The browser never calls that address directly: the script and its calls go through the /kp/ path of your own site.
Which SDKs are there?
Your backend needs only HTTP: one authenticated GET returns the whole event, and every route is in the API reference. In the browser you load /kp/agent.js from your own domain, as described in the browser agent.
Are there test keys?
Yes. Every account has two environments, live and test, each with its own environment id (env_...), its own keys and its own data. Test keys start pk_test_ and sk_test_; live keys start pk_live_ and sk_live_. Use the test environment for development and staging, so your test traffic never mixes with your live visitors, and switch the keys when you go live. Keys and their scopes are covered in API keys.
Can I run knownprint on localhost or a staging host?
Yes, as long as the page's origin is in the public key's allowed origins. The origin is compared exactly, scheme, host and port included, so http://localhost:3000 and https://staging.example.com are two separate entries. A page whose origin is not listed is refused with 403 and the error origin_not_allowed. Use a test public key for these origins. See API keys and errors.
In the browser
What happens when an ad blocker or content blocker stops the script?
The form or request arrives at your backend without a request id. Treat that as unknown, not as a pass: decide in your own code what an action without a request id may do (for example, allow a login but ask for a second factor, or hold a payment for review). knownprint never changes its paths to slip past filter lists. Running from your own domain through the proxy rule keeps the script, its identification requests and its cookie first party.
Does knownprint recognise a browser in a private window?
Often, yes. A browser keeps the same visitor id with or without its cookie, in a private window or behind another network, whenever knownprint is sure enough. When it is not sure, it starts a new visitor id rather than guess. Separately, the incognito signal tells you when a visit comes from a private window, so your code can weigh it. See visitors and browser signals.
What about VPNs, proxies and Tor?
A visitor id does not depend on the network: the same browser behind a VPN keeps its visitor id whenever knownprint is sure enough. What the network looks like is reported by its own signals: vpn (with detail.kind telling a VPN service from a privacy relay, Tor or a datacenter), proxy, tor, datacenter and ip_blocklist, plus the country and network operator in ip_geolocation. Whether a VPN is acceptable is your decision; many honest users run one. See network signals.
Does it work in Safari?
Yes. Serve /kp/ from your own site, as the install pages describe, so the script, its requests and its cookie are first party there as in every browser. Safari's privacy modes and Lockdown Mode show up in the privacy_settings signal, and the event's browser block names the browser, engine and system. See browser signals.
How do I use knownprint in a single page app?
Call load() once, when your app starts, and keep the agent it resolves. Then call identify() at each action you protect (sign up, log in, checkout, password reset) and send the request id with that action's API call. If a blocker stopped /kp/agent.js, window.knownprint is not defined, so check for it before you call load():
// Once, when the app starts. Resolves null when the script is blocked or fails to load.
const agentReady = window.knownprint
? window.knownprint.load({ pk: 'pk_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' }).catch(() => null)
: Promise.resolve(null);
async function signIn(email, password) {
let requestId = null;
try {
const agent = await agentReady;
if (agent) ({ requestId } = await agent.identify());
} catch {
// Blocked or unreachable: send the request without one.
}
return fetch('/api/sign-in', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ email, password, kp_request_id: requestId }),
});
}Each identify() gives a fresh request id, and each request id is meant to be used once. See the browser agent and the Web SDK reference.
Should I call identify() on every page view?
No. knownprint is built to run on account events: the actions where a decision matters, such as signups, logins, payments and redemptions. Calling it on every page view adds nothing to those decisions and spends your rate limits: one address may make 30 identifications a minute, and one browser 60. See limits.
How much latency does it add?
Each identify() collects for at most about 2.5 seconds, sooner when every reading is done, then sends what it has through your /kp/ path and resolves with the answer. Call load() early (when the page or app starts) so the script is loaded before the user acts. If you wrap a form, set a timeout after which the form is sent without a request id, so a slow network never holds the user back; the forms guide shows how. In your backend, reading an event is one GET; give it a timeout of its own.
Why does the page get a request id and not the visitor id?
So there is no answer in the page for anyone to tamper with. The page only learns a request id (evt_...) and when it expires. Your backend reads the visitor id, the confidence and every signal with your secret key, which never leaves your server. See events.
In your backend
How long is a request id valid?
identify() resolves expiresAt beside the request id, 10 seconds after knownprint received the identification. Treat a request id as a one-time ticket: read its event as soon as it reaches your backend, check that it is fresh (its received_at within those 10 seconds), and accept it once. Remember the ids you have accepted for at least that long so a second use is refused. The event itself stays readable with GET /v1/events/{request_id} for your retention period, for review, search and support. See Verify a request in your backend.
How do I know a request id was not replayed or taken from another site?
Read the event's integrity block. integrity.replayed is true when this identification was sent before: refuse it. integrity.origin is the origin the page ran on: compare it with your own. You can also compare network.ip with the end user's address as your own proxy reports it. Accept each request id only once. See events and integrity signals.
What should my code do with the answer?
knownprint answers and your code decides. A common pattern is to read confidence, visitor_id and signals.suspect_score.value, then pick an action per event type: allow, ask for a second factor, hold for review or refuse. The suspect score adds up the signals of a visit into one number from 0 to 100, so you can start with one threshold and refine it per signal later. See the suspect score and the guides.
Why is a signal null?
A signal is null when it could not be read on that visit. Treat null as unknown, never as false. The signals overview lists every signal and when it can be absent.
What happens if knownprint is down or slow?
Plan for it as you would for any dependency:
- In the page,
identify()rejects with aKnownprintErrorwhosecodeisnetwork,load_failed,challenge_failedoridentify_failed. Send the action without a request id, as with a blocker. - In your backend, give the
GET /v1/events/{request_id}call a short timeout. If it fails, decide per action whether to fail open (let a login through) or fail closed (hold a payment), exactly as you treat a missing request id.
async function readEvent(requestId) {
if (!/^evt_[a-z2-7]{26}$/.test(requestId ?? '')) return null;
try {
const res = await fetch(`${process.env.KNOWNPRINT_API}/v1/events/${requestId}`, {
headers: { Authorization: `Bearer ${process.env.KNOWNPRINT_SECRET_KEY}` },
signal: AbortSignal.timeout(3000),
});
return res.ok ? await res.json() : null;
} catch {
return null; // Unreachable or too slow: treat as unknown.
}
}GET $KNOWNPRINT_API/health needs no key and answers 200 with ok true while the service is healthy, and 503 with ok false when it is not.
What are the rate limits?
Every key gets 50 requests a second, with a burst of 150. From one address, knownprint takes 30 identifications and 60 challenges a minute; one browser may make 60 identifications a minute; each key may send 2 deletion requests a second; and one address may fail secret-key authentication 30 times a minute. Past a limit the answer is 429 with the error rate_limited and a Retry-After header that tells your code when to try again. See limits.
What is the difference between a visitor id and a linked id?
A visitor id (v_...) is knownprint's id for one browser on one device. A linked id is your own id for the account behind a request, which you attach to an event (up to 128 characters). Together they tell you every account a browser has used and every browser an account has used. Set it from your backend with PATCH /v1/events/{request_id} once you know who the user is. See accounts and linked ids.
Why does the same person have two visitor ids?
A visitor id names one browser on one device, so the same person on a phone and a laptop, or in Chrome and Firefox on one computer, has one id per browser. Within one browser, knownprint starts a new id when it is not sure enough to match. When it holds back from a match it may name a likely earlier visitor in high_recall_id as a lead for your review. Device clusters, which will group visitors that are probably other browsers on the same device in device_cluster_id, are coming: the field is null today. Until then, your own account id as the linked id connects a person's browsers. See visitors.
Can a visitor id change? What is a merge?
knownprint never renumbers an id it gave you, but it can learn later that two visitor ids are one browser. Then it merges them: the older id survives, the other becomes its alias, and the visitor.merged webhook tells you. It can also undo a merge (visitor.unmerged), split a browser off to a new visitor (visitor.split), or suggest that a past visitor may be another one without changing any id (visitor.suggested). Store the visitor id beside your records and resolve it with GET /v1/visitors/{visitor_id}, which answers the surviving visitor for any alias. See visitors and webhooks.
Do I have to poll, or can knownprint call me?
knownprint can call you. Register a webhook URL for the event types you want: a browser identified, visitors merged, unmerged, split or suggested, a visitor deleted, and an account seen on a new browser or a browser with a new account. Each delivery is signed and gets up to eight attempts, the last 72 hours after the first. See webhooks and verify a webhook.
Can I tell knownprint when it got something right or wrong?
Yes. Label an event fraud or legit with POST /v1/events/{request_id}/feedback, with an optional note of up to 1,000 characters. See feedback.
Data and privacy
How do I delete a user's data?
Call DELETE /v1/visitors/{visitor_id} to delete a browser's visitor and its events, or DELETE /v1/linked/{linked_id} to remove one of your account ids from every event and delete the visitors that carried no other account id, with a secret key that holds the visitors:delete scope. The answer is 202 with a deletion job (del_...), the same whether or not a record exists, and the job finishes within minutes. 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. To remove the token from the browser as well, call agent.forget() in the page and expire knownprint's cookie from your server in the same flow (Forget this browser). See privacy and visitors.
curl -X DELETE "$KNOWNPRINT_API/v1/visitors/$VISITOR_ID" \
-H "Authorization: Bearer $KNOWNPRINT_SECRET_KEY" \
-H "Idempotency-Key: delete-$VISITOR_ID"How long is data kept?
Events are kept for your account's event retention, 90 days by default (between 30 and 365), and the raw values a browser sent for its raw retention, 30 days by default (between 7 and 90). After 30 days an event's network.ip is shortened to its network (the /24 of an IPv4 address, the /48 of an IPv6 address). A visitor record lasts until 400 days pass without a visit, the cookie lives up to 400 days, and a finished webhook delivery is kept for 30 days after its last attempt. Retention by plan comes with signup. See privacy.
Do I need consent to run knownprint?
You are the controller and knownprint is your processor; your own legal advice decides what your notices and consent flows need. knownprint records every event for security only and never for advertising. The script takes a consent mode (security_only by default, consented, or blocked, which collects nothing until you call consent(true)). Each event's consent block records the mode the page set (mode), the mode knownprint applied (effective_mode, security_only today) and whether the browser sent Global Privacy Control (gpc). See privacy and security.
Where do I report a security problem?
Write to security@knownprint.com. See security.