Endpoints not paginating

Hi all!

We are preparing an integration with Freshsales via the REST API. We are facing an issue with some of the endpoints, namely we found, that specific endpoints like for example /appointments don’t return full “meta” object in response. The “total_pages” value is missing and we rely on it in order to stop pagination if the last page is reached. Please see the REQUEST and RESPONSE below:

REQUEST

curl --location 'https://databox-548829167889930695.myfreshworks.com/crm/sales/api/appointments?per_page=1&page=2' \
--header 'Authorization: Token token=<valid token>'

RESPONSE

{
    "appointments": [
        {
            "id": 1234,
            "time_zone": "Test",
            "title": "Test",
            "description": "Test",
            "location": "Test",
            ...
            "targetables": [
                {
                    "id": 1234,
                    "type": "Contact"
                }
            ]
        }
    ],
    "meta": {
        "total": 7
    }
}

It would be optimal to have identical “meta” object on all the endpoints supporting pagination, meaning that “total_pages” value would be always available in response. This would at the same time unify your API and allow us to not develop two different implementations to stop the pagination when the last page is reached.