I was able to fix this problem by creating a new API key.
But now I have a new problem. I get an error saying "The user has insufficient permissions to create an invitation." I have no idea how to fix this. Any advice is appreciated. This has brought a very important workflow to an absolute standstill.