Client & Master Dedicated server

Hi! I’ve been playing with UE4 systems for a short amount of time. I’m now on a new development process and I need some help.

So here its my needs:

I need a master dedicated server where all clients are going to connect after pressing start on a main menu. When joined that master server, I need somehow to call my webServer (Api - Its already done) and get user data. The master dedicated server in on hold of global loops as saving connected players data and some waiting loops.

I need the master server code to be totally disconnected from client code on compile.

Any help on how to start?

Thanks <3.