Prerequisites
- A Levanto API key (
lv_live_...) — see Authentication if you don’t have one yet
Endpoint
Make a Yes/No decision
Every/decide call requires your API key — see Authentication for the header options and error codes.
Request shape
Every/decide request uses this structure:
content for the thing being evaluated. Use question.kind to select the decision kind and question.instructions for the criterion.
Each decision kind has its own size limits (option counts, tag counts, content length). See Limits before sending large requests.
Endpoints
| Method | Path | Auth required | Purpose |
|---|---|---|---|
| GET | /ready | No | Model readiness — 503 while loading, 200 when ready |
| POST | /decide | Yes | One decision |
| POST | /decide/batch | Yes | Many decisions |
Next steps
Yes/No
Binary questions with probability and confidence.
Choice
Pick the best option from a set.
Use cases
Routing, guardrails, moderation, and ops triage patterns.