curl -X POST https://delegatezero.com/api/v1/decisions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"request": "From: Sarah Chen \nCompany: Northstar Health\nSubject: Friday launch confirmation\n\nCan you confirm we are definitely live by Friday? Our team wants to announce it in Monday's board update."
}'
import axios from "axios";
const decision = await axios.post(
"https://delegatezero.com/api/v1/decisions",
{
request: "From: Sarah Chen \nCompany: Northstar Health\nSubject: Friday launch confirmation\n\nCan you confirm we are definitely live by Friday? Our team wants to announce it in Monday's board update."
},
{
headers: {
Authorization: `Bearer ${process.env.API_KEY}`
}
}
);
import requests
import os
response = requests.post(
"https://delegatezero.com/api/v1/decisions",
headers={
"Authorization": f"Bearer {os.environ['API_KEY']}",
"Content-Type": "application/json"
},
json={
"request": "From: Sarah Chen \nCompany: Northstar Health\nSubject: Friday launch confirmation\n\nCan you confirm we are definitely live by Friday? Our team wants to announce it in Monday's board update."
}
)
{
"id": "dec_abc123xyz",
"decision": "execute",
"confidence": 0.92,
"response": "Hi Sarah, thanks for checking. I would not confirm a Friday launch. As with the Meridian rollout in January, we should wait until engineering sign-off before giving a firm go-live date. Right now Monday is the safer target, so I would frame Monday's board update around that timing rather than a Friday commitment.",
"audit_url": "https://delegatezero.com/app/decisions/abc123xyz"
}