Scoring Endpoints

Account takeover detection

Catch takeovers before money moves. POST /v1/score/account_takeover scores account takeover detection from 0 to 1000 for $0.002 a call.

Spot the takeover before the money moves. Score logins, password resets and contact changes as they happen. Describe the activity and what is normal for the account, and get a score for how likely it is that someone else is in control.

EndpointPriceGroup
POST /v1/score/account_takeover$0.002 per callIdentity & Accounts

Request

Send what you know in one context object. activity is required; every other field is optional. A field can hold text, JSON or CSV.

curl https://api.finic.ai/v1/score/account_takeover \
  --header "Authorization: Bearer $FINIC_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{
    "context": {
      "activity": [
        { "at": "2026-11-25T15:02:11Z", "type": "login", "new_device": true },
        { "at": "2026-11-25T15:04:40Z", "type": "password_reset" },
        { "at": "2026-11-25T15:08:02Z", "type": "email_changed" },
        { "at": "2026-11-25T15:09:30Z", "type": "payee_add_started" }
      ],
      "account": { "opened": "2019-04-02", "usual_login_city": "Columbus, OH", "usual_device": "iPhone 15", "email_last_changed": "2020-01-15" },
      "device": { "os": "Windows 11", "browser": "Chrome 131", "seen_on_account": false },
      "ip": { "address": "203.0.113.77", "city": "Lagos", "country": "NG", "network": "mobile" },
      "other_context": "Customer called support at 15:30 to say they cannot log in"
    }
  }'

Fields you send

Send the details, not only an ID: an account ID tells the score nothing, but the account's age, profile and history do. Fields that are not in this list are also read.

FieldDescription
activityRequiredThe session's events, in order, with timestamps.
accountOptionalA description of the account, not an account ID: its age, the contact details on file, and how the customer usually signs in.
deviceOptionalA description of the device in use now: its type, its operating system, and whether this account has used it before.
ipOptionalThe IP address with what your lookup says about it: country, city and network type. An address by itself says little.
next_actionOptionalWhat the session is trying to do next.
other_contextOptionalAny other information, structured or unstructured, that is useful for scoring.

Response

score runs from 0, the lowest risk, to 1000, the highest. questions are the yes/no questions behind it, each with the probability that the answer is yes.

{
  "score": 884,
  "questions": [
    {
      "text": "Is this the first time the account has used this device?",
      "probability": 0.95
    },
    {
      "text": "Were the password and contact details changed within minutes of each other?",
      "probability": 0.94
    },
    {
      "text": "Is the login far from where the customer usually signs in?",
      "probability": 0.92
    },
    {
      "text": "Is the session about to move money or add a payee?",
      "probability": 0.86
    }
  ],
  "request_id": "req_01M4YF1068X8B4C458ENPD4JHT"
}

The questions behind the score

  1. Is this the first time the account has used this device?
  2. Were the password and contact details changed within minutes of each other?
  3. Is the login far from where the customer usually signs in?
  4. Is the session about to move money or add a payee?

Every organization gets the same questions for this score. To use your own questions, or to calibrate a score to your own outcomes, copy it to a custom scoring model in the Finic app (Starter plan and above).

Turn the score into an action

These thresholds are examples. Choose your own, and change them as you learn.

ScoreActionExample
Under 300ApproveLet the login or change through.
300 to 599Step upAsk for a second factor.
600 to 849ReviewHold the change for an analyst.
850 or moreBlockLock the session.

Errors

StatustypeWhen
400invalid_requestcontext is missing, is not a JSON object, or a required field (activity) is empty. param names the field.
401authentication_errorThe API key is missing or not valid.
402insufficient_creditThe organization has no credit. Add credit in the Finic app.
429rate_limitedToo many requests. Retry with exponential backoff.

See the API reference for every error and limit, and Pricing for what a call costs.

On this page