Progressive browser collect · one profile per user · new_only / continuous · open verification checklist.
mode: "full" progressive — features stay. First-party /c.js + /v1/x for adblock.
Mobile/CGNAT soft scoring. Read pitfalls · speed.
1 client user = 1 Frod profile under your account. You pass a stable user_id on every /v1/assess. We build a dossier (IP, ASN, country/region, timezone baseline) and, depending on watch mode, either stop deep re-checks or keep history for account-takeover signals.
Publishable key only in the browser. Never call /v1/assess from the client.
<!-- Best: same-origin /c.js (proxy api). Fallback: CDN -->
<script src="/c.js" async></script>
<script>
FX.auto({
publishableKey: "fk_pk_…",
baseUrl: "", // same origin — adblock-resistant
form: "#signup",
mode: "full", // default — all pillars
progressive: true, // idle before WebRTC
onReady: function (r) {
// r.session_id → hidden field frod_session_id
}
});
</script>
requestIdleCallback / first gesturePOST …/collect → ready session_idOn submit, if the field is empty, Frod finishes collect with idleMs: 0 then continues the form — still progressive, just urgent.
Manual API:
const { session_id } = await Frod.collect({
publishableKey: "fk_pk_…",
progressive: true,
idleMs: 1800,
onPhase: (name) => console.debug("frod", name)
});
Allow your origin: PUT /v1/account/origins with the secret key.
Account default via PUT /v1/account/watch-mode. Per-request override: watch_mode on assess.
| Mode | Who is checked deeply | History / ATO |
|---|---|---|
new_only |
Recent signups (new_user_days, default 14) and anyone without a complete dossier |
Dossier once. After complete + outside window → lightweight trust pass (skip_deep) |
continuous |
Every assess with signals | Full event history. IP churn, ASN flip, geo/ZIP jump, sudden fail → ATO suspicion |
curl -X PUT https://api.fraudlens.io/v1/account/watch-mode \
-H "X-Api-Key: fk_sk_…" \
-H "Content-Type: application/json" \
-d '{"mode":"continuous","new_user_days":14}'
new_only fits signup-heavy products that only need a first clean dossier. continuous fits login / session / payout risk where a clean user can later be hijacked.
Pass the same user_id every time. Optional registered_at (unix seconds or ISO) helps new_only age correctly.
ato_ip_churn — many distinct exit IPs in 24hato_asn_change — ASN/provider ≠ baselineato_geo_jump / ato_region_jump — country or region/ZIP area flipato_timezone_jump — browser TZ ≠ baselineato_sudden_fail — historically allow, now challenge/blockResponse includes profile.ato_suspicion, profile.flags, and bump into score / action.
GET /v1/profiles/{user_id}
X-Api-Key: fk_sk_…
Returns baseline + recent events (IP, ASN, country, score, action, flags).
POST /v1/assess
X-Api-Key: fk_sk_…
Idempotency-Key: <uuid>
Content-Type: application/json
{
"email": "user@example.com",
"session_id": "ses_…",
"user_id": "usr_123",
"registered_at": "2026-11-01T12:00:00Z",
"watch_mode": "continuous",
"policy": "balanced",
"context": { "timezone": "America/New_York" }
}
Shape of success:
{
"ok": true,
"score": 0-100,
"action": "allow|challenge|block",
"reasons": […],
"profile": {
"watch_mode": "continuous",
"dossier": "complete",
"ato_suspicion": false,
"flags": [],
"skip_deep": false
},
"email": {…},
"network": {…}
}
PUT /v1/account/shadow {"enabled":true} keeps scoring but forces action: allow while exposing raw_action — use while tuning without user friction.
fk_sk_ server-side only./assets/frod.js · confirm hidden frod_session_id fills after idle (DevTools Network: sessions → canary → collect).session_id + user_id; expect profile.dossier building → complete.new_only: second assess after dossier + past window → skip_deep: true, new_only_trusted.continuous: change IP/ASN in test → ato_* reasons and score bump; GET /v1/profiles/… shows history.assess.completed, shadow mode week, then enforce.