This is already done when someone sends an invite from GJ it self. There is no URL that directly adds a user, that would be a massive vulnerability. They must have an active invite in database with a valid invite code. All of which is provided to them when they are sent an invite from GJ.