FlitDocs

Test mode and live mode

An application has two sides. Test is for building against. Live is for your customers. They share a name and nothing else.

How they differ

TestLive
How you get itSigning up.Opened by the Flit team once your email is verified.
Keys beginflit_sk_test_flit_sk_live_
Does Flit act?Yes, always. verdict says block when it means it, so you can build and test your handling.Not at first. Live starts in shadow and acts once you enforce.
Decisions a day1,000.No daily limit.
The networkNeither reads from it nor adds to it. What you make up in test reaches nobody.Sees what other Flit customers have confirmed as fraud, and adds what you confirm.

What is separate

Each side has its own:

  • id, the one in every URL. application.id in an answer is what the two sides have in common; id is the side you are talking to, and mode says which.
  • keys. A test key sent to the live id is refused with 403, and the other way round.
  • policy. Caps, rules, step-up method and webhooks are set per side. Nothing is copied when live opens.
  • history. Accounts, devices, decisions and cases seen in test do not exist in live. An address you got blocked in test is unknown in live.

Your sign-in, your organization and the application's name are shared. In the console, the Test and Live switch at the top moves between the two sides of whichever application is open.

The daily limit in test

Test allows 1,000 decisions a day, counted from midnight UTC. Past that, decisions are refused with status 429 and the code sandbox_quota_exceeded; Retry-After is the number of seconds until midnight. Requests that fail validation are not counted.

The limit is there because test is open to anyone with an email address. If you are load testing, ask for live.

More than one test application

An organization can have up to five, for separate products or teams. The owner adds one in the console, or with POST /api/v1/organizations/$ORG/applications. Each can have live opened beside it.

Which to use when

ToUse
Build the integration, and see a block and a challenge end to endTest.
Run your own automated testsTest, with a key kept for CI.
Find out what Flit does on your customersLive, in shadow. Test traffic is made up and cannot tell you.
Try a change of policy on productionNeither: simulate it against live's past decisions first, with POST …/simulations.