Request
Method:POSTEndpoint:
/api/chat/buildHeaders:
Content-Type:application/json
id(string, required): Unique session identifiermessages(array, required): Array of chat messagesuserId(string, optional): User identifier for tracking
Response
Success Response (200): Server-Sent Events (SSE) stream with AI responses Error Responses:400 Bad Request: Invalid request format500 Internal Server Error: Server error or AI processing error
Example
Notes
- This endpoint provides streaming responses via Server-Sent Events
- Maximum duration is 60 seconds
- Includes advanced AI capabilities with tool integration
- Supports conversation tracking and user identification
- Uses Langfuse for observability and tracing
Body
application/json
Response
Successful response
Server-Sent Events (SSE) stream with AI responses

