Skip to main content
Use this endpoint to send messages in the familiar chat completion format and receive the agent’s full reply as a streaming response. This endpoint is designed for clients that expect an OpenAI-compatible streaming interface — making it straightforward to integrate Botsify into applications already built against OpenAI’s Chat Completions API. The response streams the complete chat completion incrementally, so you can begin rendering output before the full reply is ready.
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 as text/event-stream, each event delivering a delta chunk in OpenAI-compatible format. The stream ends with data: [DONE].