This endpoint retrieves the complete chat session including all messages, status, and metadata. Use it to review conversation history, display chat transcripts, or sync session data with external systems.
{ "session_id": "58a6b549-ef07-4a31-86bc-0eb0e026840a", "agent_id": "68ea2517dbb84c09bae1ba0a", "status": "IN_PROGRESS", "messages": [ { "role": "assistant", "content": "Hello! Welcome to our support. How can I help you today?", "timestamp": "2025-12-05T10:00:00.000Z" }, { "role": "user", "content": "I need help resetting my password", "timestamp": "2025-12-05T10:00:15.000Z" }, { "role": "assistant", "content": "I'd be happy to help you reset your password. Could you please provide the email address associated with your account?", "timestamp": "2025-12-05T10:00:17.000Z" }, { "role": "user", "content": "It's john@example.com", "timestamp": "2025-12-05T10:00:30.000Z" }, { "role": "assistant", "content": "Thank you! I've sent a password reset link to john@example.com. Please check your inbox and follow the instructions. The link will expire in 24 hours. Is there anything else I can help you with?", "timestamp": "2025-12-05T10:00:33.000Z" } ], "message_count": 5, "created_at": "2025-12-05T10:00:00.000Z", "updated_at": "2025-12-05T10:00:33.000Z", "metadata": { "user_id": "user_123", "source": "website" }}