Flit documentation
Flit sits on your login, password reset and payout paths and answers one question before anything moves: should this happen? You send an event, and get back a decision with the reasons for it.
It is built for an attacker that is automated. A script that takes over accounts does not get tired, and it can slow down, change clients and stay under every fixed limit. Flit scores what one origin did across its whole session, so stepping carefully under each threshold does not help it.
Where to start
The first three pages are the whole integration at its smallest. Each one leaves you with something that works, and you can stop after any of them.
- Your first decision
Sign up, send one login, read the answer. About ten minutes, with curl.
- Read the answer
What each field of a decision means, and what your code does with it.
- Run in shadow
Put Flit on real traffic without it acting on anyone, and measure what it would have done to your money.
Then, by what it protects
Once decisions are flowing, these are in the order most teams reach for them.
- Stop account takeover
The login and reset events to send, and what Flit reads from them: a reset followed straight by a login, one address working through many accounts, a script on the login form.
- Cap what can leave
A limit on what can go out through one API key or initiator across every account, and a refusal of payouts to destinations it has never paid.
- Step up at payout
Send a risky payout to a one-time code, or to a liveness check through the identity vendor you already use. Passing never lifts a block.
- Go live and enforce
Live keys, and turning enforcement on from numbers you measured.
- When Flit cannot answer
Timeouts, partial answers and retries. Decide this before Flit can refuse anyone.
To understand it
- Why slowing down does not work: how a whole session is scored.
- Test mode and live mode: what they share and what they keep apart.
- Findings, one by one and Errors: the two lists to keep open while you build.
What every call looks like
There is one host, https://api.agentflit.com, and every answer has the same two parts:
{
"data": { … }, what you asked for, or null
"errors": [ … ] empty when it worked
}
You authenticate with an API key in a header: Authorization: Bearer flit_sk_test_…. A key that begins flit_sk_test_ reaches your application's test mode, and one that begins flit_sk_live_ reaches live. Neither works on the other.