missing_credential
The request sent no API key.
What it means
The request sent no API key.
How to fix it
Send Authorization: Bearer <your API key> on every request.
Where it comes from
401 missing_credential 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.