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_idor your owntransaction_id. - Labels:
fraud,legitimateorsuspected. - Events are append-only. The latest one becomes the decision’s
feedback_label. - Send an
Idempotency-Keyheader 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.