Skip to content

Feedback

Tell Asqary the real outcome of a transaction. Labels let backtests report precision and recall, and the latest label shows on the decision as feedback_label.

POST /v1/feedback:

{
"decision_id": "dec_…",
"label": "fraud",
"fraud_type": "account_takeover",
"outcome_at": "2026-09-29T08:00:00Z",
"notes": "Customer reported unauthorised disbursement"
}
  • Identify the transaction with decision_id or your own transaction_id.
  • Labels: fraud, legitimate or suspected.
  • Events are append-only. The latest one becomes the decision’s feedback_label.
  • Send an Idempotency-Key header to make retries safe.
  • Outcomes for transactions Asqary never scored are stored unlinked.

With the SDK:

await asqary.feedback.create({
decisionId: decision.decisionId,
label: "fraud",
fraudType: "account_takeover",
outcomeAt: new Date(),
});

The key needs the feedback:write scope.