v2

latestOpenAPI 3.1.0raw.githubusercontent.com2026-03-22495670.8 KB
Chats

Send a message and get a completion

Sends a user message to the clone and returns the assistant's response.

Set stream: true to receive the response as Server-Sent Events (SSE). SSE events: message.delta (incremental text), message.completed (final message), done (stream end).

post/public/v1/clones/{cloneId}/chats/{chatId}/completions

Path parameters

cloneIdstring required
chatIdstring required

Request body

messagestring required

The user message to send to the clone

streamboolean

If true, response is streamed as SSE events

Response

Completion response (JSON when stream is false, SSE when stream is true)

idstring required
chatIdstring required
contentstring required
rolestring required
createdAtstring date-time required