跳到正文
Jev

Jev API examples

Real request shapes for the hosted /api/v1/decide endpoint. Run the same scenarios in the playground before pasting production keys.

Support triage (choice + noul)

Route a frustrated billing message and decide whether to escalate — classic bounded decision, not a chat completion.

curl
curl https://jevtypesafe.org/api/v1/decide \
  -H "Authorization: Bearer jv_live_YOUR_KEY_HERE" \
  -H "Content-Type: application/json" \
  -d '{"state":"Customer: charged twice, waiting 5 days",
       "questions":{"topic":{"type":"choice","instructions":"Route",
         "criteria":{"billing":"money","bug":"broken","account":"login"}},
         "escalate":{"type":"noul","instructions":"Escalate to a human?"}}}'

More scenarios

Jev API Examples | curl, TypeScript, Python