---
title: "POST /api/ai_assistant/converse/stream"
method: POST
path: "/api/ai_assistant/converse/stream"
tags: ["AI Assistant"]
---

# POST /api/ai_assistant/converse/stream

`POST /api/ai_assistant/converse/stream`

POST operation for /api/ai_assistant/converse/stream

## Headers

- `X-EDH-USER` string, required
- `X-EDH-TOKEN` string, required

## Request body

- object
  - `prompt` string, required
  - `system_prompt` string, nullable
  - `max_tokens` integer, nullable
  - `temperature` number, nullable
  - `top_p` number, nullable
  - `inference_profile_arn` string, nullable — Custom Bedrock inference profile ARN
  - `model_id` string, nullable — Bedrock model ID to use for inference
  - `messages` object[], nullable — Conversation history for context
    - `role` 'user' | 'assistant'
    - `content` string
  - `agent_runtime_id` string, nullable — Bedrock Agent runtime ID for agent-mode invocation
  - `session_id` string, nullable — Session ID for agent-mode conversation continuity
  - `conversation_id` string, nullable — Conversation identifier used to derive the agent session ID when session_id is not provided
  - `mcp_server_names` string[], nullable — List of MCP server names to enable tool use during streaming

## Response `200`

SSE stream of text chunks

## Other responses

- `401` — Authentication required
- `500` — Streaming failed

---

[API](https://skmtc.dev/aws-samples/apis/engineering-development-hub-edh-api.md) · [All operations](https://skmtc.dev/aws-samples/apis/engineering-development-hub-edh-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/aws-samples/engineering-development-hub-edh-api/revisions/058396b8f0f1/schema)
