Skip to main content

Send a message

This endpoint streams responses using Server-Sent Events (SSE). Each chunk is a JSON object sent as a data: event.

Endpoint

Headers

Request body

Response (streaming)

The response is a stream of Server-Sent Events. Each event contains a JSON payload:

Event types

Example: cURL

Example: JavaScript

Error responses