Added API for getting list of pending invites for a user