curl https://kaienapi.com/v1/evaluate \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"model": "jev",
"state": {
"customer_message": "I was charged twice for order ord_7429.",
"duplicate_charge_usd": 680,
"customer_identity_verified": true,
"policy": "Refunds above USD 500 require human approval."
},
"questions": {
"action": {
"type": "choice",
"instructions": "Choose the safest next action.",
"criteria": {
"allow": "Issue the refund immediately.",
"review": "Require human approval before issuing the refund.",
"deny": "Reject the refund request."
}
}
}
}'