Why do I get the error "Unauthorized" when calling the API?

A: If your call is resulting in this error:

Copy

`{"error":{"message":"Unauthorized"}}`

Then it’s likely that you either forgot to put your apiKey in the headers of your call or that your credit balance has reached zero.

You can learn how to get your apiKey here and how to monitor your credit balance here.