Skip to content

Recording Outcomes

POST/api/v1/provenance/outcomes
Terminal window
curl -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"
}'
POST/api/v1/provenance/outcomes/batch

Submit between 1 and 100 outcomes in a single request (items[]):

Terminal window
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_name to null (or omit it) for decisions created via POST /api/v1/decide.