How to get open and pending issues where i can get more than 30 tickets with the freshdesk rest api?

I’m trying to retrieve all the open and pending issues with the freshdesk rest api. I have accomplished this with the following endpoint:
https://domain.freshdesk.com/api/v2/search/tickets?query=“status:2%20OR%20status:3”
I also want to show 100 issues per_page but if I add
&per_page=100&page=1
https://compasity.freshdesk.com/api/v2/search/tickets?query=“status:2%20OR%20status:3”&per_page=100&page=1
to the query it gives me this error:

{
    "description": "Validation failed",
    "errors": [
        {
            "field": "per_page",
            "message": "Unexpected/invalid field in request",
            "code": "invalid_field"
        }
    ]
}
1 Like

Hi @tychopycho,

In the Filter Tickets API, only page parameter is available. The per_page is not available.
Only 30 objects will be returned in the response and this number is constant.

Additionally, the API response can only be paginated up to 10 pages. Refer to the notes section of the documentation for the detailed information of this API.