Hi Team,
I’m currently working with the Freshsales Tasks API and noticed that there’s no direct way to filter Tasks by a specific targetable_id, targetable_type (for example, to fetch tasks related to a particular Contact, Deal, or Account).
At the moment, when I call the Tasks API, it returns all the tasks, and I have to manually filter them on the backend based on the targetable data within each task object.
This adds additional processing time and overhead, especially when dealing with a large number of tasks.
Current API
curl -H "Authorization: Token token=sfg999666t673t7t82" \
-H "Content-Type: application/json" \
-X GET "https://domain.myfreshworks.com/crm/sales/api/tasks?filter=open&include=targetable"
Desired Filter
?targetable_id=<id>&targetable_type=<contact|deal|account>
Please confirm if there’s any existing or undocumented way to filter Tasks by targetable_id,targetable_type. If not, I’d like to request this feature to be added in a future API enhancement, as it would be extremely valuable for developers working with entity-specific task management.
Thanks in advance for your support!