Get All tickets with time_spent

Hello guys, I want to get all tickets with the time_spent attribute.
How can I do it?

I am using /api/v2/tickets to get all tickets!


Hi @Filipe_Fernandes, welcome to the Freshworks Developer Community! :slight_smile:

You cannot filter tickets with the time_spent attribute using the /api/v2/tickets endpoint. The way the REST API is structured, you can only get time entries for a given ticket using the Time Entries endpoints.

One workaround might be to try the GET /api/v2/time_entries (List all Time Entries) endpoint.