Getting 401 unauthorized error

35 views
Skip to first unread message

Nima Chitgar

unread,
Mar 10, 2024, 9:46:34 AM3/10/24
to CATS API v3
Hi there,

Our domain is 'uptime.catsone.nl'. I was testing few cases with the API key and everything worked out. Suddenly, I keep getting the 401 error. Can someone help?

My code:

curl -X GET \
https://api.catsone.nl/v3/candidates \
-H 'authorization: Token MY_API_KEY

Thanks in advance

Steve Gagnon

unread,
Mar 15, 2024, 3:11:47 PM3/15/24
to CATS API v3
My tests are working. Are you including the trailing quote? Your call should be

-H 'authorization: Token MY_API_KEY'

Nima Chitgar

unread,
Mar 16, 2024, 9:11:22 AM3/16/24
to CATS API v3
Indeed that was what I forgot. Thank you!

Op vrijdag 15 maart 2024 om 20:11:47 UTC+1 schreef Steve Gagnon:
Reply all
Reply to author
Forward
0 new messages