Added message related api endpoints