---
title: "Send Message Stream"
method: POST
path: "/api/chat/sessions/{session_id}/messages/stream"
tags: ["Chat"]
---

# Send Message Stream

`POST /api/chat/sessions/{session_id}/messages/stream`

## Request

- Base URL: `https://api.earmarkiq.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.earmarkiq.app/api/chat/sessions/{session_id}/messages/stream`
- Auth: HTTP bearer

Send a message and stream the AI response as Server-Sent Events.

SSE event format:
    data: {"type": "text", "content": "chunk"}
    data: {"type": "tool", "tool": "tool_name"}
    data: {"type": "done", "message_id": "uuid"}
    data: {"type": "error", "message": "error text"}

## Path parameters

- `session_id` string, required

## Request body

- SendMessageRequest
  - `content` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/earmarkiq/apis/earmark-api.md) · [All operations](https://skmtc.dev/earmarkiq/apis/earmark-api/llms.txt) · [OpenAPI document](https://skmtc.dev/earmarkiq/apis/earmark-api/revisions/4a2c41907105?raw)
