added a simple get api for messages