Regarding attachments returned through API

  • 14 June 2022
  • 1 reply

Hi Team,

I am using the search ( and trying to fetch the attachments, however we see that, we are getting all the attachment information like images, and videos in the content field. We get a URL in the src field when we try to use that URL for file information, We get a 404 error.  Any pointers to fetch the attachment information from API ??

1 reply

Userlevel 2

Hi @SU Commerce! 👋

Thanks for the question!

You’re correct - when you use the /api/v1/search/query endpoint, you will see a field called src that will be present for any attachments in the card. The contents of that field should look like this:

To download the file in the link above, you’ll need to call it as an API endpoint with the GET method, still using your same Guru API credentials.

Let me know if this helps!