FlitDocs

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.

  1. Your first decision

    Sign up, send one login, read the answer. About ten minutes, with curl.

  2. Read the answer

    What each field of a decision means, and what your code does with it.

  3. 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.

  1. 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.

  2. 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.

  3. 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.

  4. Go live and enforce

    Live keys, and turning enforcement on from numbers you measured.

  5. When Flit cannot answer

    Timeouts, partial answers and retries. Decide this before Flit can refuse anyone.

To understand it

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.

These pages are checked against the API. Every request shown here is sent to Flit's own code each time it changes, and the answer printed under it is the one that came back. If a page and the API ever disagree, the build fails before the page is published.