Question types
Ask for a choice, a yes/no, a score or a number, and read each answer.
Each question in questions has a type. One request can mix all four. Every example below is a full request body for POST https://api.respan.ai/api/v1/decisions and the response it returned on 2026-10-15.
Choice
Pick one option. criteria maps each option key to a description; the answer comes back as a key.
A choice question takes 1 to 679 options.
Yes/no (noul)
A yes/no question. criteria is optional: describe what counts as true and false when the line is fuzzy.
noul is the probability of yes, from 0 to 1. Pick your own cutoff, for example act when it’s above 0.8.
Score
Rate the state on a scale. criteria is a list of 2 to 10 levels, from low to high.
Number
Ask for a number. There’s no criteria: span-02 answers with the number itself, so you don’t list candidate values.
A number answer is at most 32 tokens. A number question thinks only with "mode": "on" in reasoning; auto answers it without thinking.
Mixing types
Put several questions in one request, of any types. They share the state, and the answers come back under your ids: