Scoring Endpoints

Real-time scam detection

Stop scam payments before the money leaves. POST /v1/score/scam scores real-time scam detection from 0 to 1000 for $0.005 a call.

Stop the scam while the customer is still in the app. In a scam, the real customer sends the money, so the login looks normal. Send the payment, the payee and what the customer says it is for, and get a score for how likely they are being scammed.

EndpointPriceGroup
POST /v1/score/scam$0.005 per callPayments

Request

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

curl https://api.finic.ai/v1/score/scam \
  --header "Authorization: Bearer $FINIC_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{
    "context": {
      "payment": { "amount_usd": 8500, "type": "bank_transfer", "first_payment_to_payee": true },
      "purpose": "Crypto investment, my advisor says the window closes today",
      "payee": { "account_type": "personal", "account_opened": "2026-11-04", "added": "2026-11-25" },
      "customer": { "age": 71, "customer_since": 1996, "median_payment_usd": 140 },
      "session": [
        { "at": "2026-11-25T11:02:10Z", "event": "app_backgrounded", "count": 4 },
        { "at": "2026-11-25T11:06:31Z", "event": "account_number_pasted" },
        { "at": "2026-11-25T11:07:02Z", "event": "scam_warning_dismissed", "seconds_shown": 2 }
      ]
    }
  }'

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
paymentRequiredThe amount, the type of payment, and how it compares with what the customer usually sends.
purposeOptionalWhat the customer says the payment is for, in their own words.
payeeOptionalA description of the payee, not a payee ID: when they were added, the type of account, and how long it has been open.
customerOptionalA description of the customer, not a customer ID: their age, how long they have been with you, and their usual payments.
sessionOptionalWhat the customer did in the app before paying: the session's events, in order.
messagesOptionalThe text of messages the customer shared or received.
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": 928,
  "questions": [
    {
      "text": "Is this a first payment to the payee, and far above the customer's usual?",
      "probability": 0.96
    },
    {
      "text": "Does the stated purpose read like an investment, romance or impersonation scam?",
      "probability": 0.95
    },
    {
      "text": "Did the customer go past a scam warning?",
      "probability": 0.93
    },
    {
      "text": "Is someone else rushing the customer?",
      "probability": 0.91
    }
  ],
  "request_id": "req_01M4YF1068X8B4C458ENPD4JHT"
}

The questions behind the score

  1. Is this a first payment to the payee, and far above the customer's usual?
  2. Does the stated purpose read like an investment, romance or impersonation scam?
  3. Did the customer go past a scam warning?
  4. Is someone else rushing the customer?

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 300ApproveSend the payment.
300 to 599Step upWarn the customer and ask them to confirm.
600 to 849ReviewHold the payment and call the customer.
850 or moreBlockStop the payment.

Errors

StatustypeWhen
400invalid_requestcontext is missing, is not a JSON object, or a required field (payment) 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