Threads
Stream AI response
SSE stream for the AI response to a user message.
Events are sent in SSE format:
event: <type>
data: <json>
| Event | Data | Description |
|---|---|---|
| token | {"token": "..."} | A text chunk of the AI response |
| error | {"message": "..."} | An error occurred |
| done | {} | Response is fully complete — thread is back in ready state |
done is only emitted after the LLM has finished generating and the thread has returned to ready. Once you receive done the thread accepts new messages. Thinking and status events are filtered. The stream closes after done or error.
get/threads/{thread-id}/messages/{message-id}/response/stream
Request
- Base URL: https://api.korey.ai/api/v1
- URL: https://api.korey.ai/api/v1/threads/{thread-id}/messages/{message-id}/response/stream
- Auth: HTTP bearer
Path parameters
thread-idstring uuid required
The thread ID.
message-idstring uuid required
The message ID.
Changes
No recorded changes to this operation across all 1 revision of this API.