Outcome Feedback
POST https://api.bipkit.io/api/v1/feedbackAuthorization: Bearer bpk_live_YOUR_API_KEYContent-Type: application/jsonRequired Scope: evaluate:run
Submit verified ground-truth outcomes after a human operator or downstream System Two check confirms whether a decision was accurate.
Example Request
Section titled “Example Request”import { Bipkit } from "@bipware-org/bipkit";
const bipkit = new Bipkit();
const receipt = await bipkit.feedback.submit({ request_id: "eval_01K8FA1234567890ABCDEFGH", verified_decision: "billing", was_accurate: true, operator_notes: "Confirmed duplicate charge by billing operations",});
console.log(receipt.status, receipt.recorded_at);from bipkit import Bipkit
client = Bipkit()
receipt = client.feedback.submit( request_id="eval_01K8FA1234567890ABCDEFGH", verified_decision="billing", was_accurate=True, operator_notes="Confirmed duplicate charge by billing operations",)
print(receipt.status, receipt.recorded_at)notes := "Confirmed duplicate charge by billing operations"receipt, err := client.Feedback.Submit(ctx, bipkit.CustomerFeedbackRequest{ RequestID: "eval_01K8FA1234567890ABCDEFGH", VerifiedDecision: "billing", WasAccurate: true, OperatorNotes: ¬es,})use bipkit::CustomerFeedbackRequest;use serde_json::json;
let receipt = client .submit_feedback(&CustomerFeedbackRequest { request_id: "eval_01K8FA1234567890ABCDEFGH".into(), verified_decision: json!("billing"), was_accurate: true, operator_notes: Some("Confirmed duplicate charge by billing operations".into()), }) .await?;curl -X POST https://api.bipkit.io/api/v1/feedback \ -H "Authorization: Bearer bpk_live_YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "request_id": "eval_01K8FA1234567890ABCDEFGH", "verified_decision": "billing", "was_accurate": true, "operator_notes": "Confirmed duplicate charge by billing operations" }'Enterprise Audit Linkage: If you need cryptographically linked outcomes on your Decision Provenance Ledger, also record outcomes via
POST /api/v1/provenance/outcomesorPOST /api/v1/provenance/outcomes/batch.
