---

title: Privacy for integrators
description: What knownprint processes on your visitors, how long it keeps it, how to delete or hand it over, how consent and Global Privacy Control are handled, and what your privacy notice should say.
---

This page is for the team that adds knownprint to a site: developers, and the people who write the site's privacy notice. It says what knownprint processes about your visitors, for what, for how long, and which calls and settings you use to answer your visitors' requests. It is not legal advice: your own counsel decides what your notices and consent flows need.

:::note Early access
knownprint is in early access and signup is not open yet ("Get early access" at https://knownprint.com). The data processing agreement and the notice templates come with signup. Everything on this page that you can call or configure is live today unless it is marked as coming.
:::

## Who is responsible for what

When you run knownprint on your visitors, **your business is the controller** and **knownprint is your processor**. You decide to run it, on which pages, for which purpose and with which consent mode; knownprint processes the data on your instructions and for the purposes below only.

knownprint works from your own domain. One proxy rule on your site sends a path of your site to knownprint ([proxy setup](/install/proxy)), so the script is served from your domain, its identification requests go through your server, and its cookie is your site's own. The script also reaches the knownprint host your account names (today https://na1.knownprint.com) directly, and your Content Security Policy must allow it ([Content Security Policy](/install/csp)); name that host in your notice too. Your own session cookies never reach knownprint: the proxy configuration forwards knownprint's cookie and nothing else.

Every record belongs to one environment of your account (`env_...`). Visitor ids, events and everything derived from them are kept per environment, and a key of one environment cannot read another environment's data.

## What knownprint processes

knownprint processes the following categories of data about each browser that runs the script on your pages. This list is written at the level a privacy notice needs; the exact readings are listed, with their category and retention, in your [disclosure file](#the-disclosure-file).

| Category                       | What it covers                                                                                                                                                              |
| ------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Device and browser attributes  | Characteristics the browser reports about itself and its device, such as its browser and system, screen, language and time zone.                                            |
| Capability lists               | Which features, formats and settings the browser supports.                                                                                                                  |
| Rendering digests              | Short digests of how the browser draws test content. Never the pixels themselves.                                                                                           |
| Audio scalars                  | A few numbers that describe how the browser processes a test sound. Never any recording.                                                                                    |
| Integrity markers              | Signs of automation, of a tampered browser or of a replayed request.                                                                                                        |
| Network and transport          | The IP address of the request and the network it belongs to.                                                                                                                |
| Identifiers knownprint creates | A request id (`evt_...`) for each identification, a visitor id (`v_...`) for each browser, and a random storage token that lets knownprint recognise the browser next time. |
| Request context                | The page path the identification ran on (without its query string or fragment), the time, and the consent mode and Global Privacy Control flag of the request.              |
| What you send                  | A `linked_id` (your own account id for the visitor, if you send one), your `tags`, and the fraud or legit labels you send as [feedback](/feedback).                         |

From these, knownprint computes the results your backend reads: the visitor id and its confidence, the signals and the suspect score ([events](/events), [signals](/signals)).

knownprint never sends or keeps what visitors type into your forms, the content of your pages, your other cookies or anything from other sites. The page path is stored without its query string, so a token or an email address in a query string is never kept.

### Purposes

knownprint processes this data for three purposes, and these are the only purposes your disclosure file can name:

| Purpose                 | Meaning                                                                                                                           |
| ----------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
| `account_security`      | Protecting accounts and transactions: recognising a returning browser, spotting account takeover, payment fraud and fake signups. |
| `ban_evasion_detection` | Recognising a browser you have banned when it comes back under a new account.                                                     |
| `bot_detection`         | Telling automated clients and tampered browsers from people.                                                                      |

### Security only, never advertising

Every event is recorded for security, and for nothing else. Nothing knownprint records is used for advertising, sold, or shared with anyone for their own purposes. Your visitor ids, events and visitor records belong to your environment alone, and no other customer's key can read them.

## The first-party cookie and the storage token

To recognise a browser when it comes back, knownprint stores a storage token in it: a random value that holds no personal data and that only knownprint can verify. The token is stored in a first-party `HttpOnly` cookie, set through your knownprint path, and in the browser's storage.

**The cookie.** The answer to an identification sets it through your proxy, on your own host. Its attributes:

| Attribute | Value                                                                       |
| --------- | --------------------------------------------------------------------------- |
| Name      | `kp_t`, unless your account names another                                   |
| Domain    | Your page's host only (no `Domain` attribute)                               |
| Path      | `/`                                                                         |
| Lifetime  | `Max-Age=34560000`, which is 400 days, renewed when an answer sets it again |
| Flags     | `HttpOnly`, `Secure`, `SameSite=Lax`                                        |

**The browser's storage.** The script also stores the same token in the browser's storage. [The browser side](#the-browser-side) says how to remove it.

The cookie is `HttpOnly`, so no script on your page can read it, knownprint's included.

## Retention

Two clocks are set for your account: the **event clock** and the **raw clock**. Everything else has a fixed period.

| What is kept                                                                                                                          | How long                                                                                                                   |
| ------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
| Events: the result of each identification (visitor id, confidence, signals, network, browser, consent)                                | The event clock: 30 to 365 days, 90 days by default                                                                        |
| Raw values: the readings the browser sent, kept beside the event                                                                      | The raw clock: 7 to 90 days, 30 days by default                                                                            |
| The full IP address in an event                                                                                                       | 30 days, then cut to its network (the /24 of an IPv4 address, the /48 of an IPv6 address) for the rest of the event's life |
| Keyed one-way hashes of the visitor's address, its network and its network operator, kept with the visitor record                     | Until 400 days pass without the browser being seen there; a hash of a full IPv6 address for about a day                    |
| The visitor record: the browser's characteristics as last seen, and when and how often it was seen                                    | Until 400 days pass without a visit                                                                                        |
| knownprint's cookie                                                                                                                   | Up to 400 days from the last answer that set it                                                                            |
| The token in the browser's storage                                                                                                    | Until the browser removes it, or your page calls `forget()`                                                                |
| Match records: how each identification was decided                                                                                    | The event clock, except the newest record for each storage token, which is kept with the visitor record                    |
| A record used to refuse replayed identifications                                                                                      | 24 hours                                                                                                                   |
| Requests knownprint refused (over a rate limit, a wrong origin): counted with the client's /24 or /48 network, never the full address | The event clock                                                                                                            |
| [Feedback](/feedback) you send on an event: its label and note                                                                        | The event clock                                                                                                            |
| Labelled pairs you record (two request ids you know belong to one person)                                                             | 400 days. They hold no visitor id, linked id, IP address or raw value.                                                     |
| Webhook delivery records                                                                                                              | 30 days after the last attempt                                                                                             |
| Idempotency records of your API writes, with the `Idempotency-Key` as you sent it                                                     | 24 hours                                                                                                                   |
| The one-way record of a deletion                                                                                                      | 30 days                                                                                                                    |
| A finished deletion job: its id, its counts and a keyed one-way digest of its subject                                                 | The event clock                                                                                                            |

The retention job runs every hour; the expiry of visitor records runs every day. A record leaves within that interval after its period ends.

:::note Coming
Retention set by plan comes with signup. Until then the event clock and the raw clock are set with your account; your [disclosure file](#the-disclosure-file) states the values that apply to it.
:::

## Deleting a visitor's data

When someone asks you to delete their data, one call from your backend deletes it. Both deletion routes take a secret key with the `visitors:delete` scope, and both answer `202 Accepted` with a deletion job **whether or not a record exists**, so the answer never reveals whether you held data about someone.

| Call                               | What it deletes                                                                                                                                                                                                                                                                                                                                                                                  |
| ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `DELETE /v1/visitors/{visitor_id}` | The visitor, every visitor merged into it, their events, raw values, match records and visitor record, the feedback on their events, the webhook deliveries that name them, and every storage token the browser was given. A visitor id that was merged into another deletes the visitor it was merged into, with all of the above ([merged visitor ids](/api/visitors#visitor-ids-that-merge)). |
| `DELETE /v1/linked/{linked_id}`    | Your account id from every event and visitor that carries it, the webhook deliveries that name it, and every visitor left with no other linked id, as if you had deleted it by visitor id.                                                                                                                                                                                                       |

Send an `Idempotency-Key` so that a retried request answers the same job. Use your own id for the privacy request, never the email address or account id you are deleting: knownprint keeps the key as you sent it for 24 hours.

:::tabs
```bash title="By visitor id"
curl -X DELETE "$KNOWNPRINT_API/v1/visitors/$VISITOR_ID" \
  -H "Authorization: Bearer $KNOWNPRINT_SECRET_KEY" \
  -H "Idempotency-Key: privacy-$TICKET_ID-$VISITOR_ID"
```

```bash title="By your account id"
# The linked id is a path segment: percent-encode it (here with jq).
curl -X DELETE "$KNOWNPRINT_API/v1/linked/$(printf %s "$ACCOUNT_ID" | jq -sRr @uri)" \
  -H "Authorization: Bearer $KNOWNPRINT_SECRET_KEY" \
  -H "Idempotency-Key: privacy-$TICKET_ID"
```
:::

```http
HTTP/1.1 202 Accepted
Content-Type: application/json; charset=utf-8

{ "job_id": "del_2ahq7m4xk3rbt6ws5ny7cpd2ve", "status": "queued" }
```

To delete everything you hold about one of your users, deleting by linked id is usually the right call: it finds every browser that used the account. If you only stored visitor ids, delete each one.

### What happens next

- The job runs within minutes. While it is open, reads and writes of that visitor, of its events and of its related accounts answer `409` with the problem type `deletion_pending` ([errors](/api/errors#deletion-pending)).
- A linked id deletion opens a visitor deletion for each visitor it leaves with no other linked id.
- When a visitor job finishes, knownprint sends the `visitor.deleted` webhook with the `visitor_id` and the `job_id`, if you subscribe to it ([webhooks](/webhooks)).
- A job that fails is retried on its own. Sending the same `DELETE` again while a job is open answers that job, and requeues it at once if it had failed.
- Deletions take their own rate limit of 2 a second per key ([limits](/limits)).

### What remains after a deletion

A deletion removes the data, but a few things stay, each without any of the browser's readings:

- **A one-way record of the deletion, for 30 days.** It holds a one-way hash of the visitor id and of each token id. It lets knownprint refuse the deleted browser's old cookie and keeps the browser from being linked back to its deleted history. After 30 days the record goes, and a browser that returns is a new visitor.
- **The finished job**, for the event clock: its id, the number of rows it removed from each kind of record, and a keyed one-way digest of the visitor id or linked id in place of the id itself, so an email address used as a linked id cannot be recovered from it.
- **The `visitor.deleted` delivery itself**, which names the visitor id, until 30 days after its last attempt. Every earlier delivery that names the visitor, or a deleted linked id, is removed with it.
- **Labelled pairs** you recorded, which hold no visitor id, linked id, IP address or raw value, for their 400 days.

### The browser side

A deletion on the server cannot reach the visitor's browser. To remove the token from the browser as well, call `forget()` in the page and expire the cookie from your server:

```js title="account-settings.js"
async function forgetThisBrowser() {
  if (window.knownprint) {
    try {
      const agent = await window.knownprint.load({ pk: PUBLIC_KEY });
      await agent.forget(); // never rejects
    } catch {
      // The agent did not load: there is nothing of it to remove in this page.
    }
  }
  // Then expire the cookie from your server in the same flow.
  await fetch('/account/forget-browser', { method: 'POST' });
}
```

```http
Set-Cookie: kp_t=; Path=/; Max-Age=0; HttpOnly; Secure; SameSite=Lax
```

The cookie is named `kp_t` unless your account names another; use your account's name in that header if so. The script cannot clear the cookie itself because it is `HttpOnly`; send that header on a response from your own host. `forget()` acts in the tab it runs in: other open tabs of your site are not affected until they reload. If you do not expire it, the browser's old cookie stops counting anyway for the 30 days of the deletion record. See [Forget this browser](/install/browser#forget-this-browser).

## Answering an access request

:::note Coming
A one-call export of everything held about a visitor (`GET /v1/visitors/{visitor_id}/export`) is coming. It is not served yet.
:::

Until then, assemble the answer from the read routes, with a secret key that holds `events:read`:

```bash
# Every event of one of your accounts, newest first, 500 at a time.
# -G with --data-urlencode puts the encoded values in the query string.
curl -G "$KNOWNPRINT_API/v1/events" \
  --data-urlencode "linked_id=$ACCOUNT_ID" \
  --data-urlencode "limit=500" \
  -H "Authorization: Bearer $KNOWNPRINT_SECRET_KEY"

# The visitor record of each visitor id found in those events.
curl "$KNOWNPRINT_API/v1/visitors/$VISITOR_ID" \
  -H "Authorization: Bearer $KNOWNPRINT_SECRET_KEY"
```

Follow `next_cursor` until it is `null`, passing it back as `cursor` ([pagination](/limits#pagination), [events API](/api/events), [visitors API](/api/visitors)). The events you can read are those still within the event clock.

## Consent modes

The script takes a consent mode when it loads, and every event records it:

| Mode            | What the script does                                                                                                                                              |
| --------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `security_only` | The default. Collects and identifies for the security purposes above.                                                                                             |
| `consented`     | The same collection, recorded as consented. Set it when your consent flow has the visitor's consent, or by calling `agent.consent(true)`.                         |
| `blocked`       | Collects nothing and sends nothing. No listener is added, and `identify()` rejects with the error code `collection_blocked` until you call `agent.consent(true)`. |

`agent.consent(false)` moves a `consented` agent back to `security_only`. Every event carries a `consent` object:

| Field                    | Meaning                                                                                                                                                    |
| ------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `consent.mode`           | The mode the page sent.                                                                                                                                    |
| `consent.effective_mode` | The mode knownprint processed the event under. Today it is always `security_only`: processing is the same for every mode that collects.                    |
| `consent.gpc`            | `true` when the browser sent Global Privacy Control.                                                                                                       |
| `consent.tcf_purpose1`   | Purpose 1 consent from an IAB TCF consent management platform on your page: `true`, `false`, or `null` when there is none or the framework does not apply. |

See [the browser agent](/install/browser) for how to load it with a mode.

### Global Privacy Control and Do Not Track

knownprint records Global Privacy Control on every event (`consent.gpc`), from the browser's own setting or its `Sec-GPC` request header. It does not change what the script collects on its own. Do Not Track is neither recorded nor acted on. Whether either signal should stop the script on your site is your decision under your notice.

If you decide to honour them, load the script blocked when either is set and let the visitor start it:

```js title="Honouring GPC and Do Not Track"
const optedOut = navigator.globalPrivacyControl === true || navigator.doNotTrack === '1';

// Resolves null when the script is blocked or fails to load.
const agentReady = window.knownprint
  ? window.knownprint
      .load({ pk: PUBLIC_KEY, consent: { mode: optedOut ? 'blocked' : 'security_only' } })
      .catch(() => null)
  : Promise.resolve(null);

// Call at the moment the visitor acts, for example on submit.
async function getRequestId() {
  try {
    const agent = await agentReady;
    if (agent === null) return null;
    const { requestId } = await agent.identify();
    return requestId;
  } catch {
    // Blocked (collection_blocked while the visitor has not continued) or refused.
    return null;
  }
}

if (optedOut) {
  // Nothing is collected until the visitor chooses to continue.
  continueButton.addEventListener('click', async () => {
    const agent = await agentReady;
    if (agent !== null) await agent.consent(true).catch(() => {});
  });
}
```

A form that arrives without a request id is a visit knownprint did not see: treat it as unknown, not as a pass ([verify in your backend](/install/server)).

## The disclosure file

Your proxy serves a machine-readable disclosure at `/.well-known/knownprint.json` on your own domain. The file comes with your proxy setup, and the [nginx](/install/nginx) configuration (its [Cloudflare variant](/install/cloudflare) included) and the [Caddy](/install/caddy) configuration serve it as a static file. It names you as the operator, the purposes, every reading knownprint processes with its category, purpose and retention, and where visitors exercise their rights.

Before you go live, edit the three values that describe your business:

| Field        | What to put there                                                     |
| ------------ | --------------------------------------------------------------------- |
| `operator`   | Your legal entity, the controller.                                    |
| `rights_url` | The `https` page where visitors read about and exercise their rights. |
| `contact`    | An email address or an `https` URL for privacy questions.             |

The other fields describe knownprint and your account:

| Field                               | Meaning                                                                                                                                                                                                                 |
| ----------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `service`                           | Always `knownprint`.                                                                                                                                                                                                    |
| `version`                           | The file's format version, `1`.                                                                                                                                                                                         |
| `purposes`                          | The purposes, from `account_security`, `ban_evasion_detection` and `bot_detection`.                                                                                                                                     |
| `signals`                           | One entry per reading: `name`, `class` (one of `rendering digest`, `audio scalars`, `device and browser attributes`, `capability lists`, `integrity markers`, `network and transport`), `retention_days` and `purpose`. |
| `retention.raw_days`                | Your raw clock.                                                                                                                                                                                                         |
| `retention.event_days`              | Your event clock.                                                                                                                                                                                                       |
| `retention.visitor_inactivity_days` | How long a visitor record lasts without a visit, `400`.                                                                                                                                                                 |

A shortened example (the real file lists every reading):

```json title="/.well-known/knownprint.json"
{
  "service": "knownprint",
  "version": "1",
  "operator": "Example Shop Ltd",
  "purposes": ["account_security", "ban_evasion_detection", "bot_detection"],
  "signals": [
    {
      "name": "ip",
      "class": "network and transport",
      "retention_days": 90,
      "purpose": ["account_security", "ban_evasion_detection"]
    }
  ],
  "retention": {
    "raw_days": 30,
    "event_days": 90,
    "visitor_inactivity_days": 400
  },
  "rights_url": "https://shop.example/privacy/rights",
  "contact": "privacy@shop.example"
}
```

Keep the retention values equal to your account's clocks, and keep the file public: it is there so visitors, auditors and tools can read what your site runs.

## What your privacy notice should say

Your notice is yours to write, and the notice templates come with signup. Whatever its wording, a notice that covers knownprint usually answers these points:

1. **That you run a security and anti-fraud service** on your pages, with knownprint as your processor.
2. **The purposes**: protecting accounts and payments, preventing fraud and abuse, detecting bots, and recognising banned users who return.
3. **The categories of data**: the characteristics the browser reports about itself and its device, digests of how it draws and plays test content, which features it supports, signs of automation or tampering, the IP address and its network, and the page path. Name the knownprint host your account names (today https://na1.knownprint.com), since the script reaches it directly and it receives the visitor's IP address too.
4. **What is stored on the device**: a random token in a first-party cookie (`kp_t`, unless your account names another), set through your site's knownprint path, `HttpOnly`, for up to 400 days, and the same token in the browser's storage. Check with your counsel how your cookie rules treat it.
5. **Your legal basis**, which you decide (for many sites, a legitimate interest in security and fraud prevention).
6. **Retention**: the periods in the [table above](#retention), with your account's clocks.
7. **That the data is not used for advertising** and is not sold.
8. **Automated decisions**: if your own code blocks, holds or reviews a signup, login or payment based on knownprint's answer, say so, and say how a person can ask for a review.
9. **Rights**: how a visitor asks for access or deletion, and how you answer: by deleting their visitor data through knownprint, and by expiring the cookie on your own site.
10. **Global Privacy Control and Do Not Track**: whether your site honours them for this service, as in [the example above](#global-privacy-control-and-do-not-track).
11. **The disclosure file** at `/.well-known/knownprint.json`.

A short paragraph many sites can start from:

> We use knownprint, a security service, to protect accounts and payments and to detect fraud, abuse and automated traffic. When you visit pages where it runs, it reads characteristics your browser reports about itself and your device, your IP address and the page you are on, and stores a random token in a cookie (up to 400 days) and in your browser's storage so it can recognise your browser when you return. This information is used for security only, never for advertising, and is not sold. Events are kept for 90 days and the readings behind them for 30 days. You can ask us to delete this data at any time. A machine-readable summary is at /.well-known/knownprint.json.

Change the periods if your account's clocks differ.

## Related pages

- [Security](/security): keeping keys and secrets safe.
- [Limits](/limits): rate limits, sizes and every period in one place.
- [Visitors API](/api/visitors) and [linked ids API](/api/linked): the deletion routes in full.
- [Add the browser agent](/install/browser): `load`, `consent` and `forget`.
