FlitDocs

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

  1. Have live mode opened

    Verify your email, then ask the Flit team. Live appears beside test in the console, in shadow.

  2. Create live keys

    Live has its own id and its own keys. Test keys do not work on it.

  3. Set the policy again

    Nothing you configured in test is carried over.

  4. Run in shadow

    Send production traffic, report outcomes, read the loss report.

  5. Decide what happens when Flit cannot answer

    Before it can refuse anyone, not after.

  6. 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:

POST /api/v1/auth/token
curl -s -X POST "$FLIT/api/v1/auth/token" \
  -H 'Content-Type: application/json' \
  -d '{
    "email": "[email protected]",
    "password": "a long passphrase you chose"
  }'
200 Answer
{
  "data": {
    "refresh": "eyJ…",
    "access": "eyJ…"
  },
  "errors": []
}
export TOKEN=…   # data.access, good for 15 minutes
POST /api/v1/applications/$LIVE_APP/keys
curl -s -X POST "$FLIT/api/v1/applications/$LIVE_APP/keys" \
  -H "Authorization: Bearer $TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "production"
  }'
201 Answer
{
  "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_shadow is what enforcing would have saved, and friction what 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, challenge included, 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.

PATCH /api/v1/organizations/$ORG/policy
curl -s -X PATCH "$FLIT/api/v1/organizations/$ORG/policy" \
  -H "Authorization: Bearer $TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "required_enforcement": "enforcing"
  }'
200 Answer
{
  "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:

POST /api/v1/applications/$LIVE_APP/audit-authentication
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"
  }'
200 Answer the fields this page talks about
{
  "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.