Report outcomes
const url = 'https://api.localhost/v1/outcomes';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"outcome_id":"case_5512","request_id":"dec_01M8YGM5XC012R9ZCQKTSX9RR7","outcome":"confirmed_fraud","outcome_type":"account_takeover","source":"analyst","occurred_at":"2026-11-24"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.localhost/v1/outcomes \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "outcome_id": "case_5512", "request_id": "dec_01M8YGM5XC012R9ZCQKTSX9RR7", "outcome": "confirmed_fraud", "outcome_type": "account_takeover", "source": "analyst", "occurred_at": "2026-11-24" }'Tell us what happened after a decision: it completed, it was fraud, it was a good customer,
or you were wrong earlier. Name the decision with request_id (the decision ID or the tag’s
request ID), or the whole account with account_id.
Send one outcome object, or a batch as {"outcomes": [...]} of up to 100. A batch answers
200 with a result per outcome; a single outcome answers 400 or 404 when it fails.
Sending the same outcome_id again replaces the earlier report, so retries are safe. To
retract one, send outcome: withdrawn with its outcome_id.
An account_takeover marks the device as the bad actor and never the account’s own
reputation. For 30 days, other devices new to that account get HIST_BLOCKED_OTHER_DEVICE
and a step_up recommendation until they pass one.
Needs a secret key with the outcomes scope.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
Your ID for this report. Resending it replaces the earlier one.
The decision ID
The account
A core type from GET /v1/outcome-types
Defaults from the outcome type.
What you learned about who was behind it.
A date (2026-11-21) or RFC 3339 time. Defaults to now.
The ISO 4217 code of amount. Defaults to the decision’s currency
For withdrawn
Free text. Card numbers and other sensitive values are removed.
object
object
Your ID for this report. Resending it replaces the earlier one.
The decision ID
The account
A core type from GET /v1/outcome-types
Defaults from the outcome type.
What you learned about who was behind it.
A date (2026-11-21) or RFC 3339 time. Defaults to now.
The ISO 4217 code of amount. Defaults to the decision’s currency
For withdrawn
Free text. Card numbers and other sensitive values are removed.
Examples
Confirmed fraud on one decision
{ "outcome_id": "case_5512", "request_id": "dec_01M8YGM5XC012R9ZCQKTSX9RR7", "outcome": "confirmed_fraud", "outcome_type": "account_takeover", "source": "analyst", "occurred_at": "2026-11-24"}A good customer, account wide
{ "account_id": "cust_1842", "outcome": "confirmed_good", "outcome_type": "paid_in_full"}A batch
{ "outcomes": [ { "request_id": "dec_01M8YGM5XC012R9ZCQKTSX9RR7", "outcome": "completed" }, { "outcome_id": "case_5512", "outcome": "withdrawn" } ]}Responses
Section titled “Responses”The result, or one result per outcome for a batch.
object
Your own type
object
Stable error code. Branch on this
What went wrong.
What to change.
object
object
Your own type
object
Stable error code. Branch on this
What went wrong.
What to change.
Examples
{ "outcome_id": "case_5512", "status": "accepted", "decision_id": "dec_01M8YGM5XC012R9ZCQKTSX9RR7", "outcome_type": "account_takeover", "outcome_class": "fraud", "role": "bad_actor"}The body or the outcome is not valid.
object
object
Stable error code. Branch on this
What went wrong.
What to change.
object
Your own type
object
Stable error code. Branch on this
What went wrong.
What to change.
Example
{ "status": "accepted", "outcome_class": "fraud"}The key is missing, unknown, revoked, or expired (invalid_api_key).
object
object
Stable error code. Branch on this
What went wrong.
What to change.
Example
{ "error": { "code": "invalid_api_key", "message": "the API key is missing, unknown, revoked, expired, or not allowed from this IP", "fix": "send a secret key as 'Authorization: Bearer <key>'; manage keys on the account page" }}The key lacks the scope (scope_not_granted), or its IP allowlist does not include the caller (invalid_api_key).
object
object
Stable error code. Branch on this
What went wrong.
What to change.
Example
{ "error": { "code": "scope_not_granted", "message": "this key does not have the decide scope", "fix": "create a key with the decide scope" }}The decision or outcome it names does not exist for this key’s environment.
object
Your own type
object
Stable error code. Branch on this
What went wrong.
What to change.
Example
{ "status": "accepted", "outcome_class": "fraud"}The key is calling faster than its limit (rate_limited). Each key has its own limit; see
Errors in the developer docs. Wait the seconds in Retry-After, then retry.
object
object
Stable error code. Branch on this
What went wrong.
What to change.
Example
{ "error": { "code": "rate_limited", "message": "this key is sending decisions faster than its limit", "fix": "wait for the Retry-After header, then retry; ask us if you need a higher limit" }}Headers
Section titled “Headers”Seconds to wait before retrying.