API Reference
State
Retrieve the full emotional state snapshot of a session.
State
Get a complete snapshot of a session's emotional state, including all internal dynamics and prompt_data.
Get Session State
Returns the full emotional state of a session.
Path Parameters
| Parameter | Type | Description |
|---|---|---|
sessionId | string | The session ID to query |
Response
| Field | Type | Description |
|---|---|---|
emotion | object | Current emotional state { V, A, D } |
emotion_intensity | number | Overall emotion intensity [0, 1] |
discrete_emotion | object | { primary, secondary, intensity } labels |
body_budget | number | Psychological energy level [0, 1] |
soul_stage | object | { id, name } — current stage (1-15) |
need_state | object | Psychological needs (autonomy, competence, relatedness) |
regulation | object | Active regulation strategy and history |
affect_dynamics | object | Emotional variability and instability metrics |
prompt_data | object | LLM-ready structured prompts |
Examples
curl
JavaScript
Python
Errors
| Code | Status | Description |
|---|---|---|
UNAUTHORIZED | 401 | Invalid or missing API key |
NOT_FOUND | 404 | Session not found |