---
title: "Send Message Stream"
method: POST
path: "/api/v1/agents/{system}/{entity_id}/message"
tags: ["v1", "Agent Chat", "agent-chat"]
---

# Send Message Stream

`POST /api/v1/agents/{system}/{entity_id}/message`

## Request

- Base URL: `https://api.jeevyfabrication.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.jeevyfabrication.com/api/v1/agents/{system}/{entity_id}/message`
- Auth: none declared

Stream agent response via Server-Sent Events.

Uses LangGraph ``astream`` with ``subgraphs=True`` (plus ``messages``, ``updates``, ``custom``)
so nested conversation nodes still emit tokens and ``node_complete`` events.
For shop, entity_id and thread are derived from session (shop_id + user + instance_id).

## Path parameters

- `system` string, required
- `entity_id` string, required

## Request body

- ChatRequest
  - `message` string
  - `mode` string
  - `instance_id` string, nullable
  - `project_id` integer, nullable
  - `equipment_ids` integer[], nullable
  - `personnel_ids` integer[], nullable
  - `mentioned_source_ids` integer[], nullable
  - `image_content` object[], nullable
  - `document_content` object[], nullable
  - `viewer_page` object, nullable
  - `attachment_ids` integer[], nullable: JEEVY-2008: chat uploads (POST /chat-attachments/confirm) attached to this message. Re-checked against the session user; the AI gets a list and reads them through tools, never the bytes.
  - `reply_style` 'default' | 'brief'

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

## Changes

- **2026-11-09** `d9ef00c0253a`: 1 info
  - added the new optional request property `reply_style`
- **2026-10-20** `9eebba4f395d`: 1 warning, 1 info
  - removed the request property `documents_uploaded`
  - added the new optional request property `attachment_ids`
- **2026-10-18** `02b3f0a3ecbb`: 1 info
  - added the new optional request property `documents_uploaded`

[Operation history](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api/changes/api/v1/agents/:system/:entity_id/message/post.md)

---

[API](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api.md) - [All operations](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api/revisions/ad9a01abeac9?raw)
