Submit a Decisions request
POST
/decisions
const url = 'https://api.mixen.ai/v1/decisions';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"model":"example","state":["example"],"questions":{"additionalProperty":{}},"session_id":"example","user":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.mixen.ai/v1/decisions \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model": "example", "state": [ "example" ], "questions": { "additionalProperty": {} }, "session_id": "example", "user": "example" }'Structured decisions (System One models like typesafe/jev-1.13): send state and typed questions (noul / choice / score), get back typed answers with probabilities instead of generated text. Charged per input token; output tokens are free. See the Decisions guide in API docs.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
DecisionsApiRequest
OR Decisions API-форма (System One: typesafe/jev-*).
state — string | object | array; questions — map имя→{type: noul|choice| score, instructions, criteria}. Детальная семантика критериев валидирует OR — наш слой резолвит модель, биллит по usage.cost и логирует.
object
Examplegenerated
{ "model": "example", "state": [ "example" ], "questions": { "additionalProperty": {} }, "session_id": "example", "user": "example"}Responses
Section titled “Responses”Successful Response
Media typeapplication/json
Examplegenerated
exampleValidation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}