I assume you want to know how many hours an agent (of a company) has spent on a specific ticket. I don’t think there’s a straightforward API available. You may have to use a combination of logic and API calls.
Before I could think of steps from the Freshservice docs, I didn’t see “Companies” as a module in Freshservice. Do you mean vendors? Would you please help me understand the business use case a bit more?
I did not find a reports API that can help you get data based on companies, agents, and their time entries. I guess this has to be treated as a feature request to the Freshservice team. Do you happen to find a workaround? If not I can report it to the FS team?
I learned that “departments” module is renamed to “companies” is MSP mode. Is the customer’s account in MSP mode?