Skip to main content
POST
Publish Message
Sends a new message to an existing chat, continuing the conversation.

Request

Headers

Path Parameters

Body Parameters

When resume is true, you cannot include content or experimental_attachments. This is used to continue a conversation that was previously stopped.

Example Request

Response

JSON Response (when stream: false)

You can then poll the Get Status endpoint to wait for completion.

Streaming Response (when stream: true, default)

Status Codes

Workflow

For non-streaming usage, the typical workflow is:
  1. Send message with stream: false
  2. Poll status using GET /api/chat/{chatId}/status until completed
  3. Repeat for additional messages