invalid_key
The request sent a Kenso API key, but no active key matches it.
What it means
The request sent a Kenso API key, but no active key matches it.
How to fix it
Check that you copied the whole key. If it still fails, create a new key in Kenso under Settings > API keys.
Where it comes from
401 invalid_key is not tied to one endpoint. The errors guide says when the API answers it.
The error body carries this code in error.code. Branch on the code, not on message. See the errors guide.