最近の検索


最近の検索はありません

Cannot authenticate with cURL



投稿日時:2022年4月27日

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件のコメント

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


サインインしてコメントを残します。

お探しのものが見つかりませんか?

新規投稿