Developer Reference · Protocol v6
Integrate Fortress without creating a bot oracle.
Fortress separates evidence collection in the browser from verdict redemption on your server. Attackers never see scores, rule IDs, or findings client-side — only an opaque encrypted ft1. token that your backend redeems once.
1. Five-Minute Quickstart
Sign up at console.wolcott.cc, add your origin(s), and copy your fk_live_ or fk_demo_ secret key.
Load the deferred SDK on signup, login, or checkout to mint a 120-second single-use verdictToken.
Exchange the token server-side at POST /v1/verdict and act on allow, challenge, or deny.
verdictToken (AES-256-GCM encrypted with edge-only key material). It cannot decode risk scores, fired rules, or decisions in DevTools.
2. Browser SDK Integration & Performance
Always load the Fortress loader with defer. On mobile checkouts where Total Blocking Time matters, initialize collection inside requestIdleCallback (with a short fallback timer) so your page maintains 100/100 Lighthouse Performance and 0 ms TBT.
<script defer src="https://fortress.wolcott.cc/device-intelligence-collection.js"></script>
<script>
let fortressTokenPromise;
function warmFortress() {
if (fortressTokenPromise || !window.DeviceIntelligenceCollection) return;
fortressTokenPromise = (async () => {
const collector = await window.DeviceIntelligenceCollection.createCollector({
endpoint: "https://collect.edge.wolcott.cc/v2/events",
merchantSessionId: window.__SESSION_ID__, // optional correlation ID
tcpObservation: { probeUrl: "https://sigint.sigint.wolcott.cc/v1/probe", timeoutMs: 3000 },
udpObservation: { stunUrl: "stun:stun.sigint.wolcott.cc:3478", timeoutMs: 3000 },
dnsObservation: { probeUrl: "https://dns.sigint.wolcott.cc", timeoutMs: 3000 },
});
try {
const receipt = await collector.collect();
return receipt.verdictToken; // "ft1.<iv>.<ciphertext>"
} finally {
collector.close();
}
})();
}
// Defer collection until the main thread is idle (0 ms Lighthouse TBT)
window.addEventListener("load", () => {
if ("requestIdleCallback" in window) {
requestIdleCallback(warmFortress, { timeout: 2500 });
} else {
setTimeout(warmFortress, 300);
}
});
// Attach verdictToken when submitting your signup / login / checkout form
async function submitCheckout(formData) {
warmFortress();
const verdictToken = await fortressTokenPromise;
return fetch("/api/checkout", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({ ...formData, fortressToken: verdictToken }),
});
}
</script>
3. Server-to-Server Verdict API
Endpoint: POST https://collect.edge.wolcott.cc/v1/verdict
Authentication: Authorization: Bearer fk_live_... (also accepts fk_test_ and fk_demo_)
Request Body
{
"token": "ft1.IaCsUuOzHr3G...",
"expectedOrigin": "https://shop.example.com",
"consume": true
}
| Field | Type | Required | Description |
|---|---|---|---|
token | string | Yes | Opaque ft1. verdict token returned to the browser by /v2/events. Valid for 120 seconds. |
expectedOrigin | string | Optional | Extra strict origin check in addition to your project's Console allowlist. |
consume | boolean | Optional | Defaults to true (single-use enforcement via edge ReplayGuard; replays return 409). |
Example: Node.js & cURL
// Node 20+
const resp = await fetch("https://collect.edge.wolcott.cc/v1/verdict", {
method: "POST",
headers: {
authorization: `Bearer ${process.env.FORTRESS_SECRET_KEY}`,
"content-type": "application/json",
},
body: JSON.stringify({
token: req.body.fortressToken,
expectedOrigin: "https://shop.example.com",
}),
});
if (resp.status === 409) {
return res.status(403).json({ error: "Replay detected" });
}
const verdict = await resp.json();
if (verdict.decision === "deny") return res.status(403).json({ error: "Blocked" });
if (verdict.decision === "challenge") return res.status(200).json({ stepUp: "fortress-captcha" });
# cURL
curl -sS -X POST https://collect.edge.wolcott.cc/v1/verdict \
-H "Authorization: Bearer $FORTRESS_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{"token":"ft1....","expectedOrigin":"https://shop.example.com"}'
Response Body (200 OK)
{
"verdictId": "vrd_9a82b1c4e7f0...",
"tenantId": "ten_74154a05ad15",
"keyType": "live",
"decision": "challenge",
"riskScore": 0.64,
"scores": {
"automation": 0.64,
"device": 0.12,
"network": 0.35
},
"agent": {
"claimed": false,
"verified": false,
"signals": []
},
"reasons": [
"automation.realm_mismatch",
"network.proxy_or_vpn"
],
"session": {
"sessionId": "s2_u8p0GJVk...",
"merchantSessionId": "chk_8821",
"deviceKeyId": "dk_49a2f0...",
"origin": "https://shop.example.com"
},
"rulesetVersion": "2026-12-05.1",
"evaluatedAt": "2026-12-05T14:40:12.018Z"
}
HTTP Status Codes
| Status | Error Code | Meaning & Recommended Handling |
|---|---|---|
| 200 | — | Verdict decoded, single-use consumed, and tenant policy applied. |
| 400 | missing_token / invalid_token | Malformed JSON or corrupted/tampered ft1. token. Treat as suspicious or step-up. |
| 401 | unauthorized / key_revoked | Missing, unknown, or revoked secret key. Check Console key status. |
| 402 | account_suspended | Project paused for billing (reason: "payment_required"). Fail-open or alert ops per your SLA. |
| 403 | origin_mismatch | Token was collected on an origin not listed in your project's Console allowedOrigins. |
| 409 | token_replayed | This ft1. token was already redeemed once. Block replay attack. |
| 410 | token_expired | Token exceeded its 120-second TTL. Re-collect on the client. |
4. Coarse Reason Codes
To prevent attackers from reverse-engineering individual browser probes while still giving fraud teams actionable audit trails, reasons maps internal findings to coarse categories:
| Reason Code | Category | What Triggered It |
|---|---|---|
automation.driver_or_stealth | Automation | WebDriver, CDP/Patchright artifacts, anti-detect fork tells, or prototype/shim traps. |
automation.realm_mismatch | Automation | Disagreement between main window, sandboxed iframe, Web Worker, or Shared Worker. |
automation.unverified_agent | AI Agent | Browser claimed an AI agent identity or exposed Stagehand/Skyvern/Browser-Use/solver hooks. |
network.proxy_or_vpn | Network | TCP/TLS RTT ratio anomaly, split TCP↔UDP↔DNS egress, or datacenter/commercial VPN exit. |
transport.tls_engine_mismatch | Transport | TLS JA4 / HTTP fingerprint disagrees with claimed browser JS engine. |
integrity.tamper_detected | Integrity | Descriptor patching, Proxy wrapping, event re-parenting, or invalid proof/PoW. |
5. Adaptive Step-Up with Fortress Captcha
Set your project's challengeAt (default 0.45) and denyAt (default 0.85) thresholds in Fortress Console:
riskScore < challengeAt→allow: Admit immediately with zero user friction.challengeAt ≤ riskScore < denyAt→challenge: Present Fortress Captcha using a signedFC-TICKET-V1bound to the session; verify the resultingfd2.decision proof on your backend before completing the action.riskScore ≥ denyAt→deny: Reject or silently shadow-block high-confidence bots and tampered sessions.
6. API Key Classes & Async Non-Payment Cutoff
Fortress supports four scoped key prefixes minted from Console. Secret keys are shown once at creation and stored only as SHA-256 hashes.
| Prefix | Scope | Intended Use |
|---|---|---|
fk_pub_ | Browser / Public | Client-side project identifier (safe to ship in HTML/JS). |
fk_live_ | Server / Production | Production POST /v1/verdict redemption on your backend. |
fk_test_ | Server / Staging | Staging & CI verification without mixing into production alerts. |
fk_demo_ | Server / Demo | Time-boxed evaluation and prospect sandbox keys tagged keyType: "demo" in verdicts & telemetry. |
Async Cutoff without Hot-Path DB Lookups: Every key mint, revocation, origin edit, policy change, or billing pause (active → past_due → suspended) writes to Console D1 and pushes the hashed key record into the shared FORTRESS_TENANT_KEYS Cloudflare KV namespace. Edge workers cache KV records in isolate RAM for 60 seconds (15s negative cache), so hot-path /v1/verdict calls execute in sub-millisecond memory while revocations and non-payment cutoffs propagate globally within ~60 seconds.