added get message api