Go live and enforce
Going live is two separate steps, weeks apart. First Flit sees your real traffic and acts on none of it. Then, when your own numbers say so, it acts.
The order to do it in
- Have live mode opened
Verify your email, then ask the Flit team. Live appears beside test in the console, in shadow.
- Create live keys
Live has its own id and its own keys. Test keys do not work on it.
- Set the policy again
Nothing you configured in test is carried over.
- Run in shadow
Send production traffic, report outcomes, read the loss report.
- Decide what happens when Flit cannot answer
Before it can refuse anyone, not after.
- Enforce
One switch. It can be switched back.
Live keys
Keys are made by a person, in the console under Developers, or with a sign-in token:
curl -s -X POST "$FLIT/api/v1/auth/token" \
-H 'Content-Type: application/json' \
-d '{
"email": "you@example.com",
"password": "a long passphrase you chose"
}'const response = await fetch(`${process.env.FLIT}/api/v1/auth/token`, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"email": "you@example.com",
"password": "a long passphrase you chose"
}),
});
const { data, errors } = await response.json();import os
import requests
response = requests.post(
f"{os.environ['FLIT']}/api/v1/auth/token",
json={
"email": "you@example.com",
"password": "a long passphrase you chose",
},
)
data = response.json()["data"]{
"data": {
"refresh": "eyJ…",
"access": "eyJ…"
},
"errors": []
}export TOKEN=… # data.access, good for 15 minutes
curl -s -X POST "$FLIT/api/v1/applications/$LIVE_APP/keys" \
-H "Authorization: Bearer $TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"name": "production"
}'const response = await fetch(`${process.env.FLIT}/api/v1/applications/${process.env.LIVE_APP}/keys`, {
method: "POST",
headers: { Authorization: `Bearer ${process.env.TOKEN}`, "Content-Type": "application/json" },
body: JSON.stringify({
"name": "production"
}),
});
const { data, errors } = await response.json();import os
import requests
response = requests.post(
f"{os.environ['FLIT']}/api/v1/applications/{os.environ['LIVE_APP']}/keys",
headers={"Authorization": f"Bearer {os.environ['TOKEN']}"},
json={
"name": "production",
},
)
data = response.json()["data"]{
"data": {
"id": "7e39cf66-a9bd-4668-86f8-21d656f5d5fd",
"name": "production",
"environment": "live",
"redacted": "flit_sk_live_…BUZY",
"created_at": "2026-12-02T18:59:29.087236Z",
"last_used_at": null,
"revoked_at": null,
"key": "flit_sk_live_8sT…shown once"
},
"errors": []
}key is shown once. Make one per service that calls Flit, named for the service, so that one can be revoked without stopping the others: DELETE /api/v1/applications/$LIVE_APP/keys/{id}. last_used_at in the list tells you which are still in use.
Set the policy again
Live starts from Flit's defaults. Caps, beneficiary control, the step-up method, a webhook, rules you wrote: send each of those PATCH requests again, to the live id. This is deliberate. Test is where you try things, and a cap of five million that was right for a demonstration should not arrive in production by itself.
Do it at the start of shadow, not at the end. A cap that is set while in shadow is measured in shadow, and beneficiary control needs that time to learn who you already pay.
Before you enforce
Enforcing is the moment Flit can cost you a real customer. Check each of these first:
- The loss report is worth it.
in_shadowis what enforcing would have saved, andfrictionwhat it would have cost. Both need outcomes to have been reported, the good ones included. - Someone reads the review queue. Reviews happen in shadow too, so by now you know how many a day there are.
- Your code handles every verdict,
challengeincluded, and handles Flit not answering. - The user's address and user agent are on every event. A missing one is the commonest reason for a wrong decision.
- Support knows. A refused customer will ask why. The decision's
audit_id, stored beside your own record, is how support finds the answer in the console.
Enforce
The owner of the organization can require enforcement, signed in as a person. Your organization's id is data.organization.id in the answer to signing up.
curl -s -X PATCH "$FLIT/api/v1/organizations/$ORG/policy" \
-H "Authorization: Bearer $TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"required_enforcement": "enforcing"
}'const response = await fetch(`${process.env.FLIT}/api/v1/organizations/${process.env.ORG}/policy`, {
method: "PATCH",
headers: { Authorization: `Bearer ${process.env.TOKEN}`, "Content-Type": "application/json" },
body: JSON.stringify({
"required_enforcement": "enforcing"
}),
});
const { data, errors } = await response.json();import os
import requests
response = requests.patch(
f"{os.environ['FLIT']}/api/v1/organizations/{os.environ['ORG']}/policy",
headers={"Authorization": f"Bearer {os.environ['TOKEN']}"},
json={
"required_enforcement": "enforcing",
},
)
data = response.json()["data"]{
"data": {
"organization_id": "7bc5dce7-6417-44bd-86d1-19863bf8351b",
"rules": {
"block": [],
"review": [],
"challenge": [],
"allow": []
},
"max_block_at": null,
"max_review_at": null,
"required_enforcement": "enforcing",
"disabled_rules": []
},
"errors": []
}This applies to every application in the organization. If you have more than one and want to enforce them one at a time, ask the Flit team to switch a single application instead.
From the next decision, the scripted login that shadow let through is refused:
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_2002",
"client_id": "user_78",
"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_2002",
"client_id": "user_78",
"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_2002",
"client_id": "user_78",
"action": "login",
"status": "success",
"ip_address": "81.2.69.160",
"user_agent": "python-requests/2.31.0",
},
)
data = response.json()["data"]{
"data": {
"audit_id": "cbc74b33-1ff4-4a9b-9028-66f04f77c51a",
"enforcement": "shadow",
"verdict": "block",
"should_block": true,
"would_block": true,
"factors": [
"bot_detected:http_client",
"automated_credential_action"
]
}
}The whole answer
{
"data": {
"audit_id": "cbc74b33-1ff4-4a9b-9028-66f04f77c51a",
"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": "block",
"should_block": true,
"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": 2,
"shadow": [],
"hook": null,
"challenge": null,
"step_up_method": null,
"agent": null
},
"errors": []
}enforcement on a decision still reports the application's own setting. The verdict is what tells you Flit is acting.
Switching back
Send {"required_enforcement": null} to the same endpoint. Flit goes back to deciding without acting, from the next decision. It is recorded as a loosening of your policy, with who did it.
Afterwards
Keep reporting outcomes. The loss report now fills in prevented, and friction is no longer hypothetical: every false_positive you report is a customer Flit turned away. If friction climbs, the findings on those decisions say which rule to look at, and POST …/simulations tries a change of weights or thresholds against your past decisions before you make it.