Added api to expose messages through API