Skip to main content
All CollectionsAPI and Indicators
Error: You are not authenticated to query this endpoint!
Error: You are not authenticated to query this endpoint!

What to do when you run into an error with a "statusCode": 401 and a response "not authenticated"

Updated this week

Have you received an error message like this?

{
"message": "You are not authenticated to query this endpoint! Please check your secret key, otherwise please get in touch with us.",
"statusCode": 401
}

In most cases, this issue is cause by one of these 3 things:

  1. incorrectly copy pasted API key

  2. invalid JSON (please double check and validate your JSON)

  3. missing headers: {'Content-Type': 'application/json'}

If the problem persists, get in touch with us and share a sample of your code that is returning the error message.

Did this answer your question?