Zum Hauptinhalt springen
Unkalibrierte Beta
StrikeStrike

POST /v1/systemone

Run a typed decision

Send state and named yes/no, choice, or score questions. strike-1 returns a typed answer and an uncalibrated probability.

Send state and named questions. Each question is noul (yes/no), choice, or score. strike-1 returns a typed answer and an uncalibrated probability.

Production base URL: https://strike-ai.eu/v1/systemone. The browser playground calls /api/proxy/v1/systemone on this host.

Request body

SystemOneRequest

FieldTypeRequired
modelstring or nullstring or nullNo
statestring or object or array of objectstring or object or array of objectYes
questionsNoulQuestion or ChoiceQuestion or ScoreQuestionobject of NoulQuestion or ChoiceQuestion or ScoreQuestionYes
optionsSystemOneOptions or nullSystemOneOptions or nullNo

Responses

200

SystemOneResponse

FieldTypeRequired
idstringYes
modelstringYes
answersNoulAnswer or ChoiceAnswer or ScoreAnswerobject of NoulAnswer or ChoiceAnswer or ScoreAnswerYes
usageUsageYes
metaResponseMeta or nullResponseMeta or nullNo
retentionRetentionInfo or nullRetentionInfo or nullNo

Usage

FieldTypeRequired
input_tokensintegerYes
output_tokensintegerYes

422

HTTPValidationError

FieldTypeRequired
detailarray of ValidationErrorNo

Example request

{
  "model": "strike-1",
  "state": {
    "ticket": {
      "body": "I was charged twice on my invoice."
    }
  },
  "questions": {
    "route": {
      "type": "choice",
      "instructions": "Which team should own this ticket?",
      "criteria": {
        "billing": "billing",
        "support": "support"
      }
    }
  },
  "options": {
    "return_raw_probabilities": true
  }
}
curl -s -X POST "https://strike-ai.eu/v1/systemone" \
  -H "Authorization: Bearer $STRIKE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{  "model": "strike-1",  "state": {    "ticket": {      "body": "I was charged twice on my invoice."    }  },  "questions": {    "route": {      "type": "choice",      "instructions": "Which team should own this ticket?",      "criteria": {        "billing": "billing",        "support": "support"      }    }  },  "options": {    "return_raw_probabilities": true  }}'

Example response

{
  "id": "req_example",
  "model": "strike-1",
  "answers": {
    "route": {
      "type": "choice",
      "choice": "billing",
      "probabilities": {
        "billing": 0.91,
        "support": 0.09
      },
      "confidence": 0.91,
      "confidence_band": "high"
    }
  },
  "usage": {
    "input_tokens": 128,
    "output_tokens": 4
  },
  "meta": {
    "latency_ms": 42,
    "model": "strike-1"
  }
}

Ausprobieren

Ruft unseren Server-Proxy auf. Füg deinen API-Key nur hier ein: Er bleibt in diesem Tab und wird weder gespeichert noch an Analytics gesendet. Leer lassen, um den Proxy-Key des Playgrounds zu nutzen.

Errors

  • 401 authentication_error: Missing or invalid Bearer API key.
  • 422 validation_error: Request body failed schema or business validation.
POST /v1/systemone: Strike API