They've got a documentation for you to read and it explains the "how-to" questions pretty well.
GetMyMessages[
^] is a method used to extract the message of the User, there would be a Flag inside the data that was returned as
Messages.Message.Read
which denotes that whether it was read or not, you can use it as a Boolean and ignore those who are read and just show the messages which are not read until now.