Get the session's standing goal
GET /v1/chat/sessions/:id/goal — Return the session's standing goal, or `null` when none is set. The agent pursues a standing goal turn after turn: after
GET /v1/chat/sessions/:id/goal
Return the session's standing goal, or null when none is set. The agent pursues a standing goal turn after turn: after each turn a judge decides whether the goal is met, and if not the client sends the next turn automatically (the chat stream carries the decision).
| Method | GET |
| Path | /v1/chat/sessions/:id/goal |
| Auth | Authorization: Bearer <token> required when GATEWAY_AUTH_TOKEN is set |
| Category | chat |
Response body
{ "goal": { "goalText": "ship the report", "status": "active", "turnsUsed": 3, "maxTurns": 20, "subgoals": [], "lastVerdict": "continue", "lastReason": "draft not finished", "pausedReason": null } }