I’d suggest to check if the API-Keys are correct. I had a similar problem:
Recreate them and try both ways maybe.
Yes, you can put them into a json file and import that: