Cannot authenticate with cURL
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
-
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!
-
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
Please sign in to leave a comment.
2 Comments