Device risk for developers

A visitor ID for every browser on your sign-in, sign-up, password-reset and approval pages, like Fingerprint's visitorId, and the risk engine's view of it. The page identifies with your public site key and gets { visitorId, requestId, confidence }; your server reads the trusted result by requestId and passes it to sign-ins. A paid add-on, off until you turn it on (Device risk in the dashboard).

PieceRule
visitorIdtqv_…, this browser in your workspace only: another Touchque customer sees another one for the same browser. It survives browser updates and, on a computer, cleared site data and private windows where the browser shows its traits. A phone or tablet is told apart by its stored id and device-bound key only, as two phones of one model look the same: after its site data is cleared it is a new visitor.
confidence0.99 sealed by the browser's device-bound key, 0.95 its stored id, up to 0.9 a match of its traits (computers only; lower for identical fleet laptops), 0.5 to 0.6 a first sight.
requestIddre_…, one identification: for one account, for 15 minutes. Another account gets device_report_replayed; without an account it serves 3 checks, then it counts as a replay.
networkThe address of the identification as the risk engine saw it: country, region and city (never coordinates), the operator (ASN), the network type (type: isp, hosting, tor, or relay for Apple iCloud Private Relay, which is never treated as a VPN, a datacenter or an abusive address) and whether the browser's clock fits the address (timezoneMismatch: a VPN or proxy in another country); proxy: the address was reported as a proxy in the last 30 days, context that counts little (Touchque uses the IP2Proxy LITE database for proxy and VPN detection, https://www.ip2location.com; this site or product includes IP2Proxy LITE data available from https://lite.ip2location.com). kind: the kind of network, from the network's operator (ASN, iptoasn.com data, public domain) and Touchque's own lists: residential (a home or office line), mobile_carrier, education, business, public_wifi, hosting, proxy (a proxy company's own network), vpn (a VPN company's), tor, relay or unknown; a VPN, hosting, a proxy company, Tor and a relay always win over a place; null for identifications from before it (not classified); new values may come in a minor version, so keep a default branch. kindSource: address, network (Touchque's list of networks), mixed (a provider of homes, offices and mobile on one network), network_open (an open community network anyone can join, such as Freifunk or guifi.net: public_wifi, but treated like an unknown network, never as a school, company or public Wi-Fi network on Touchque's list) or name (named from the operator's name only: shown, never used for a decision). vpn: a VPN company's own address (10 points). shared, sharedVisitors24h, sharedAccounts24h: 10 or more browsers, or 5 or more accounts from 3 or more browsers, used the identification's own address on your pages in 24 hours, with 'at least' counts (1, 2, 5, 10, 100 or 1000); context only, null when not counted or when a check assessed another address. lookAlikeMatching: false when this computer was recognised only by its own key, cookie or stored id (identical computers in use on the address at the same time, or a school, company or public Wi-Fi network on Touchque's list: kindSource network, never network_open), true when look-alike matching was allowed, null when not decided (phones, tablets and Safari are never matched by look-alike). None of the shared fields adds points.
velocityThis visitor's counts: accounts in 24 h and 30 days, sign-ups and countries in 24 h, stored-id resets in 7 days (the risk engine's), identifications in the last hour and day.
botOne answer to "a bot, and what kind?": result detected (the browser says it is driven: webdriver, headless, an automation tool's or an AI agent's marks on the page, or an AI agent that proved who it is), suspected (moved or typed like software, a zero-size window, the DevTools protocol attached (cdp), a press with no pressure (cdp_input), input while the page had no focus (input_no_focus), text put in as one block with no keys (insert_text_bulk), a form sent with no click or key (scripted_click), an agent by its user agent only, or one whose signature or address did not verify) or not_detected, with the reasons; type ai_agent, automation or script; tools (selenium, playwright, puppeteer, phantomjs, nightmare, headless_chrome, and the AI agents claude_agent, comet_agent, genspark_agent, browser_use, stagehand, skyvern, as tool_<name> in the reasons); agent { provider, name, category, identity: verified | unverified | claimed }; input (what the typing showed: insert_no_keys, uniform_keys, instant_keys, center_press, agent_pace). A summary: the risk engine still decides.
Site key and originsThe site key (tqpk_…) is public; Touchque answers only pages on your organization's verified domains (Security → Domains) and your listed origins. identify is a text/plain POST, so no CORS preflight: allow your Touchque API host in connect-src.
In the dashboard

Device risk has a group of its own in the sidebar, under Customers. Every page reads the same identifications; none of them changes a sign-in (the risk engine decides).

PageWhat it is for
Overview
/device-risk
The numbers of a range you pick (24 hours, 7, 30 or 90 days), each against the period before: identifications, unique visitors (new and returning), identifications with a signal, step-ups asked, bots. A chart per hour or day; browsers, operating systems, countries and pages; the browsers used by the most accounts and the accounts seen on the most browsers; how visitors were recognised and how sure; a long-term chart up to 12 months.
Identifications
/device-risk/identifications
Every time a page identified a browser. Right now shows the latest, live; below, search a range of up to 90 days by visitor ID, request ID, IP address or range, or account, and filter by signal, step-up, page, kind of network and shared addresses. A row shows its kind of network, Shared · 10+ and No look-alike match, and opens its visitor.
Visitors
/device-risk/visitors
The browsers seen, flagged ones first, with their signals and the network of their newest identification. Mark one Trusted or Step up always, see its identifications, or forget it.
Signals
/device-risk/signals
Every signal Device risk looks for, grouped (the browser, how it is used, where it comes from, your marks), with the identifications and visitors that raised it, its share, the change against the period before, whether the risk engine enforces it or only reports it, and its timeline. Then accounts per visitor.
Bots & network
/device-risk/bots
Bots (the browser says it is driven, or an AI agent's marks are on the page) and maybe-bots (it moved like software, a zero-size window, the DevTools protocol) with the reasons; AI agents by their signature or user agent, and the tools and agents seen on the page; the networks visitors came from: their kinds (home or office line, mobile operator, school, company, public Wi-Fi, hosting, a VPN or proxy company, Tor, relay; not classified yet before network kinds), the types the score reads (home and mobile providers, hosting and cloud, Tor, private relay), shared addresses, a browser clock that does not fit the address (a VPN or proxy in another country), hosting providers and networks by operator (ASN) with their newest kind. Never an IP address.
Alerts
/device-risk/alerts
The alert rules with their thresholds, where alerts go (your webhook, email to owners and admins), and the last alerts.
Settings
/device-risk/settings
On or off, the site key and the proxy secret, where it may run (verified domains and origins), the two lines that install it, serving it from your own domain, how long visitors are kept (30, 60 or 90 days), a privacy notice text, requests per minute, deleting one account's identifications or everything.
Set it up, step by step
  1. Turn it on in Device risk → Settings. You get the public site key tqpk_…; list your page origins (or use your verified domains).
  2. Put the tag on the page (below): sign-in, sign-up, password-reset and approval pages. Or from code: deviceRisk.identify({ siteKey, purpose }) from @touchque/device-risk.
  3. For big sites, serve it from your own domain (/_tq/ proxy, recipes below): ad blockers and privacy lists drop third-party fraud scripts, and through your proxy Touchque keeps a first-party _tqd cookie that Safari keeps past its 7-day limit. Touchque Login custom domains do this by themselves.
  4. Install the Device Risk package on your server (one per language, see SDKs and tools) and pass the field as it came: check(requestId, { event, externalUsername, clientIp }) on sign-up and password reset, or deviceRiskRequestId on login.request for sign-ins. On stepUp ask for more; never refuse on it alone.
  5. Optional: report what your server sees with activity (payments, failed sign-ins, probed paths, SMS codes, wrong codes; below).
  6. Tell your users in your privacy notice (a starting text is in Settings).
  7. Set alerts and webhooks in Device risk → Alerts.
  8. Test it. Open your page: the browser appears in Device risk → Identifications within seconds. Submit the form: your server's check returns report: "ok" with a visitorId. Open the visitor to see its identifications and suspect score. Remove the tag once to see report: missing.
One line on the page, one on your server

The script tag (script.js, with your site key and its version's integrity hash from Device risk → Settings; a page that loads …/device.js, its first name, keeps working with the same hash) identifies the browser when the page loads and puts the requestId into a hidden touchque_request_id field of every form, forms added later too; it takes a new one after 10 minutes and after each submit. On submit it adds how the pointer and the fingers moved, after the requestId and a dot: 18 characters of counts the browser computed (presses on a jumped pointer and how long they lasted, how straight long strokes and swipes were, how long taps lasted), never a position or a path; data-pointer="off" leaves it out. From the 2.3.0 tag a second dot follows with 17 characters of how the page was typed into and clicked (key presses, text with no key press, how even the typing was, presses on the exact middle of a button, pauses between steps: counts and milliseconds, never a key, a character or a field); data-pointer="off" leaves both out. Your server passes that field to deviceRisk.check as it came. Single-page apps read window.TouchqueDevice (ready, value(), requestId, refresh()); the 1.6.0 tag set window.TouchQueDevice.

<script src="https://cdn.touchque.com/device/v3.2.0/script.js" data-site-key="tqpk_…" data-purpose="sign_in"
        integrity="sha384-W4fDOU520pMZhTG5nAmoccOLITzNtbZbLoBaIi8A4IW2odD/TrpWMc5LSGYdHnV+" crossorigin="anonymous" async></script>
Removing the tag gets a step-up, never a way in. requestIds are made only by Touchque's server, used for one account, bound to your site's origin and to 15 minutes. The page's value is never trusted: your server reads the verdict by requestId and the risk engine decides. A page without the tag, or with it blocked, sends no requestId: the check still answers (report: missing, unknown or expired) with device_identification_missing, which only ever asks for a number-matched step-up and starts in shadow like the others.
One decision maker. Touchque's risk engine counts per visitor (accounts, sign-ups, countries, stored-id resets), checks the browser's clock against the address and decides, for sign-ins (login.request, risk.check with deviceRiskRequestId) and for pages before an account (POST /device-risk/check). Every signal only ever asks for more: a number-matched approval or a passkey, on a sign-up your own extra check. None blocks on its own, none lets a check be skipped, and a sign-in with one is never silent. Signals start in shadow (reported, enforced: false); a visitor your admin marked "Step up always" asks at once.
Sign-ins pick it up by themselves

With the tag on the page you call nothing extra for sign-ins: the identification reaches the same risk-engine call as the sign-in or action by itself. Call deviceRisk.check only on sign-up and password-reset pages, where there is no sign-in yet, or for a step of your own.

RouteHow the identification travels
Server SDK guards, relays and middlewareThey read the form or JSON field touchque_request_id first, then the X-Touchque-Device header, and pass it on as deviceRiskRequestId. Adapters that do not parse the body (Next.js, FastAPI, Go net/http, the Java servlet) read the header only. deviceRisk: false turns it off, or give your own resolver; deviceRiskRequired sends '' when nothing came, so a removed tag is noticed.
@touchque/webtouchqueFetch sends X-Touchque-Device once per call (its polls carry the same value), read from window.TouchqueDevice for same-origin targets, and takes a fresh identification after a response that started an approval. Turn it off with createTouchqueWeb({ deviceRisk: false }), per call with deviceRisk, or <touchque-approval device-risk="off">. The passkey and offline helpers attach it too.
Your own deviceRisk.checkAn identification you checked for an account is linked to that account's next sign-in on Touchque's side, as evidence only: a linked identification never carries a Trusted mark.
Touchque Login and Touchque SSOThe hosted pages run the tag themselves, once Device risk is on and your privacy notice names it; the SSO relays its own device check.

deviceRiskRequestId left out means Device risk is not used on that page. An empty string means it was expected but is missing: device_identification_missing, in shadow, a number-matched step-up at most. Any other value is an identification, cut to 64 characters. The sign-in's case records how it got there: with the request (explicit), linked from your own check (bound), or none.

Device risk → Settings → Ask for more on these signals adds codes the risk engine asks for number matching on for your workspace, on top of Touchque's own. Your picks are measured only (shown in the case view, asking for nothing) until Touchque turns each one on for companies. The shared device fraud signal (App user policy → Risk signals) stays outside the risk engine by design: Touchque applies it next to the engine, so one brand's flags never train it.

Signals
codeMeaningAsks for
device_tamperedBrowser functions replaced by script, or traits that contradict each other (an anti-detect browser, a spoofing extension).number_match
device_virtualA virtual machine, software graphics, a headless or automated browser.number_match
device_geo_mismatchThe browser's clock is 2 h or more off the address's time zone (a proxy, VPN or remote access).passkey
device_many_accounts3 accounts in 24 h, or 6 in 30 days, on one visitor.number_match
device_signup_burst3 sign-ups in 24 h from one visitor.number_match
device_id_resetsThe stored id cleared twice in 7 days and back as the same visitor (private windows not counted).number_match
device_many_countriesAddresses in 3 countries in 24 h for one visitor.number_match
device_wrong_siteThe identification was made on a site that is not yours (a look-alike or proxy page).passkey
device_report_replayedAn identification used for another account, or a report sent twice.passkey
device_private_windowA private window: context only, never asks on its own.none
device_step_up_by_adminYour admin marked the visitor "Step up always": enforced at once.number_match
device_identification_missingYour server checked a page that sent no identification, or one that does not verify (unknown, expired, another workspace's): the tag was removed or blocked. Ad blockers do that to honest people too.number_match
device_new_storage_burstA phone or tablet (iOS, Android, Safari) is told apart only by its stored id and key, so a private tab or cleared storage is a new visitor. This counts the new ones per kind of phone and network: 5 new browsers in 24 h from phones like this one on this network, raised on a new one. One phone that keeps opening private tabs or clearing its storage, or several people with one phone model behind one network (an office, a carrier's shared addresses), add up alike. Identical computers where look-alikes are not joined (lookAlikeMatching false) are counted the same way, per model and network. On a school, company or public Wi-Fi network on Touchque's list it allows more, but only while accounts that used that network on earlier days keep coming back. In shadow (reported, never asks) until the numbers say which.number_match
device_network_signup_burst3 sign-ups in 24 h from devices like this one on this network (phones, and identical computers where look-alikes are not joined), raised on a sign-up: the sign-up burst for a device that gets a new visitor for each sign-up. On a school, company or public Wi-Fi network on Touchque's list it allows more, but only while accounts that used that network on earlier days keep coming back. In shadow.number_match
device_pointer_syntheticThe pointer or a finger moved like software, not a hand: every press landed where the pointer had just jumped and lasted under 10 ms, taps of under 10 ms, or ruler-straight strokes or swipes (Playwright, Puppeteer, Selenium, AI browser agents). From the counts the tag sends with the form, never a position or a path. No movement at all (a keyboard, a screen reader) is never a sign; Voice Control and Switch Control move like this too, so it only asks. From tag 3.2.0 the suspect score also counts here a mouse press with no pressure (sent through the DevTools protocol) and clicks or keys while the page had no focus.number_match
device_input_syntheticTyped or clicked like software (the Device risk tag 2.3.0 and later): text that arrived with no key press (Playwright fill, CDP insertText, an AI agent typing), keys at one even pace or held for no time, or every press on the exact middle of a button (what click() aims at in Playwright and Puppeteer). From counts and milliseconds the tag sends with the form, never a key, a character or a field. Dictation and switch access can look alike, so it only asks. A pause before every step (an agent looking and thinking) is shown on Bots & network but raises nothing on its own. From tag 3.2.0 the suspect score also counts here text put in as one block with no keys and a form sent with no click or key.number_match
device_ai_agentAn AI agent or a bot by its own word: its Web Bot Auth signature (HTTP Message Signatures with Signature-Agent; verified against the provider's published keys, e.g. ChatGPT agent) or its user agent (ChatGPT-User, Claude-User, Perplexity-User, the Claude app's built-in browser…). Where its provider publishes the addresses that agent uses (ChatGPT-User, Claude-User, Claude-Agent, Perplexity-User, Google-Agent…), the address is checked too; else the user agent is claimed only. The Claude app's browser runs on the person's own computer, so it is always claimed. From tag 3.2.0 also an AI agent's marks on the page it drives (Claude, Perplexity Comet, Genspark, Browser Use, Stagehand, Skyvern). The person behind an agent approves what it does on their phone.number_match
How a browser is recognised
  • In this order: the browser's device-bound key; then Touchque's site cookie (matchedBy: fpc), only through your own /_tq/ proxy or a Touchque Login custom domain (HttpOnly, Path=/_tq, 400 days; Safari keeps it past its 7-day limit); then the stored id; then the traits. matchedBy is key, fpc, sid, traits or new.
  • Traits count for computers only, only on a network that visitor used before (the same /16, or /40 for IPv6) and only when exactly one visitor fits. Visits from a school, company or public Wi-Fi network on Touchque's list, and visits where look-alike matching was off, never count as having used the network. Phones, tablets, Safari and Brave are never joined by traits: a private window or cleared data on a phone is a new visitor, by design.
  • Look-alike matching is off for a computer once identical computers are seen in use on its address at the same time, and on a school, company or public Wi-Fi network on Touchque's list (kindSource network; an open community network, network_open, is not one): network.lookAlikeMatching false. The computer is then recognised only by its key, cookie or stored id, and the risk engine counts its new browsers and sign-ups per model and network, as it does for phones. On such a listed network those two counters allow more, but only while accounts that used that network on earlier days keep coming back.
  • A site cookie copied to another browser is treated like a copied stored id: lower confidence (0.7), no device key adopted and no trust mark.
  • Every report is signed by the browser's key and encrypted for Touchque (tqe1.…): the page, extensions and the visitor cannot read or change it.
  • From tag 3.1.0 every report also carries a fresh value from Touchque (asked just before, bound to your workspace, site key and network, valid 2 minutes, once), so a report cannot be made ahead of time or sent from another network. The tag and @touchque/device-risk 3.1.0 do it by themselves (identify with challenge: true). Once most of a workspace's reports carry it, a report without it is report_unchallenged.
  • Privacy browsers lower trust, never raise suspicion: noise alone (randomised canvas, audio or WebGL, two different reads) is device_noised, shown as Privacy noise, a context that never asks for anything. Brave is recognised by its key, cookie or stored id only, and the fixed UTC zone of Tor Browser and Firefox's fingerprint resistance gives no clock check.
  • The tag checks for spoofing (findings in device_tampered and device_virtual): a JavaScript engine that is not the claimed browser's (an "iPhone" running Chrome's engine), graphics or fonts of another system, a "phone" with no touch or a desktop screen, Android emulators, headless Chrome, automation tools' marks, and the browser's own request headers against its report (User-Agent, client hints, language, Origin, fetch metadata, Brave). Tested against Puppeteer, Playwright and an Android emulator; real Chrome, Firefox and Safari raise nothing.
What is read and what is kept

The page reads coarse traits (OS, browser family and major version, time zone, languages, screen size, cores, memory class, touch points, the graphics card's name), short hashes of how the browser draws a test text, plays a test sound, which of 25 common fonts it has, a few Math results and its WebGL limits, and findings (replaced browser functions, a virtual machine, a headless browser, a private window where detectable). Touchque keeps no raw trait: keyed hashes with a key of your workspace alone, coarse labels, the account, the country and a keyed hash of the address's network, for 30 to 90 days as you set. The identification also keeps the address itself for a day, for search by address or CIDR range and the network rules; it is never shown in statistics or in getEvent's network block (place and operator only). For shared addresses and returning accounts Touchque keeps, per workspace and for 24 hours, keyed counts of the browsers and accounts that used each address on your pages and of the accounts that came back to each network (entries live 25 hours, at most 1,000 per address or network); only counts and yes or no leave them, never a list of browsers or accounts. Forgetting a visitor or an account does not reach into these counts: its entries age out within 25 hours. Never a MAC address, a serial number or a cross-customer device graph.

Tell your users. Use it only on sign-in, sign-up, password-reset and approval pages, and say it in your privacy notice. In Turkey (KVKK) account security can rest on legitimate interest (art. 5/2(f)); in the EU, reading the device needs consent unless it is strictly necessary for the security of a sign-in the user asked for (ePrivacy art. 5(3)), and a check that lets a known device do less does not count. Ask your lawyer. A starting text is under Device risk → Settings.
From your own domain

Ad blockers and browser privacy lists drop scripts and calls to known third-party fingerprinting hosts, honest visitors' too (they then get Identification missing, a step-up at most). Large sites serve the tag and its identify call from their own domain instead, like Fingerprint's proxy integrations: GET /_tq/device/vX.Y.Z/script.js goes to https://cdn.touchque.com/device/vX.Y.Z/script.js (the same bytes, so the same integrity hash) and POST /_tq/device-risk/identify to https://api.touchque.com/device-risk/identify. The tag then points at your domain, and your Content-Security-Policy needs only 'self':

<script src="https://www.example.com/_tq/device/v3.2.0/script.js" data-site-key="tqpk_…" data-purpose="sign_in" data-api="https://www.example.com/_tq"
        integrity="sha384-W4fDOU520pMZhTG5nAmoccOLITzNtbZbLoBaIi8A4IW2odD/TrpWMc5LSGYdHnV+" crossorigin="anonymous" async></script>

The proxy secret: behind your proxy every visitor reaches Touchque from your proxy's address. Send the visitor's address as X-Touchque-Client-IP with your workspace's proxy secret as X-Touchque-Proxy-Secret (tqps_…, Device risk → Settings for owners and admins; GET /device-risk/settings with the API key). Touchque then records and scores the visitor's address and counts the per-address limit (60 identifications a minute) on it, not on your proxy. Keep the secret on the server like the API key, never in a page or in git. A wrong one is 403 proxy_secret_invalid and does not use the site key's per-minute budget; replacing the site key replaces it. Without it the proxy still works, but every visitor counts against the proxy's one address: small sites only. Pass on only Touchque’s own cookie (_tqd) and the answer’s Set-Cookie, and drop your other cookies: Touchque sets it HttpOnly on /_tq only, from your own server, so Safari keeps it past its 7-day limit on script storage and an iPhone stays one visitor (the recipes in Device risk → Settings do it). Pass Origin on as it came (Touchque checks it against your domains and origins), and pass the visitor's address as clientIp to deviceRisk.check on your server.

location /_tq/device/ {
    proxy_pass https://cdn.touchque.com/device/;
    proxy_ssl_server_name on;
    proxy_set_header Cookie "";
    proxy_set_header Authorization "";
}
location = /_tq/device-risk/identify {
    limit_except POST { deny all; }
    proxy_pass https://api.touchque.com/device-risk/identify;
    proxy_ssl_server_name on;
    proxy_set_header Cookie "_tqd=$cookie__tqd";           # Touchque's own cookie only; its Set-Cookie comes back
    proxy_set_header Authorization "";
    proxy_set_header X-Forwarded-For "";
    proxy_set_header X-Touchque-Proxy-Secret "tqps_…";   # Device risk → Settings; keep this file out of git
    proxy_set_header X-Touchque-Client-IP $remote_addr;  # behind a load balancer: set_real_ip_from + real_ip_header first
}

Limits: a visitor's address gets 60 identifications a minute; a site key, and a workspace's calls to deviceRisk.check, get 1,200 a minute each. Above a limit the call answers 429 with Retry-After. Device risk → Settings shows your number (ratePerMinute in GET /device-risk/settings); a bigger site asks support (support.touchque.com) with its expected traffic and Touchque raises it for the workspace.

Vercel rewrites cannot add the proxy secret: use them for small sites, or the Next.js middleware (also on Vercel) for the identify path at volume. With a verified Touchque Login custom domain there is nothing to proxy: Touchque serves both paths on it, and Device risk → Settings shows the tag with data-api="https://login.example.com/_tq".

A busy site has millions of identifications, so nothing lists them all: GET /device-risk/events (searchEvents in every Device Risk server package, Device risk → Identifications in the dashboard) answers one page, newest first, for a date range of at most 90 days within your retention (7 by default), filtered by signal, stepUp, page (kind), origin, ip (an address or a CIDR range like 203.0.113.0/24; never returned), account, visitorId or requestId, each on an index, and by networkKind (one kind of network: identifications from before network kinds never match) or shared (true: the identification's own address was shared; false: counted and not shared; one that was not counted matches neither). Pass nextCursor back as cursor until it is null (1 to 100 a page); do not page by moving from/to. A search that would read too much answers 422 search_too_broad: narrow the range or add a filter. For everything at once: a data request (Reports → Data requests, JSON or CSV, one row per identification, no address; the CSV ends with network_kind and shared_network), the webhooks and the log stream.

What the answer tells you: suspect score and account device

Every check, event and search row carries a suspect score from 0 to 100 with every reason behind it: its points (negative for a known browser or a trusted mark) and who proves it (server: Touchque saw it; site: your server reported it through activity; page: the browser reported it; brand: your admin's mark). It runs in shadow and decides nothing yet: wouldDo says what it would ask for, allow (0–29), number_match (30–59) or passkey (60+). A sign-up or password reset at 80+ would be blocked only for a reason the server proved (a replayed report, another site, Tor with automation); an existing account's sign-in is never blocked.

When a check names the account, accountDevice says whether the account used this device before: known (this visitor served it, with since), likely (another of its visitors has the same traits on the same network: the same device after its data was cleared), new (the account has other devices here, not this one) or first (none yet). Two visitors are never merged on it.

Reason in the suspect scorePointsMeaning
abuse_card_testing45Your server reported cards tested from this browser or network.
abuse_otp_pumping40SMS codes sent to many numbers.
agent_driving40An AI agent's marks are on the page it drives (the Claude app's browser or Claude in Chrome, Perplexity Comet, Genspark, Browser Use, Stagehand, Skyvern). It stands in for bot_automation (Stagehand runs on Playwright: one driver), and for agent_claimed unless an automation tool's marks are there too, so marks that come late never lower the score.
bot_automation40The browser itself says software drives it: WebDriver, a headless browser or an automation tool's marks (Selenium, Playwright, Puppeteer).
abuse_probing35Admin or secret paths probed.
abuse_card_shared30One card on several accounts.
abuse_login_failures30Many failed sign-ins.
abuse_code_guessing30Many wrong coupon or gift-card codes.
agent_claimed30An AI agent or an AI browser by its user agent only, such as the Claude app's built-in browser. A person may browse in it too.
network_tor30The connection comes through Tor, which hides where it comes from. The network reasons count one at most, the first that fits: Tor, hosting, a VPN, a proxy.
agent_unverified30Signed as an AI agent but the signature did not verify, or named as one from an address its provider does not list.
device_profile_burst25Many first sights of one exact computer profile from several networks in an hour: a report factory.
network_hosting20The address belongs to a cloud or hosting network, where scripts and proxies run, not a home or mobile line.
report_unchallenged20The report lacks Touchque's fresh value (tag 3.1.0 and later send it).
network_proxied15The request carried a proxy's own headers (Via, Forwarded, an X-Forwarded-For before Touchque's): it passed through a proxy on the way, such as a company or school filter.
report_used_elsewhere15Made on one network, used from another.
cdp_attached15The DevTools protocol is attached (tag 3.2.0): automation tools and AI agents drive browsers this way. A person with the developer tools open, or some extensions, look the same.
network_vpn10The address belongs to a VPN service (Touchque's list of VPN companies): common and often harmless, so it counts little.
report_unsealed10A page that could seal its report did not.
agent_verified10A known AI agent with a verified signature or an address its provider lists, acting for a person.
new_device_for_account+10The account has other devices here, not this one.
network_proxy6The address was reported as a proxy in the last 30 days, or belongs to a proxy company's own network: often a home or school line someone resold to a proxy network. The visitor may not be using it, so it counts little; never on Apple's private relay.
device_noised0Privacy noise: context only, never asks for anything.
network_shared0Many browsers used this address on your pages in the last 24 hours: usually a school, office, café or mobile operator, sometimes one person with many private windows. Context only: it never changes the band or wouldDo.
network_look_alike_off0Identical computers were in use on this address at the same time (a lab, an office, an internet café), or the network is a school, company or public Wi-Fi network on Touchque's list: Touchque recognised this browser only by its own key, cookie or stored id, never because it looks like another one. Context only.
network_tls_mismatch0The connection's TLS greeting is not the claimed browser's: usually a company or school filter, or an antivirus or ad blocker that inspects HTTPS; sometimes automation. Context only while Touchque measures it.
known_device_for_account−10The account used this device before.
AI agents and AI browsers

An AI agent works in a real browser for a person: the Claude app's built-in browser, Claude in Chrome, Perplexity Comet, Genspark, or a framework such as Browser Use, Stagehand or Skyvern. Touchque recognises it by what it says about itself, what it leaves on the page and how it clicks and types. Each sign raises the suspect score; none blocks on its own.

ReasonPointsWhat Touchque sees
agent_claimed30Its user agent names an AI browser or agent: the Claude app's built-in browser (Claude/<version> before Chrome/), Anthropic's Claude browser agent (Claude-Agent), ChatGPT-User, Claude-User, Perplexity-User… bot.agent names it, such as Claude browser or Claude browser agent (provider Anthropic).
agent_driving40The agent's own marks on the page it drives: the Claude app's agent once it reads the page, Claude in Chrome, Perplexity Comet, Genspark, Browser Use, Stagehand, Skyvern. bot.tools names it.
cdp_attached15The DevTools protocol attached: how agents and automation tools drive a browser. A person with the developer tools open, or some extensions, look the same.
device_pointer_synthetic device_input_synthetic15 + 15Clicks and typing sent through it: a press with no pressure, input while the page had no focus; text put in as one block with no keys, a form sent with no click or key.
agent_verified agent_unverified10 / 30A Web Bot Auth signature checked against its provider's published keys (such as ChatGPT agent or Google-Agent), or the address of an agent that names itself checked against the addresses its provider publishes for that agent (such as ChatGPT-User, Claude-User or Claude-Agent): verified when it matches, not verified when it does not (something may be using the agent's name). An AI browser on the person's own computer has no such list: it stays claimed.

Agents act after the page has loaded: they read it first, then click and type. So the tag (3.2.0) keeps watching. When new marks appear it sends them for the same requestId to POST /device-risk/identify (up to 5 updates; anything new goes as the form is sent), and Touchque adds them to that identification for 15 minutes after it, from the same network. An update only ever adds marks. Your server's check and getEvent include what has arrived by then (getEvent's facts.late says when the last update came and how many came), and a /_tq/ proxy passes the update as it is.

In shadow, and never a block for an existing account. The suspect score decides nothing yet. A person browsing by hand in an AI browser, such as the Claude app's, starts at 30 points from its user agent: a number-matched approval on their phone, or a passkey once other signs, such as the DevTools protocol, a device new to the account and a private window, take it to 60. When its agent fills in the form, its marks (40, counted in place of the user agent's 30), the DevTools protocol (15) and its clicks and typing (15 each) add up past 60: a passkey. The page reports all of these, so none of them blocks a sign-up on its own.
Tell Touchque what your server saw (activity)

Some abuse only your server sees. Send it with POST /device-risk/activity (activity() in every Device Risk server package), with the page's touchque_request_id, a visitorId or the clientIp. Touchque counts it per visitor and per network (/24) over an hour and answers the abuse signals it raised; for 24 hours the visitor's next identifications and checks carry them and the suspect score weighs them (in shadow: act on signals yourself if you want). On a school, company or public Wi-Fi network on Touchque's list the network's counts allow more, but only while accounts that used that network on earlier days keep coming back.

You send (type)Signal it can raise
payment_attempt (outcome, card BIN + last 4)abuse_card_testing (3 cards or 3 declines in an hour from one browser, 10 from one network), abuse_card_shared (one card on 3 accounts in a day)
login_failedabuse_login_failures (5 failures, or failures on 3 accounts, from one browser; 10 accounts from one network)
not_found, forbidden (path)abuse_probing (2 admin or secret paths such as /wp-admin or /.env from one browser, 3 from one network)
otp_sent (phone)abuse_otp_pumping (codes to 3 numbers from one browser, 10 from one network)
code_failedabuse_code_guessing (10 wrong coupon or gift-card codes; 30 from one network)
Never send a card number: a card is its BIN and last 4 digits (the API answers 400 card_number_not_allowed, and the packages refuse it before sending). Cards, phone numbers and accounts are kept only as keyed hashes.
Bots that never run your page (bot check)

Many bots never run JavaScript, so the tag never sees them: ChatGPT-User, GPTBot, Meta's crawlers, Grok's fetches, curl and scripts. For those, your server sends one request's address and headers with POST /device-risk/bot-check (botCheck() in every Device Risk server package). Touchque answers which bot it is (category, provider, name), whether that is proven (identity: verified by its operator's signature, published addresses or reverse DNS; unverified, a spoofed name; claimed, a name nobody can check), every reason, the network, and a suggestion. Touchque decides this on its own servers with its own data: the operators' published address lists, kept ahead of time, Web Bot Auth signatures, its own reverse DNS. No other service is asked at request time.

suggestionWhen
allowA verified bot, a declared crawler, assistant or other bot nobody can check, or no bot
challengeAn AI agent that only names itself (it acts for a person: ask that person, as the sign-in page's number-matched approval does), an HTTP client, a headless browser, a browser whose claims contradict each other, or a suspected bot
blockA spoofed name: a bot whose operator publishes a way to check it, and the check failed
Advice in shadow: Touchque never enforces it, your server decides. A source that cannot answer right now makes a name claimed, never a spoof. The packages send Authorization, Cookie, Proxy-Authorization, X-Api-Key and Set-Cookie with empty values and never fail on what a visitor sent (past 100 headers or 32 KB they cut and send truncated). Touchque keeps nothing from a bot check but short-lived counters of keyed hashes, and never logs header values. It has its own budget per workspace (6,000 a minute by default).
Monitoring and alerts

Device risk → Overview shows the numbers of a range you pick (24 hours, 7, 30 or 90 days, within your retention), each against the period before, and a long-term chart (30 days, 90 days or 12 months per day, from daily counts kept 400 days). Device risk → Alerts tells your people when something is going on; each rule has an on/off and a threshold and alerts at most once an hour. Alerts go to your webhook and by email to your organization's owners and admins (once a mail sender is set up). The same page lists the last alerts. An alert never changes a sign-in: the risk engine decides those.

AlertGoes off whenDefault
signup_burstOne visitor signed up this many times in 24 h5
many_accountsOne visitor on this many accounts in 24 h5
tamper_spikeThis many identifications with a tampered or virtual browser in an hour20
Webhooks and log streams

Your webhook (2FA API → Webhooks) gets DEVICE_RISK_SIGNAL when an identification or a check raises a signal that asks for more (enforced or in shadow; page loads of the same visitor with the same signals once in 10 minutes, every check), and DEVICE_RISK_ALERT when an alert goes off. Signed like every event. They carry the requestId, visitorId, page, account when known, confidence, signals and the engine's verdict with its case code; never a trait. For an SSO organization with a log stream (Splunk, Datadog, Sentinel, webhook, S3), the same events also go to that stream, category device_risk.

Endpoints
EndpointWho
POST /device-risk/identifyThe page (site key); from tag 3.2.0 also what it sees later, for the same requestId
GET /device-risk/events/{requestId}Your server: the trusted identification and the engine's verdict
POST /device-risk/checkYour server: an identification for an account (sign-up, reset)
login.request, risk.check, offline.challenge, offline.verifyTotp, the passkey sign-in, recovery.startdeviceRiskRequestId (the SDK guards and relays fill it in)
POST /device-risk/bot-checkYour server: which bot sent one request, proven or not, for bots that never run the page
POST /device-risk/activityYour server: what a visitor did (payments, failed sign-ins, probing, SMS codes, wrong codes)
GET /device-risk/eventsYour server or the dashboard: search identifications (filters, an opaque cursor)
GET /device-risk/statsYour server or the dashboard: one range's statistics (24h, 7d, 30d, 90d) for Overview, Signals and Bots & network
GET /device-risk/trendThe Overview's long-term chart over 30, 90 or 365 days
GET /device-risk/recentThe latest identifications (Right now, on the Identifications page)
DEVICE_RISK_SIGNAL, DEVICE_RISK_ALERTWebhook events to your server
// The page: when the sign-up, sign-in, reset or approval form is sent (without the script tag)
import { deviceRisk, REQUEST_ID_FIELD } from '@touchque/device-risk';   // npm install @touchque/device-risk
const id = await deviceRisk.identify({ siteKey: 'tqpk_…', purpose: 'sign_up' });   // { visitorId, requestId, confidence }
form.elements[REQUEST_ID_FIELD].value = id?.requestId ?? '';   // the hidden touchque_request_id field, the one the tag fills

// Your server (Node, @touchque/device-risk-node): never trust the page's copy; missing or empty is an answer too
import { TouchqueDeviceRisk } from '@touchque/device-risk-node';
const dr = new TouchqueDeviceRisk();   // TQ_API_KEY, TQ_API_SECRET
const r = await dr.check(req.body.touchque_request_id, { event: 'sign_up', externalUsername: email, clientIp: req.ip });
if (r.stepUp) askForEmailCode();          // ask for more, never refuse
// Abuse only your server sees (BIN + last 4 only, never a card number)
const a = await dr.activity({ type: 'login_failed', requestId: req.body.touchque_request_id, externalUsername: email, clientIp: req.ip });
// a.signals: ['abuse_login_failures'] once the threshold is reached
if (r.requestId) {
  const event = await dr.getEvent(r.requestId);   // the trusted identification
}

// For sign-ins, instead of check: pass the field to the main SDK's (@touchque/node) login.request as it came
await tq.login.request({ externalUsername, type: 'LOGIN', clientIp: req.ip, deviceRiskRequestId: req.body.touchque_request_id });