How to hit the TypeSafe (Jev) API

TypeSafe's Jev models don't generate text: you send some state and typed questions, and get back a structured answer with probabilities — for routing, classification, and other decisions. Every model is served at POST https://api.typesafe.ai/v1/systemone.

Authentication

Create a key at typesafe.ai. Send it as Authorization: Bearer <key>. In the examples it's written {{TYPESAFE_API_KEY}}.

Full reference: https://docs.typesafe.ai/

Route a support message

A choice question; the answer includes choice, probabilities, and confidence. Example from TypeSafe's docs.

curl https://api.typesafe.ai/v1/systemone \
  -H "Authorization: Bearer {{TYPESAFE_API_KEY}}" \
  -H "Content-Type: application/json" \
  -d '{"model": "jev-latest", "state": "Help! My payouts have been failing for 3 days.", "questions": {"department": {"type": "choice", "instructions": "Which team should handle this?", "criteria": {"billing": "Payments, invoicing, refunds", "technical": "Bugs, outages, integrations", "sales": "Pricing, upgrades, new accounts"}}}}'
Run in PostTaco