POST /run

Submit an input for reasoning. Returns structured output with epistemic status.

Endpoint

http
POST https://api.doorwayagi.com/run

Request body

json
{
  "input": "Why do complex systems exhibit emergent behavior?",
  "session_name": "doorway"
}
FieldTypeRequiredDescription
inputstringYesThe reasoning input
session_namestringNoSession identifier for chain continuity. Defaults to "doorway"

Response

json
{
  "status": "GROUND",
  "content": {
    "answer": "Complex systems exhibit emergence because...",
    "confidence": 0.89,
    "implication": "This suggests that emergence is a structural property..."
  },
  "structure": {
    "closest_shape": "hexagon_layered",
    "geometric_confidence": 0.91,
    "gap_score": 0.15,
    "fires": false
  },
  "bridge": null,
  "conflict": {
    "conflict": false,
    "message": ""
  },
  "chain": {
    "id": "ch_abc123",
    "root": "0xdef456...",
    "length": 1,
    "verified": true
  },
  "receipt": { ... }
}

Status codes

CodeMeaning
200Reasoning completed successfully
400Invalid request body
401Missing or invalid API key
403Tier mismatch — ASI features require ASI tier
500Internal engine error