Give it state
Use a ticket, message, form fields, or the structured context your agent already sees.
state = ticket.text
Structured decisions for software teams · Decisions API
Turn application state and typed questions into structured choices, scores, and probability signals your code can use. Test a real workflow in the Decisions API playground, then connect the REST API.
01 / Input state
state02 / Decision
choiceOnline playground
Test application state and typed questions online, then inspect the structured JSON result.
Sign in to use the playground free with unlimited runs.
Decisions API for developers
Test typed questions against real application state, then connect structured results to your product.
Use a ticket, message, form fields, or the structured context your agent already sees.
state = ticket.textDescribe the decision with choice, score, or noul. Ask multiple questions in one request.
questions = { intent, urgent }Use the result and its probability to queue, route, block, or request review. Your system keeps control.
if result.urgent: escalate()A decision layer for applications
Decisions API is for product logic that needs a bounded answer, a probability signal, and a clear handoff back to code.
Name the allowed outcomes first, so downstream code receives a value it can validate and route.
Use one shared state to classify intent, measure urgency, and check policy without assembling a chain of separate prompts.
Read the probability distribution with the decision and send ambiguous or high-impact cases to review.
Map the result to your own functions, queues, approval rules, and audit trail.
Send state and typed questions to the REST endpoint; receive answers keyed to your question IDs.
The docs cover request fields, answer types, response handling, and the limits to account for before production.
Decisions in production systems
Use Decisions API at the point where product code needs a judgment. Your application still owns model selection, permissions, retries, and execution.
Classify an incoming task against your approved destinations, then let deterministic code dispatch it.
Evaluate whether a requested tool action fits the policy and route uncertain or sensitive cases for approval.
Evaluate intent, urgency, and review needs from the same ticket state before assigning queue priority.
Decide which tool results still matter and preserve source details when context is compressed.
Decisions API
Try the API free online, then create an API key and connect structured decisions to your product.
Explore API docsWhat a request looks like
Drop the decision into an existing service
from typesafe_sdk import Choice, Noul
response = client.system_one(
state=ticket,
questions={
"intent": Choice(criteria={...}),
"needs_human": Noul(
instructions="Does this need a person?"
),
},
)
# response.answers["intent"].choiceStart by testing one Decisions API request. Choose a credit package for the concurrency and volume your application needs, then scale as usage grows.
One-time $10, $100, and $1,000 packages do not renew automatically. Purchased credits remain available without an expiration date.
Starter
For a first integration: validate a small workflow in the playground and send its first server-side request.
Pro
For products that need steady classification, scoring, and policy checks across active workflows.
Enterprise
For teams operating multiple workspaces or custom production integrations, with 10% additional credits.
Agent integration
Call the Decisions API endpoint from your existing coding-agent workflow for bounded classification, routing, and safety checks. Your application continues to control tools and permissions.
Read the agent guideCreate a Decisions API key and configure the endpoint in your agent or application environment.
Keep the API key in a server-side environment variable, outside source code and agent transcripts.
Give the agent a bounded question; it returns a choice, score, or yes probability that code can use.
API environment setup
Use the API from your existing agent workflow
export DECISIONS_API_KEY="sk_your_key_here"
export DECISIONS_API_BASE_URL="https://decisions-api.pro"The agent still keeps control
The API evaluates a decision. Your agent, application permissions, deterministic rules, and human approvals still control the final action.
Decisions API documentation
Follow a practical path: define typed questions, send application state, and use structured results in code.
Open full docsCreate an account, prepare your first state and questions, and inspect the typed decision in the response.
Use choice, score, and noul for classification, continuous scoring, and yes-or-no decisions. Ask multiple questions in one request.
Create an API key, follow the SDK or REST example, and use probabilities and confidence to drive your application logic.
The API accepts text, JSON objects, and arrays of text. Images, audio, and video are not supported yet; validate accuracy separately for non-English inputs.
Go from the core definition to provider-specific integration notes and copyable examples.
Practical answers about inputs, response signals, model access, and integration boundaries.
Try a representative case in the playground, inspect the JSON response, and connect the result to your own application logic.