Connect an agent
Start with one consequential action. Point an existing agent at KIFF, read the decision, then decide when to move from observe to enforce.
API endpoint
https://api.kiff.devAPI key 2 active
export KIFF_API_URL="https://api.kiff.dev"
export KIFF_API_KEY="kiff_live_..."
curl -sS "$KIFF_API_URL/v1/proposals/decide" \
-H "Authorization: Bearer $KIFF_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"id": "proposal-refund-001",
"entity_type": "Order",
"entity_id": "order_123",
"action_name": "refund_order",
"actor_id": "agent:refund-bot",
"parameters": {
"amount_cents": 4999,
"reason": "duplicate charge"
}
}'