Calling the API returns 401 "Invalid Credentials"

Hi there,

I am trying to connect our CATS data to Klipfolio. However, when I try to call the API in Klipfolio, I get:

Service responded with exception status (401): {"message":"Invalid credentials."}

I get the same response when I call using “curl -X GET -H ‘Authorization: Token < API KEY >’” in bash and when I call the API in the browser with the api key added to the header.

I am fairly new to APIs, so maybe I am forgetting something really stupid. If you know what I might be doing wrong, please let me know.

Thanks in advance!

Hi there,

Sorry about the delay over the holiday weekend.

It looks like your site is on the domain, not the domain. You’ll need to use the domain appropriate to the domain your api key was generated for.

Ah, that works, thank you so much! I knew I was just doing something really stupid :p. Have nice day.