---
title: "POST /api/script-assistant/sessions/{sessionId}/chat/stream"
method: POST
path: "/api/script-assistant/sessions/{sessionId}/chat/stream"
tags: ["ScriptAssistant"]
---

# POST /api/script-assistant/sessions/{sessionId}/chat/stream

`POST /api/script-assistant/sessions/{sessionId}/chat/stream`

## Request

- Base URL: `https://api.wearelearning.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.wearelearning.io/api/script-assistant/sessions/{sessionId}/chat/stream`
- Auth: OAuth 2
  - Implicit: `https://login.wearelearning.io/authorize?audience=https://api.wearelearning.io`

## Path parameters

- `sessionId` string, required

## Request body

- SendMessageRequestDto
  - `message` string, required
  - `focusedSceneId` string, nullable
  - `focusedNodeId` string, nullable

## Response `200`

OK

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict

---

[API](https://skmtc.dev/wearelearning/apis/we-are-learning-api.md) - [All operations](https://skmtc.dev/wearelearning/apis/we-are-learning-api/llms.txt) - [OpenAPI document](https://skmtc.dev/wearelearning/apis/we-are-learning-api/revisions/e2ca5265db77?raw)
