curl -X POST https://delegatezero.com/api/v1/decisions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"request": "Respond to this internal Slack message.",
"context": {
"source": "slack",
"data": "Can we commit to having this ready by Friday?"
},
"instructions": {
"confidence_threshold": 0.85,
"tone": "direct"
}
}'
import axios from "axios";
const decision = await axios.post(
"https://delegatezero.com/api/v1/decisions",
{
request: "Respond to this internal Slack message.",
context: {
source: "slack",
data: "Can we commit to having this ready by Friday?"
},
instructions: {
confidence_threshold: 0.85,
tone: "direct"
}
},
{
headers: {
Authorization: `Bearer ${process.env.API_KEY}`
}
}
);
import requests
import os
response = requests.post(
"https://delegatezero.com/api/v1/decisions",
headers={
"Authorization": "Bearer {os.environ['API_KEY']}",
"Content-Type": "application/json"
},
json={
"request": "Respond to this internal Slack message.",
"context": {
"source": "slack",
"data": "Can we commit to having this ready by Friday?"
},
"instructions": {
"confidence_threshold": 0.85,
"tone": "direct"
}
}
)
{
id: "abc123xyz",
decision: "execute",
confidence: 0.92,
response: "Given the current workload, we should *not* commit to Friday. Recommend early next week to ensure quality.",
reason: "Confidence is high that the deadline can't be met safely by Friday based on workload context.",
audit_url: "https://delegatezero.com/app/audit/abc123xyz"
}