{"ok":true,"version":"1.1.0","schema":{"service":"fraudlens","api_version":"1.1.0","base_url":"https://fraudlens.io","score":{"range":"0-100","polarity":"higher = cleaner / more native","actions":{"allow":"green — proceed","challenge":"yellow — 3DS / MFA / review","block":"red — reject"},"bands_default_balanced":{"allow_min":60,"challenge_min":35},"bands_default_strict":{"allow_min":75,"challenge_min":45},"bands_default_soft":{"allow_min":50,"challenge_min":25}},"auth":{"header":"X-Api-Key","publishable":"fk_pk_* — browser only: create session + collect","secret":"fk_sk_* — server: assess, email, account, read sessions","also_ok":"query ?api_key=","idempotency":"Idempotency-Key on POST /v1/assess (24h)","origins":"PUT /v1/account/origins — required for browser collect"},"billing":{"first_sync_deep":1,"always_on_deep":1,"always_on_light":0,"new_only_trusted":0,"forced_deep":1,"email_only":1,"session_create":0,"session_collect":0,"note":"1 credit when deep work runs. Dossier reuse / Always-on light = 0. force_deep=true overrides."},"watch_modes":{"new_only":"First-sync — deep while user is new (new_user_days), then 0-credit trust","continuous":"Always-on — deep on material change, light (0) when stable","account_default":"PUT /v1/account/watch-mode","per_request":"watch_mode on POST /v1/assess"},"decision_policy":{"endpoint":"GET|PUT /v1/account/decision-policy","fields":["preset (balanced|strict)","allow_min","challenge_min","email_weight","network_weights (9 pillars)","rules[] first-match"],"rule_when":["code","codes","min_score","max_score","action_is"],"rule_then":["allow","challenge","block","review"],"pillars":["reputation","dns_graph","stack_link","webrtc_ice","trust","path","browser","personality","geo"],"shadow":"PUT /v1/account/shadow — enforce action becomes allow; raw_action preserved"},"webhooks":{"configure":"PUT /v1/account/webhook","alerts":"PUT /v1/account/alerts","event":"assess.completed","headers":["X-Frod-Event","X-Frod-Signature: sha256=<hmac>"],"deliveries":"GET /v1/account/webhooks/deliveries","note":"Only sent when alert_policy matches (min_raw_action, debounce, shadow, ATO filters)."},"errors":{"401":["unauthorized","invalid_api_key"],"402":["plan_upgrade_required","payment_required"],"403":["publishable_key_forbidden","origin_not_allowed","email_unverified"],"404":["not_found"],"409":["conflict"],"422":["validation_error"],"429":["rate_limited","credits_exhausted"],"503":["try_later"],"shape":{"ok":false,"error":{"code":"snake_case","message":"human text"}}},"dossier":{"modes":{"new_only":"First-sync dossier","continuous":"Always-on"},"chapters":["network","device_memory","velocity","human_presence","remote_access","model_shadow","policy"],"identity_tiers":["remembered","probable","class_only","unknown"],"response_fields":["dossier","timeline","memory","billing","support","profile"]},"plans":{"free":"email + basic IP only (no live network)","growth":"$89 / 15k — full Live Network + dossier","scale":"$349 / 100k — webhooks, custom weights, SLA","enterprise":"$1000+ — zero-retention, custom deploy"},"endpoints":{"meta":["GET /v1/health","GET /v1/meta","GET /v1/schema"],"assess":["POST /v1/assess"],"email":["GET /v1/email/{email}"],"network":["POST /v1/network/sessions  (alias POST /v1/x)","POST /v1/network/sessions/{id}/collect  (alias POST /v1/x/{id}/c)","GET /v1/network/sessions/{id}"],"account":["GET /v1/account","PUT /v1/account/origins","PUT /v1/account/webhook","PUT /v1/account/alerts","PUT /v1/account/shadow","GET|PUT /v1/account/watch-mode","GET|PUT /v1/account/decision-policy","POST /v1/account/keys/rotate","GET /v1/account/stats","GET /v1/account/audit","GET /v1/account/webhooks/deliveries","GET /v1/account/profiles","GET /v1/profiles/{user_id}"],"billing":["GET /v1/billing/plans","POST /v1/billing/checkout"],"signup":["POST /v1/public/signup","POST /v1/public/signup/confirm"]},"context_flows":["signup","login","checkout","password_reset","payout"],"policies":["balanced","strict","soft"],"docs":{"hub":"/docs/","quickstart":"/docs/integrate/","api":"/docs/api/","policy":"/docs/policy/","webhooks":"/docs/webhooks/","errors":"/docs/errors/","openapi":"/api/openapi.json","swagger":"/api/docs"},"demo_keys":{"publishable":"fk_pk_growth_demo","secret_growth":"fk_sk_growth_demo","secret_free":"fk_sk_test_demo","note":"Dev/demo only — set FROD_ALLOW_DEMO_KEYS=0 in production after rotating keys"}}}