---
title: "Get Thread Goal"
method: GET
path: "/api/processes/{process_id}/threads/{session_id}/goal"
---

# Get Thread Goal

`GET /api/processes/{process_id}/threads/{session_id}/goal`

Live-or-cached goal snapshot for one thread.

Shape: `{goal: <Goal>|null, process_offline: bool}`.

When the process is online, fetch fresh from local (the local
sidecar is the canonical store) and opportunistically update the
cache so the next offline read is current. When it's offline,
serve the last cached snapshot.

## Path parameters

- `process_id` string, required
- `session_id` string, required

## Headers

- `authorization` string, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/omicos/apis/omicos-server.md) · [All operations](https://skmtc.dev/omicos/apis/omicos-server/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/omicos/omicos-server/revisions/a00b94573ffe/schema)
