API reference

Send requests to https://racksort.com/api/v1 with Authorization: Bearer <key> and JSON bodies.

Endpoints

EndpointCredentialPurpose
POST /api/v1/decideAPI keyDecide one request.
GET /api/v1/decisionsNoneThe decisions, their questions and qualification status.
GET /api/v1/decisions/{id}NoneOne decision with its request schema.
GET /api/v1/modelNoneThe model identity and every qualification in force.
GET /api/v1/evalsNonePublished evaluation results.
GET /api/v1/openapi.jsonNoneThe OpenAPI document.

Request

Every request names a decision and a proposal with its operation, plus the fields that decision reads. Unknown fields are rejected. Quantities are decimal strings such as "12.5"; instants are ISO 8601 with an offset. See Decisions for each schema.

Response

FieldMeaning
verdictOne of the five verdicts below.
stateThe subject's state where the specification names one, such as Uncertain.
nextaction, text and, when a person acts, role.
factsWhat the rules computed: quantities, versions, attempt outcomes.
questionsEvery evidence question asked, with its answer, probabilities, status, threshold and error bound.
clausesThe specification sentences applied, verbatim.
spec, model, engineWhat produced the verdict.

Verdicts

VerdictMeaning
allowRun the operation as proposed.
replayIt already ran. Return the existing result and apply nothing again.
rejectIt breaks a rule of the specification. Do not run it.
reviewA named role decides before anything runs.
reconcileAn earlier outcome is unknown or the evidence is stale. Establish it first.

Question statuses

StatusMeaning
certifiedThe answer cleared its qualified threshold and settled the fact.
below_thresholdQualified, but this answer was not confident enough.
unqualifiedNo qualification exists for the running model.
model_unavailableNo model answered.
context_too_longThe evidence exceeded the model's input limit.