add api to list messages by uid