Recent searches


No recent searches

Cannot authenticate with cURL



Posted Apr 27, 2022

I am working through the tutorial here. I am working through "show all tickets" and "show all users". I have already successfully created users and tickets in the browser's terminal (console).

I can log in to my trial/dev Zendesk account with Chrome, but when I attempt to run a cURL command in Mac terminal, I get:

{"error":"Couldn't authenticate you"}

This is the command I'm using, with real credentials which I have verified do work with the regular login process.

  curl https://XXXXXX.zendesk.com/api/v2/users.json \
-v -u m----@----.org:xxxxxx

0

2

2 comments

Hello Marci,

you can try below CURL command

curl -k "https://<zendesk URL>/api/v2/organizations.json"   -H "Content-Type: application/json" -v -u <email>:<password> -X GET

Thanks

0


Hey Marci! 
 
Sorry to hear that you're having issues! Can you just check and make sure that you have api access enabled on your account? This article should help walk you through it.

Thanks!

 

0


Sign in to leave a comment.

Didn't find what you're looking for?

New post