---
title: "Set Session Stream"
method: POST
path: "/sessions/streams/"
tags: ["Sessions", "Sessions"]
---

# Set Session Stream

`POST /sessions/streams/`

## Request body

- SessionStreamCommandRequestModel
  - `session_id` string, required
  - `prompt` string, nullable
  - `force` boolean
  - `detached` boolean

## Response `200`

Successful Response

- SessionStreamCommandResponseModel
  - `mode` 'send' | 'steer' | 'cancel' | 'attach', required — Derived from the prompt × force matrix.
  - `session_id` string, required
  - `turn_id` string, nullable
  - `watcher_id` string, nullable
  - `detached` boolean

## Other responses

- `422` — Validation Error

## Changes

- **2026-07-25** `5a14788d939f` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/agenta-ai/apis/agenta-api/changes/sessions/streams/post.md)

---

[API](https://skmtc.dev/agenta-ai/apis/agenta-api.md) · [All operations](https://skmtc.dev/agenta-ai/apis/agenta-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/agenta-ai/agenta-api/revisions/5a14788d939f/schema)
