This endpoint returns the full chat completion in streaming format, structured for compatibility with OpenAI-compatible clients. If you are integrating with a library or framework that already handles OpenAI streaming responses, this endpoint should work with minimal adaptation. Read the response body incrementally, processing each
data: event as it arrives.Request
POST https://app.botsify.com/api/v1/converse/chat/stream
Authorization: Bearer token — include your token in the Authorization: Bearer <token> header.
Body Parameters
string
required
The unique key that identifies your bot. You can find this in your Botsify dashboard under bot settings.
string
required
A unique identifier for the user’s session, used to maintain context across conversation turns.
string
A serialized string representing the current conversation context for this turn.
object[]
An array of message objects (each with
role and content) representing the conversation history to include as context.string
Additional text to append to the prompt — useful for injecting dynamic context such as user metadata or retrieved knowledge.
Example
Response
The response streams astext/event-stream, each event delivering a delta chunk in OpenAI-compatible format. The stream ends with data: [DONE].
