Did you try manually copying and pasting your API key located in Documents/MyGames/TrainSimWorld7/Saved/Config? I had to do that last night but I set it back to automatic and it's working fine for me
I would double check the -HTTPAPI, also in app check the app is eaither on automatic key detection, or that the key you entered is correct. The key will be different in TSW 7 than is in TSW 6.