Skip to main content
StrikeStrike

STRIKE / BLOG

/v1/systemone reference: noul, choice and score explained

How to call Strike's /v1/systemone endpoint: the request shape, the three question types (noul, choice and score), the answer formats and the error codes, with examples.

Strike exposes one endpoint for typed decisions, designed to be compatible with the System One /v1/systemone request shape. This page covers everything you need to make a request and read the answer.

Preview: Strike is in beta. Requests are validated as described here; strike-1 returns real probabilities. In production, all probabilities are temperature scaled with one temperature fitted on held-out data; yes/no also gets a prior shift.

Endpoint

POST https://strike-ai.eu/v1/systemone
Authorization: Bearer <STRIKE_API_KEY>
Content-Type: application/json

Request body

FieldTypeRequiredDescription
modelstringyes"strike-1"
statestring, object or arrayyesThe content to evaluate: text, a record, a chat log…
questionsmap of name → questionyesThe questions to answer. You choose each name, and answers come back under the same names.

Every question has a type and instructions, and most also have criteria. instructions can be a string, or an object that holds the question plus data it refers to. Refer to fields by name in backticks, such as `ticket`.

noul: yes/no

Use noul when the answer is yes or no.

"is_urgent": {
  "type": "noul",
  "instructions": "Does the customer express time pressure?",
  "criteria": {
    "true": "An explicit deadline, or the service is blocked",
    "false": "No time pressure expressed"
  }
}

criteria is optional and describes what yes and no mean.

Answer:

"is_urgent": { "type": "noul", "noul": 0.9, "confidence": 0.9, "separation": 0.8 }

noul is a value from 0 (no) to 1 (yes). confidence is the top-label probability (here max(noul, 1−noul)). Optional separation is the normalized margin; it is not calibrated.

choice: one option from a set

Use choice for classification, routing and picking from a list.

"team": {
  "type": "choice",
  "instructions": "Which team should handle this ticket?",
  "criteria": {
    "billing": "Payments, refunds, invoices",
    "technical": "Bugs, outages, integrations",
    "other": null
  }
}

criteria is required. It maps each option to a description, or to null if the name says enough.

Answer:

"team": {
  "type": "choice",
  "choice": "billing",
  "probabilities": { "billing": 0.8, "technical": 0.15, "other": 0.05 },
  "confidence": 0.7
}
  • choice: the option with the highest probability
  • probabilities: every option with its probability, summing to 1
  • confidence: top-label probability p_max (uncalibrated)
  • separation: optional margin (n × p_max − 1) / (n − 1); no calibration meaning
  • confidence_band: reserved; currently null until reliability thresholds are measured

score: rate along levels

Use score for ordered scales such as severity, sentiment, quality or fit.

"frustration": {
  "type": "score",
  "instructions": "How frustrated is the customer?",
  "criteria": ["Calm", "Frustrated", "Very angry"]
}

criteria is an ordered list of levels, from lowest to highest. Use at least two.

Answer:

"frustration": {
  "type": "score",
  "score": 1.1,
  "legend": { "0": "Calm", "1": "Frustrated", "2": "Very angry" },
  "probabilities": { "0": 0.1, "1": 0.7, "2": 0.2 },
  "confidence": 0.5
}
  • score: the probability-weighted level index, counted from 0 (0 is the first level, n−1 the last). It can land between levels. This matches the System One contract. If your levels are a numeric scale, map it yourself: min + score / (n − 1) × (max − min). For criteria ["1","2","3","4","5"], a score of 3.15 means about 4.15 on the 1–5 scale.
  • legend: maps each level index back to its description
  • probabilities: the probability of each level

(All values on this page are illustrative.)

A complete request

curl https://strike-ai.eu/v1/systemone \
  -H "Authorization: Bearer $STRIKE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "strike-1",
    "state": {
      "ticket": {
        "subject": "Charged twice",
        "body": "My card was debited twice for order 1042. Please refund one."
      }
    },
    "questions": {
      "team": {
        "type": "choice",
        "instructions": "Which team should handle `ticket`?",
        "criteria": { "billing": "Payments, refunds", "technical": "Bugs, outages", "other": null }
      },
      "is_urgent": { "type": "noul", "instructions": "Does `ticket` express time pressure?" },
      "frustration": {
        "type": "score",
        "instructions": "How frustrated is the author of `ticket`?",
        "criteria": ["Calm", "Frustrated", "Very angry"]
      }
    }
  }'

The response contains model, an answers map keyed by your question names, and usage with token counts.

Python and JavaScript

import os, requests

r = requests.post(
    "https://strike-ai.eu/v1/systemone",
    headers={"Authorization": f"Bearer {os.environ['STRIKE_API_KEY']}"},
    json={"model": "strike-1", "state": "…", "questions": {"is_spam": {"type": "noul", "instructions": "Is this spam?"}}},
    timeout=30,
)
r.raise_for_status()
print(r.json()["answers"]["is_spam"]["noul"])
const r = await fetch("https://strike-ai.eu/v1/systemone", {
  method: "POST",
  headers: { Authorization: `Bearer ${process.env.STRIKE_API_KEY}`, "Content-Type": "application/json" },
  body: JSON.stringify({ model: "strike-1", state: "…", questions: { is_spam: { type: "noul", instructions: "Is this spam?" } } }),
});
const { answers } = await r.json();
console.log(answers.is_spam.noul);

Errors

StatusCode (typical)Meaning
401authentication_errorMissing or invalid API key
422validation_errorThe request failed validation. The body names the field.
429(varies)Rate limit reached. Retry with exponential backoff.
503model_warming or inference_overloadedModel warming up, its queue is full, or the API is at its in-flight limit. Honour Retry-After.
529engine_unavailable or inference_overloadedEngine not ready or inference failed
404not_foundNo retained record (e.g. DELETE /v1/retention/{request_id})

Validation limits (enforced today): choice requires 2–255 options; score requires 2–10 ordered levels.

To keep a request for debugging, send "options": { "retain": true }. Retained payloads are deleted after 30 days or earlier with DELETE /v1/retention/{request_id}.

Choosing a question type

  • Is the answer yes or no? Use noul.
  • Is it one label from a set? Use choice.
  • Is it a position on an ordered scale? Use score.

You can mix all three in one request. Each question is answered independently against the same state.

See also

← All posts · Home

Strike AI | /v1/systemone reference: noul, choice and score explained