Added get chat history API