FreskDesk API -> Filter Tickets API -> Filter by company_id

Hello, can I use Tickets Filter API to filter by company_id, I looked that only “List All TIckets” API have this option.
I want use like the example below:

/search/tickets?query="company_id:60000646554%20AND%20status:2"

company_id:60000646554 AND status:2

Thanks

@Igor45-5,
Unfortunately, it is not possible to use company_id with search ticket API,
but you can use /api/v2/tickets?company_id=[id] to filter by company.
it will give the same payload as like search,

Can you please let us know the use case you are trying to archive?

Thanks

No, because the default ticket API cannot let me filter by status, and not send de total Tickets amount :frowning:
My intention is filter by companyId and by status.

But thanks for help

@Igor45-5,
Good Day!
I understand your problem, unfortunately, it is not possible with the current API,
meanwhile, I will check with the product team and get back to you at the earliest :slight_smile:

Thanks
Santhosh

1 Like

@Igor45-5,
The product team confirms that it is the feature request, please keep an eye on the Freshdesk What’s New section in the documentation for more updates on the API

Thanks

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.