Recording Outcomes
Record Single Outcome
Section titled “Record Single Outcome”POST
/api/v1/provenance/outcomescurl -X POST https://api.bipkit.io/api/v1/provenance/outcomes \ -H "Authorization: Bearer bpk_live_YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "request_id": "eval_01K8FA1234567890ABCDEFGH", "output_name": "intent", "observed_effect": "system_admin" }'Record Batch Outcomes
Section titled “Record Batch Outcomes”POST
/api/v1/provenance/outcomes/batchSubmit between 1 and 100 outcomes in a single request (items[]):
curl -X POST https://api.bipkit.io/api/v1/provenance/outcomes/batch \ -H "Authorization: Bearer bpk_live_YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "items": [ { "request_id": "eval_01K8FA1234567890ABCDEFGH", "output_name": "is_destructive", "observed_effect": true }, { "request_id": "eval_01K8FA1234567890ABCDEFGI", "output_name": null, "observed_effect": "billing" } ] }'Set
output_nametonull(or omit it) for decisions created viaPOST /api/v1/decide.
