Submit Turn
Submit one observation + declared action set; get the person’s choice.
Authorizations
Workspace API key as a bearer token: Authorization: Bearer ish_sk_live_.... Keys are workspace-scoped machine principals minted in Settings > Developers (shown once at mint). Scopes: sessions:run (create a session, submit turns, close), sessions:read (read the session and its decision trace), environments:read and environments:write (manage the workspace's registered environments), tasks:read and tasks:write (manage the workspace's registered tasks), people:read and people:write (the people the workspace can run a session for), and usage:read (the workspace's own consumption, spend limits and rate-limit budgets). A key is minted with sessions:run, sessions:read, and tasks:read by default; every other scope must be requested, people:read and usage:read included. An ish user access token also works on the same header for personal scripts.
Path Parameters
Body
Human-sensory observation blocks (image now; error carries execution feedback). New block type values may be added. Open union: new values may be added over time; clients must tolerate unknown values rather than failing on them.
1x >= 0x >= 0Response
Successful Response
What the person decided this turn, and how it felt.
action_name names the action to execute, and is null when there is nothing to run: the person found no action that fits, or judged that none was needed. comment, sentiment and felt_intensity are the experiential half and are always present, including on a turn with no action. status says whether they intend to keep going.
intent, resolution and unmet_expectation are populated only when the session runs in intent decision mode; they are null in direct mode.
Session status after this turn. Open union: new values may be added over time; clients must tolerate unknown values rather than failing on them.
open, completed, gave_up, closed, max_turns, spend_cap_reached, balance_exhausted