Skip to content
sign in

==> call the api

Ask the decision model (System One)

POST /v1/jev/systemone

Questions about a JSON state, each answered with probabilities: noul (yes/no; criteria may say what true and false mean), choice (one of criteria's options: a map of name to description, or a list), score (a position on criteria's ordered levels, lowest first). Up to 64 questions; body up to 1 MiB. Answers { answers: { <id>: ... }, model }. A personal access token only, for an account the model is open to (modelApi in /v1/me); a few calls in flight per account at most (429 beyond). The answer streams back as the model writes it.

Needs a personal access token: Authorization: Bearer <token>.

Body

application/json

  • stateanyrequired

    Anything JSON: what the questions are about.

  • questionsobjectrequired

Answer

200 Success.

Refusals

Each answers { "error": "...", "code"?: "..." } with its status.

statuswhen
400The request is not valid.
401No valid token.
403This model is not open to the account, or the call did not come with a token.
413The body is too large for this model.
429Too many calls in flight for this account.
503The model is not running.

Example

curl -X POST 'https://api.clusterstuck.sh/v1/jev/systemone' \
  -H 'Authorization: Bearer <your token>' \
  -H 'Content-Type: application/json' \
  -d '{"state":{},"questions":{}}'