Get the contact list but the response does not have an avatar

Hi [Samuel Pares], have a nice day
I am currently using this API:
/api/v2/contacts?per_page=30&page=<%= context.page %>
to get the contact list but the response does not have an avatar.

  • I do not want to call 1 API:
    /api/v2/contacts/<%= context.id %>
    to map information with avatar. When using like that, I have to requet 30 times to get information for mapping. And when I press loadmore to get 30 more records. The API reports limit request in 1 minute. Is there any way to solve this problem.
    Because I see on the contact list screen that it is using another api, not the api as in the freshdesk document

Hi @Duong_nguyen_hoang1,

It seems that they will be using private APIs, which may differ from the public API that we currently utilize. This is a common practice for well-structured products.

I’ve also looked into it, and it appears they haven’t guaranteed that the avatar data will be included in the payload. But it would indeed be beneficial to have this information available.

Additionally, I tried the filter API, but unfortunately, the avatar is still not included in the payload.

Perhaps it would be best to consult the development team on this matter.

1 Like

Hi @Duong_nguyen_hoang1,

I confirm the same with Benny’s response,

  1. The contact list in the product would use private APIs that are customized for the product, which would be different from the public APIs, which would be standard APIs exposed to the public.
  2. The avatar property is not available in the List Contacts and Filter Contacts API; it’s only available with the View Contact API.

I will submit it as a feature request to the respective product team.

In your current workaround, to avoid API rate limits, please increase the rate limits if it’s a custom app. If it’s a public app, please make it work within the default rate limits by loading avatars only for as many as can be loaded in a minute and waiting for the rest of them to be loaded after a minute.