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

# Create Thread Goal

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

Create / replace the goal for a thread. Body: `{objective: str,
token_budget?: int}`. Returns the persisted goal. 409 when the
target process is offline (mobile UI greys the action button).

## Path parameters

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

## Headers

- `authorization` string, nullable

## Request body

- object

## 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)
