See some folks that have asked similar questions, but do not see an solutions listed:
When I get the custom object records by custom object id, there is the Headers.Link to perform pagination. However, if I do a call like this:
https://{{fs_base_url}}.freshservice.com/api/v2/objects/21000011818/records?query=category_dd1 : ‘Hardware’&page=1
There is no Headers.Link. Even manually paging with page=2, it’s the same records returned. There is a property next_page_link listed, but no explanation or example on how to use it in the documentation. Any guidance is appreciated as pagination isn’t available in headers.link or manually incrementing the page in the url to detect no content remaining. Another item that is unclear is max records. If per_page = 50 is passed, it’s returning 10 records.
As a side note, there is inconsistency in the API for filtering. For instance, Tickets is:
- query=“email:‘john.smith@freshservice.com’”…qoutes around the query string, no spaces for key value
but filtering for Custom Object Records is:
- query=category_dd1 : ‘Hardware’…no qoutes, space between key and value mandatory. If the space is removed between pairs, the API validation fails.
Another note, there is an error in the documentation under Supported request parameters indicating the sort_order key is sord_order.