We need to get 3 last recents activities of a contact to show to our agents. We plan to use this API:
With this API, we cannot use filters to receive only the activities that we look for. We have to get all activities and then do the sort ourselves. This increase network bandwith and CPU consumption.
What do you think about adding these parameters?
- “sort_by”: Optional. Allowed value:
“creation_date”: Sort by creation date
“default”: This is the default value. Results will be sorted as they are now.
- “sort_direction”: Optional. Allowed values:
That way, to get last 3 activities, we could call the endpoint with sort_by=creation_date&sort_direction=desc&limit=3