Run in shadow
In shadow, Flit decides on your real traffic and acts on none of it. You find out what it would have done, to whom, and what that was worth, before it is allowed to refuse a single customer.
Test mode proves the integration works. It cannot tell you how Flit behaves on your customers, because test traffic is made up. Shadow is how you get that answer without risk: nobody is blocked, and at the end you have a count of the fraud it would have stopped and the good customers it would have turned away.
1. Open live mode
Your application has two modes, test and live, side by side. Live is opened by the Flit team once your email is verified, and it starts in shadow. It has its own id and its own keys, and none of what you sent in test is carried into it.
When it is open, switch to Live in the console, create a key under Developers, and note the live application's id:
export LIVE_APP=… # the live mode's id
export LIVE_KEY=… # begins flit_sk_live_
2. Send production traffic
Point your production servers at the live id with the live key. The calls are the ones you already make. This is the scripted login from Your first decision, sent to live:
curl -s -X POST "$FLIT/api/v1/applications/$LIVE_APP/audit-authentication" \
-H "Authorization: Bearer $LIVE_KEY" \
-H 'Content-Type: application/json' \
-d '{
"id": "login_2001",
"client_id": "user_77",
"action": "login",
"status": "success",
"ip_address": "81.2.69.160",
"user_agent": "python-requests/2.31.0"
}'const response = await fetch(`${process.env.FLIT}/api/v1/applications/${process.env.LIVE_APP}/audit-authentication`, {
method: "POST",
headers: { Authorization: `Bearer ${process.env.LIVE_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({
"id": "login_2001",
"client_id": "user_77",
"action": "login",
"status": "success",
"ip_address": "81.2.69.160",
"user_agent": "python-requests/2.31.0"
}),
});
const { data, errors } = await response.json();import os
import requests
response = requests.post(
f"{os.environ['FLIT']}/api/v1/applications/{os.environ['LIVE_APP']}/audit-authentication",
headers={"Authorization": f"Bearer {os.environ['LIVE_KEY']}"},
json={
"id": "login_2001",
"client_id": "user_77",
"action": "login",
"status": "success",
"ip_address": "81.2.69.160",
"user_agent": "python-requests/2.31.0",
},
)
data = response.json()["data"]{
"data": {
"audit_id": "5e93a1a3-d2ca-4a98-bbb7-7e44955833cc",
"enforcement": "shadow",
"verdict": "review",
"should_block": false,
"would_block": true,
"would_challenge": false,
"should_review": true,
"risk_level": "critical",
"factors": [
"bot_detected:http_client",
"automated_credential_action"
]
}
}The whole answer
{
"data": {
"audit_id": "5e93a1a3-d2ca-4a98-bbb7-7e44955833cc",
"device_id": null,
"identity": {
"rungs": [
"ip"
],
"coverage": 0.15,
"missing": [
"device",
"email_root",
"asn"
],
"strongest": "ip"
},
"risk_score": 0.714,
"risk_level": "critical",
"rules": [
"IPReputationRule",
"BotSignalRule",
"NetworkReputationRule",
"ChallengeEvasionRule",
"ChallengePassedRule",
"MultiAccountingRule",
"AccountSharingRule",
"AccountFarmingRule",
"ResetToLoginRule",
"AutomatedCredentialActionRule",
"CredentialResetStormRule",
"SessionShapeRule",
"BlockStreakRule",
"ProbingSessionRule",
"CredentialSprayRule"
],
"reasons": [
{
"code": "bot_detected:http_client",
"path": "user_agent",
"context": {
"rule": "BotSignalRule",
"score": 0.9,
"signals": [
"known_bot_pattern:python-requests"
],
"user_agent": "python-requests/2.31.0",
"source": "user_agent"
},
"text": "User agent looks automated (http_client)"
},
{
"code": "automated_credential_action",
"path": "user_agent",
"context": {
"rule": "AutomatedCredentialActionRule",
"history_independent": true,
"severity": 0.75,
"action": "login",
"bot_type": "http_client",
"bot_signals": [
"known_bot_pattern:python-requests"
],
"datacenter": false,
"asn_org": null,
"ip_address": "81.2.69.160",
"second_factor": null,
"user_agent": "python-requests/2.31.0"
},
"text": "login performed by http_client"
}
],
"enforcement": "shadow",
"verdict": "review",
"should_block": false,
"should_challenge": false,
"should_review": true,
"would_block": true,
"would_challenge": false,
"recommendation": "BLOCK: High-risk activity detected. Recommend blocking transaction and triggering manual review.",
"confidence": 0.7,
"coverage": 0.15,
"factors": [
"bot_detected:http_client",
"automated_credential_action"
],
"degraded": [],
"disabled_rules": [],
"policy_matches": {},
"block_streak": 1,
"shadow": [],
"hook": null,
"challenge": null,
"step_up_method": null,
"agent": null
},
"errors": []
}Compare it with the same event in test. verdict is review, not block, so your code lets the login through, exactly as if Flit were not there. would_block is true: that is what Flit would have done. Review is the one thing that still happens in shadow, because a case in a queue costs a reviewer's attention and no customer anything. enforcement says which of the two you are in.
verdict. If your code reads would_block to refuse people, you are no longer in shadow. Log it; do not branch on it.3. Tell Flit what happened
A decision is a guess until you know how the event ended. When an account turns out to have been taken over, a payment comes back as a chargeback, or a customer you would have blocked turns out to be real, report it against your own event id:
curl -s -X POST "$FLIT/api/v1/applications/$LIVE_APP/outcomes" \
-H "Authorization: Bearer $LIVE_KEY" \
-H 'Content-Type: application/json' \
-d '{
"event_id": "login_2001",
"label": "fraud",
"amount": 1200,
"currency_code": "USD"
}'const response = await fetch(`${process.env.FLIT}/api/v1/applications/${process.env.LIVE_APP}/outcomes`, {
method: "POST",
headers: { Authorization: `Bearer ${process.env.LIVE_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({
"event_id": "login_2001",
"label": "fraud",
"amount": 1200,
"currency_code": "USD"
}),
});
const { data, errors } = await response.json();import os
import requests
response = requests.post(
f"{os.environ['FLIT']}/api/v1/applications/{os.environ['LIVE_APP']}/outcomes",
headers={"Authorization": f"Bearer {os.environ['LIVE_KEY']}"},
json={
"event_id": "login_2001",
"label": "fraud",
"amount": 1200,
"currency_code": "USD",
},
)
data = response.json()["data"]{
"data": {
"audit_id": "5e93a1a3-d2ca-4a98-bbb7-7e44955833cc",
"event_id": "login_2001",
"label": "fraud",
"labeled_at": "2026-12-02T18:59:29.081780Z",
"amount": 1200.0,
"currency_code": "USD"
},
"errors": []
}| Label | Use it when |
|---|---|
fraud | The event was fraud. |
chargeback | A payment was disputed and reversed. |
legit | You checked, and it was a real customer. |
false_positive | Flit refused or would have refused it, and it was a real customer. |
amount and currency_code are the loss as you measured it. Leave them out on a payment and Flit uses the payment's own amount. On a login there is no amount to fall back on, so send one if the takeover cost something.
Report the good outcomes too. A report that only ever hears about fraud cannot tell you what Flit would have cost you in customers turned away.
4. Read the report
The loss ledger adds up every outcome you reported against what Flit decided at the time.
curl -s "$FLIT/api/v1/applications/$LIVE_APP/loss?days=30" \
-H "Authorization: Bearer $LIVE_KEY"const response = await fetch(`${process.env.FLIT}/api/v1/applications/${process.env.LIVE_APP}/loss?days=30`, {
headers: { Authorization: `Bearer ${process.env.LIVE_KEY}` },
});
const { data, errors } = await response.json();import os
import requests
response = requests.get(
f"{os.environ['FLIT']}/api/v1/applications/{os.environ['LIVE_APP']}/loss?days=30",
headers={"Authorization": f"Bearer {os.environ['LIVE_KEY']}"},
)
data = response.json()["data"]{
"data": {
"application": "Example Ltd",
"enforcement": "shadow",
"window": {
"days": 30,
"labelled": 1
},
"counts": {
"fraud": 1,
"legit": 0,
"prevented": 0,
"in_shadow": 1,
"flagged": 0,
"leaked": 0,
"friction": 0,
"unpriced": 0
},
"money": {
"USD": {
"prevented": 0.0,
"in_shadow": 1200.0,
"flagged": 0.0,
"leaked": 0.0,
"friction": 0.0,
"net": 0.0,
"leak_rate": 0.0
}
},
"currency": "NGN"
},
"errors": []
}Counts are decisions; money is the same figures as amounts, kept apart per currency and never converted.
| Figure | What it counts |
|---|---|
in_shadow | Fraud Flit would have blocked, but was not yet acting on. This is the number shadow exists to produce: what enforcing would have saved. |
leaked | Fraud Flit would have allowed. What it would not have saved. |
flagged | Fraud it would have sent to review or a challenge instead of blocking. |
friction | Real customers it blocked. The cost of enforcing. |
prevented | Fraud blocked while enforcing. Zero throughout shadow. |
unpriced | Labelled decisions with no amount, counted but in no sum. |
In the example one outcome has been reported: a takeover Flit would have blocked, worth 1,200 USD. After a few weeks of real traffic the same call is your evidence, in your own numbers. The console's Overview shows the decisions themselves day by day while you wait.
5. Decide
Turn enforcement on when in_shadow is worth more to you than friction costs. That is a judgement about your business, and it is yours. Enforcement is switched by the Flit team at your request; from then on verdict can say block and challenge, and the same ledger reports prevented.