add api for get messages