Skip to main content
Get a decision from Sage in a few minutes.

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.
Example response:

Request shape

Every /decide request uses this structure:
Use 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

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.