{"endpoint":"/api/kyh/state","method":"POST","description":"Current emotional and cognitive state detection from recent messages","pricing":"$0.50 USDC via x402","input":{"recentMessages":"Array<{ text: string, timestamp?: string, context?: string }> (required) — recent messages for analysis","human_id":"string (optional) — vault profile ID for baseline delta comparison","behavioral":{"responseLatency":"'immediate' | 'normal' | 'delayed' | 'very_delayed' (optional)","messageLength":"'shorter_than_usual' | 'normal' | 'longer_than_usual' (optional)","recentEvents":"string[] (optional) — 'deadline', 'conflict', 'achievement'"}},"output":{"primaryEmotion":"Dominant emotion from 12 categories","quadrant":"high_energy_positive | low_energy_positive | high_energy_negative | low_energy_negative","valence":"-1 to +1 (negative to positive)","arousal":"0 to 1 (calm to activated)","receptivity":"0 to 100 (how open to interaction)","delta":"Baseline comparison (only with vault profile)"},"notes":["Quadrant is the primary confidence signal — reliably detectable via heuristics","Individual emotions within a quadrant are directionally useful but secondary","With vault profile: delta section shows deviation from personality baseline","12 emotions across 4 quadrants: confident/energized/enthusiastic, calm/reflective/content, stressed/angry/anxious, withdrawn/defeated/apathetic"]}