Skip to main content
Solved

Nothing returning on API call

  • September 13, 2022
  • 1 reply
  • 123 views

GRattu
Apprentice
Forum|alt.badge.img

Hello, I’m new to rest api calls, when I run this command I’m not getting any output:
curl -u myapikeyhere:X -H "Content-Type: application/json" -X GET -O 'https://mydomainhere.freshdesk.com/api/v2/tickets'

 

Substituting in the API key from my account and my company’s domain, the result is coming back as blank. If I add a -v onto the command I can see that it’s returning with a Status of 200 OK, which is what I’m expecting to see. However, I’m also expecting to see a list of tickets or some other information like is suggested in the API Reference document. For reference, I’m running this command in a BASH terminal, I don’t think this should make a difference but I thought it’s worth noting.

 

Any help is appreciated.

Best answer by Aishvarya

Hi @GRattu,

 

 Greetings from the Freshworks community!

 

We understand that the API call is not returning the expected results in the bash terminal. Since this is a GET API call, please try hitting this API endpoint https://tipalti.freshdesk.com/api/v2/tickets in your browser URL while you are logged into your Freshdesk account and check if it’s returning the desired results.

Also, please note that the authorization should be Basic Auth, the username is Admin’s API key, and the password should be x.

 

Screenshot from POSTMAN:

XxJHoAcDoQaqzNc7MM_9a_YL9rYSkAtU6mZKD-dRUdq26vCpGKZccIi4OiDn6ZQR0WsB2iA9ncS6eZ4ofnoUXsmWO7zSDdl2ug7scTEBGn8utuP89k3WRGoQK5CROdd9ojga57eUGtF0erY-8XvpLg_91hOpDjyG3JMy15PIx8O--4v7aLjpNW-xuQ

 

Please share the response headers via DM if the issue persists.

View original
Did this topic help you find an answer to your question?

1 reply

Aishvarya
Community Debut
Forum|alt.badge.img+6
  • Community Debut
  • 113 replies
  • Answer
  • September 14, 2022

Hi @GRattu,

 

 Greetings from the Freshworks community!

 

We understand that the API call is not returning the expected results in the bash terminal. Since this is a GET API call, please try hitting this API endpoint https://tipalti.freshdesk.com/api/v2/tickets in your browser URL while you are logged into your Freshdesk account and check if it’s returning the desired results.

Also, please note that the authorization should be Basic Auth, the username is Admin’s API key, and the password should be x.

 

Screenshot from POSTMAN:

XxJHoAcDoQaqzNc7MM_9a_YL9rYSkAtU6mZKD-dRUdq26vCpGKZccIi4OiDn6ZQR0WsB2iA9ncS6eZ4ofnoUXsmWO7zSDdl2ug7scTEBGn8utuP89k3WRGoQK5CROdd9ojga57eUGtF0erY-8XvpLg_91hOpDjyG3JMy15PIx8O--4v7aLjpNW-xuQ

 

Please share the response headers via DM if the issue persists.


Reply