7-Day Zero-Risk Shadow Audit
Baseline real-world bot traffic, disposable trial abusers, and deliverability risks in production with zero customer friction before enforcing blocking rules.
The False Positive Dilemma
The biggest risk when introducing signup fraud prevention is accidentally rejecting legitimate, paying customers. If an aggressive heuristic blocks a real enterprise user, you lose pipeline and trust immediately.
SiftlyAPI resolves this completely with Shadow Audit Mode. By sending the X-SiftlyAPI-Mode: audit header, SiftlyAPI returns action: "allow" on 100% of requests. Your production signup conversion remains completely unaffected while true threat classifications are recorded in audit_action: "block" | "challenge".
Available on every SiftlyAPI tier, including the free Hobby plan. The header requires no plan entitlement, and audit telemetry never consumes extra quota.
Active Enforcement
Blocking ActiveAPI returns prescriptive decisions (block, challenge, allow). High-risk signups are rejected immediately before hitting your database.
- Immediate savings on trial compute & LLM tokens
- Protects transactional email domain reputation
Shadow Audit Mode
Zero FrictionAPI always returns action: "allow". True fraud decisions are preserved in audit_action and displayed in your dashboard report.
- 0% risk of false-positive customer rejection
- Builds empirical proof of bot volume over 7 days
Add the Audit Mode Header
Include the X-SiftlyAPI-Mode: audit HTTP header when calling the score endpoint:
const response = await fetch("https://api.siftlyapi.com/v1/score-signup", { method: "POST", headers: { "Authorization": `Bearer ${process.env.SIFTLYAPI_KEY}`, "Content-Type": "application/json", "X-SiftlyAPI-Mode": "audit", // Pass-through: action always returns "allow" }, body: JSON.stringify({ email: user.email, ip_address: request.ip, user_agent: request.headers.get("user-agent"), }),});
const result = await response.json();
// During audit mode:// result.action === "allow" (guaranteed pass-through)// result.audit_action === "block" | "challenge" | "allow" (true verdict)Test with cURL
Run a simulated test request to verify shadow audit response structure:
curl -X POST https://api.siftlyapi.com/v1/score-signup \ -H "Authorization: Bearer sk_live_your_key_here" \ -H "X-SiftlyAPI-Mode: audit" \ -H "Content-Type: application/json" \ -d '{ "email": "malicious.bot@mailinator.com", "ip_address": "8.8.8.8", "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64)" }'Expected Response Payload:
{ "action": "allow", "audit_action": "block", "suggested_user_message": "Temporary or disposable email addresses are not permitted. Please use your business or personal email.", "suggested_http_code": 400, "trust_score": 15, "risk_level": "high", "reasons": [ { "factor": "email", "score": 0, "reason_code": "disposable_email", "description": "Temporary or disposable email service detected", "risk_level": "high" } ], "request_id": "req_01j7k8m9...", "processed_at": "2026-10-19T08:00:00Z"}Ensure Fail-Open Reliability
Never let an external network timeout or transient network outage interrupt your customer signup funnel. Wrap calls in a fail-open block:
async function evaluateSignupWithFailOpen(email: string, ip: string, userAgent?: string) { try { const controller = new AbortController(); const timeoutId = setTimeout(() => controller.abort(), 1000); // 1,000ms max ceiling
const res = await fetch("https://api.siftlyapi.com/v1/score-signup", { method: "POST", headers: { "Authorization": `Bearer ${process.env.SIFTLYAPI_KEY}`, "Content-Type": "application/json", "X-SiftlyAPI-Mode": "audit", }, body: JSON.stringify({ email, ip_address: ip, user_agent: userAgent }), signal: controller.signal, }); clearTimeout(timeoutId);
if (!res.ok) { console.warn("SiftlyAPI non-200, failing open:", res.status); return { action: "allow", audit_action: "allow" }; }
return await res.json(); } catch (error) { // Fail-open: Never disrupt valid users during external network hiccups console.error("SiftlyAPI network error, failing open:", error); return { action: "allow", audit_action: "allow" }; }}Review Telemetry & Activate Enforcement
After running for 7 days in production, open your SiftlyAPI Console to inspect the Executive Threat Audit Report:
1-Click Executive Brief (.md)
The Executive Threat Audit Report aggregates 7 days of production traffic, showing exact numbers for confirmed bot signups, disposable domain attacks, and estimated financial loss prevented ($10/bot in free trial compute and SDR outreach). You can export a clean Markdown summary with one click to present directly to your leadership team.
Transitioning to Active Enforcement:
Once you verify that legitimate signups were unharmed, remove the X-SiftlyAPI-Mode: audit header and reject confirmed threats:
// 1. Remove "X-SiftlyAPI-Mode: audit" (or set to "X-SiftlyAPI-Mode: live")const res = await fetch("https://api.siftlyapi.com/v1/score-signup", { method: "POST", headers: { "Authorization": `Bearer ${process.env.SIFTLYAPI_KEY}`, "Content-Type": "application/json", }, body: JSON.stringify({ email, ip_address: ip, user_agent }),});
const result = await res.json();
// 2. Reject confirmed threats instantly with prescriptive copyif (result.action === "block") { return Response.json( { error: result.suggested_user_message || "Unable to complete registration." }, { status: result.suggested_http_code || 403 } );}
// 3. Challenge high-friction anomalies with CAPTCHA or Email OTPif (result.action === "challenge") { return triggerVerificationChallenge();}