State API

Record facts as governed state.

Record a state item

POST /v1/state/items
Authorization: Bearer sk_live_...
Content-Type: application/json

{
  "session_id": "sess_abc123",
  "key": "claim.amount",
  "value": "$48,200",
  "type": "fact",
  "source": "claims_system"
}

Fields

FieldRequiredDescription
session_idYesThe session the fact belongs to
keyYesCanonical key, lower-case and dotted; see Canonical keys
valueYesThe value as a string; it is normalised before comparison
typeYesThe state type, for example fact, decision or constraint
sourceYesWhere the value came from, kept for tracing
Last reviewed October 2026Suggest a change