Skip to content

Outcomes

A decision is only as good as what it knows. Outcomes tell us what happened next: the payment cleared, it was account takeover, the customer repaid in full, or an earlier flag was wrong. They turn into history on the device and the account, so the next decision sees it, and they are the labels your models learn from.

POST /v1/outcomes needs a secret key with the outcomes scope. Full schema: Report outcomes.

Name the decision with request_id (the decision_id, or the tag’s request ID it used):

Terminal window
curl https://api.opencontext.com/v1/outcomes \
-H "Authorization: Bearer $SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"outcome_id": "case_5512",
"request_id": "dec_01M8YGM5XC012R9ZCQKTSX9RR7",
"outcome": "confirmed_fraud",
"outcome_type": "account_takeover",
"source": "analyst",
"occurred_at": "2026-11-24"
}'
{
"outcome_id": "case_5512",
"status": "accepted",
"decision_id": "dec_01M8YGM5XC012R9ZCQKTSX9RR7",
"outcome_type": "account_takeover",
"outcome_class": "fraud",
"role": "bad_actor"
}

Or name the whole account with account_id. An account-wide outcome reaches the devices the account used in the last 30 days.

outcome says what happened; outcome_type says what kind. GET /v1/outcome-types lists them all, with no key needed.

outcome Meaning Default type
completed, declined, cancelled, abandoned What happened operationally. No class. none
confirmed_fraud It was fraud other_fraud
chargeback A chargeback came in payment_fraud
charged_off_fraud Charged off as fraud first_party_fraud
abuse Abuse, not financial fraud other_abuse
confirmed_good A good customer other_good
withdrawn Retract an earlier report none

Core types by class:

  • Fraud: payment_fraud, account_takeover, identity_theft, synthetic_identity, first_party_fraud, money_mule, promo_abuse, scam_victim, other_fraud.
  • Abuse: cheating, fake_account, spam, harassment, scraping, other_abuse.
  • Good: good_customer, paid_in_full, identity_verified, step_up_passed, good_standing, false_positive_cleared, other_good.

Your own type names work too: we keep yours as subscriber_type and map it to the outcome’s default core type.

Field Use
role bad_actor or victim for fraud and abuse, good_party for good outcomes. A scam victim is a victim, so their device is not marked as a bad actor.
bot_truth human, bot, agent_authorized, or agent_unauthorized: what you learned about who was behind it.
source analyst, chargeback, customer_report, charge_off, law_enforcement, or system.
occurred_at A date or RFC 3339 time. Defaults to now.
amount The money lost or at risk (a chargeback, a charge-off), in major units, as a number or string. It replaces the decision’s amount when we report the money we saved you.
currency The ISO 4217 code of amount. Defaults to the decision’s currency, then USD.
notes Free text, up to 2,000 characters. Sensitive values are removed.

A person who is blocked in one browser can open another browser on the same computer, which shows up as a new device. So a block follows the account for a while:

  • After a decision denies an account on one device, any device that is new to the account gets HIST_BLOCKED_OTHER_DEVICE and a step_up recommendation for the next 72 hours.
  • After you report an account_takeover, the same happens for 30 days. The takeover marks the device that got in as the bad actor, never the account’s own reputation, because the account belongs to the victim.

The block also follows the computer. Each browser on a computer is its own device, but we link devices that look like the same computer (the same GPU, screen, CPU, operating system, installed fonts, and setup) and list them in the decision’s device.same_machine. When a linked device was reported as a bad actor, denied in the last 72 hours, or is on your block list, the decision adds DEV_OTHER_BROWSER_BLOCKED. That covers a brand-new account from the other browser, which the account rule cannot see. A likely link, seen close in time or on the same account, asks for a step-up; a possible link only adds risk, because identical computers set up the same way, such as an office fleet, can look alike. Safari hides the GPU model, so its links rely on the fonts and are weaker.

Devices the account used before the block are left alone, so the account’s usual devices keep working. When a new device passes the step-up, report step_up_passed for that decision and the device is cleared on that account. Withdrawing the takeover report ends it early.

Send up to 100 at once as {"outcomes": [ … ]}. The answer is always 200, with a result per outcome in the same order; check each status.

{ "results": [ { "status": "accepted", "outcome_id": "out_01…" }, { "status": "error", "error": { "code": "decision_not_found", "message": "…" } } ] }
  • Retries are safe. Send your own outcome_id; sending the same one again replaces the earlier report (status: replaced).
  • Withdraw a report that was wrong with {"outcome": "withdrawn", "outcome_id": "case_5512"}. Withdrawn outcomes never count.
  • Clear a false positive with confirmed_good and false_positive_cleared, which earns the device and account trust back.

The more you report, the sharper your decisions get. Good outcomes matter as much as fraud: they are how returning customers earn trust and sail through. A good start is chargebacks and analyst calls as fraud, accounts in good standing after 90 days, and every passed step-up as step_up_passed.