Getting Response in HTML format in freshsales

Hi Team,

I have used the view a contact API in the Freshsales suite, but I am getting the response in the HTML format. I have tried with postman also, but facing the same.

Kindly let me know the solution for this, I have added my curl code.

curl --location --request GET 'https://eilnews-519774332824435374.myfreshworks.com/api/contacts/1?include=sales_accounts' \

--header 'Authorization: Token token=apikey' \

--header 'Content-Type: application/json'

Thank You!

1 Like

Hi @Gopi

We put you in touch with the Freshsales team to take this conversation further. Please watch out for your inbox and let us know if you find a conclusion.

Hi @Gopi and @Saif, was there a resolution here as to why Gopi was getting an HTML response in the API? Did it relate to a lack of API permissions?

I have encountered same problem, Is there anyone who find the solution?

any news on this? this is my problem too

Hi @Raviraj ,

Any update on this topic ? I’m also facing a similar issue.

Hi @Gopi & @sharad ,

If you’re still encountering issues with this API response, you’ll need to update the Valid API URL.

The Freshsales Suite URL should follow this format:
https://***.myfreshworks.com/crm/sales/api/contacts/402086876857?include=sales_account

In your current API endpoint, you missed including “/crm/sales/” and used “1” as the contact ID. Instead, you need to provide the exact customer’s contact ID.

Once you update the URL endpoint to match the format above, you should receive the correct API response.