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
| Test | Live | |
|---|---|---|
| How you get it | Signing up. | Opened by the Flit team once your email is verified. |
| Keys begin | flit_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 day | 1,000. | No daily limit. |
| The network | Neither 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.idin an answer is what the two sides have in common;idis the side you are talking to, andmodesays 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
| To | Use |
|---|---|
| Build the integration, and see a block and a challenge end to end | Test. |
| Run your own automated tests | Test, with a key kept for CI. |
| Find out what Flit does on your customers | Live, in shadow. Test traffic is made up and cannot tell you. |
| Try a change of policy on production | Neither: simulate it against live's past decisions first, with POST …/simulations. |