Skip to content

Report outcomes

POST
/v1/outcomes
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.

Media typeapplication/json
One of:
object
outcome_id

Your ID for this report. Resending it replaces the earlier one.

string
<= 128 characters
request_id

The decision ID

string
<= 64 characters
account_id

The account

string
outcome
required
string
Allowed values: completed declined cancelled abandoned confirmed_fraud confirmed_good chargeback charged_off_fraud abuse withdrawn
outcome_type

A core type from GET /v1/outcome-types

string
role

Defaults from the outcome type.

string
Allowed values: bad_actor victim good_party
bot_truth

What you learned about who was behind it.

string
Allowed values: human bot agent_authorized agent_unauthorized
occurred_at

A date (2026-11-21) or RFC 3339 time. Defaults to now.

string
source
string
Allowed values: analyst chargeback customer_report charge_off law_enforcement system
amount

The money lost or at risk, in major units of currency, as a number or a string. Overrides the decision’s amount in savings reports.

One of:
number
currency

The ISO 4217 code of amount. Defaults to the decision’s currency

string
>= 3 characters <= 3 characters
replaces

For withdrawn

string
notes

Free text. Card numbers and other sensitive values are removed.

string
<= 2000 characters

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"
}

The result, or one result per outcome for a batch.

Media typeapplication/json
One of:
object
outcome_id
string
status
required
string
Allowed values: accepted replaced withdrawn error
decision_id
string
outcome_type
string
outcome_class
string
Allowed values: fraud abuse good
role
string
subscriber_type

Your own type

string
error
object
code
required

Stable error code. Branch on this

string
message
required

What went wrong.

string
fix

What to change.

string

Examples

Exampleaccepted
{
"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.

Media typeapplication/json
One of:
object
error
required
object
code
required

Stable error code. Branch on this

string
message
required

What went wrong.

string
fix

What to change.

string

Example

{
"status": "accepted",
"outcome_class": "fraud"
}

The key is missing, unknown, revoked, or expired (invalid_api_key).

Media typeapplication/json
object
error
required
object
code
required

Stable error code. Branch on this

string
message
required

What went wrong.

string
fix

What to change.

string

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

Media typeapplication/json
object
error
required
object
code
required

Stable error code. Branch on this

string
message
required

What went wrong.

string
fix

What to change.

string

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.

Media typeapplication/json
object
outcome_id
string
status
required
string
Allowed values: accepted replaced withdrawn error
decision_id
string
outcome_type
string
outcome_class
string
Allowed values: fraud abuse good
role
string
subscriber_type

Your own type

string
error
object
code
required

Stable error code. Branch on this

string
message
required

What went wrong.

string
fix

What to change.

string

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.

Media typeapplication/json
object
error
required
object
code
required

Stable error code. Branch on this

string
message
required

What went wrong.

string
fix

What to change.

string

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"
}
}
Retry-After
integer
>= 1

Seconds to wait before retrying.