Retrieves message history from a conversation room, including both user messages and agent responses. Useful for displaying conversation history or analyzing interactions.
{ "success": true, "data": { "messages": [ { "id": "msg-550e8400-e29b-41d4-a716-446655440010", "userId": "user-123", "userName": "Alice Smith", "text": "Hello! How can you help me today?", "roomId": "room-660e8400-e29b-41d4-a716-446655440004", "timestamp": 1709683200000, "attachments": [], "metadata": { "channel": "web" } }, { "id": "msg-550e8400-e29b-41d4-a716-446655440011", "userId": "550e8400-e29b-41d4-a716-446655440000", "agentId": "550e8400-e29b-41d4-a716-446655440000", "userName": "Alice", "text": "Hello! I'm here to help you with any questions you might have. I can assist with customer support, technical issues, and general information. What can I help you with today?", "roomId": "room-660e8400-e29b-41d4-a716-446655440004", "timestamp": 1709683205000, "attachments": [], "metadata": {} }, { "id": "msg-550e8400-e29b-41d4-a716-446655440012", "userId": "user-123", "userName": "Alice Smith", "text": "What is the status of my order?", "roomId": "room-660e8400-e29b-41d4-a716-446655440004", "timestamp": 1709683260000, "attachments": [], "metadata": { "orderId": "ORDER-456" } }, { "id": "msg-550e8400-e29b-41d4-a716-446655440013", "userId": "550e8400-e29b-41d4-a716-446655440000", "agentId": "550e8400-e29b-41d4-a716-446655440000", "userName": "Alice", "text": "I've looked up your order status. Your order #ORDER-456 is currently being prepared for shipping.", "roomId": "room-660e8400-e29b-41d4-a716-446655440004", "timestamp": 1709683265000, "attachments": [], "metadata": {} } ], "hasMore": false, "total": 4 }}