---
title: "Chat with an agent (streaming SSE)"
method: POST
path: "/api/chat/stream"
tags: ["chat"]
---

# Chat with an agent (streaming SSE)

`POST /api/chat/stream`

## Request

- Base URL: `https://api.ralio.co`
- URL: `https://api.ralio.co/api/chat/stream`
- Auth: one of:
  - HTTP bearer
  - HTTP dpop

Same as POST /api/chat but streams the response as Server-Sent Events. Uses standard SSE event names: tool_started, tool_completed, tool_failed, reply (token-by-token), done, error. Each event's data field is a JSON object.

## Request body

- object
  - `message` string, required
  - `agent_id` string, required
  - `conversation_id` string

## Response `200`

Server-Sent Event stream.

---

[API](https://skmtc.dev/ralio/apis/ralio-api.md) - [All operations](https://skmtc.dev/ralio/apis/ralio-api/llms.txt) - [OpenAPI document](https://skmtc.dev/ralio/apis/ralio-api/revisions/58645c7401a6?raw)
