Is there an API endpoint to get all active calls filtering by TRUNK id?
Second question:
Is there subscription event that we can subscribe to obtain incomming calls in real time within a specific TRUNK ID? Similar to v2.routing.queues.{id}.conversations, but for TRUNKS.
You'll need to read the documentation to understand what each of those is and does and look at the provided examples to determine which is more suitable for your purpose. It's too much detail and nuance for a forum post.
There is no way to do that I am aware of, short of a listener on every agent.
You have to remember Genesys, like most products, is built to support the use cases they presumed as most common. The further you edge from that zone the harder it tends to get and there are some facets and angles they just never expected enough people to care about to justify building connectivity.
Thank you. And last question, I am looking for the subscription for all events occurring in real time in a particular flow, is this the right subscription for it?
v2.flows.{id}
It's not listed in the notifications tester so couldn't test if it was.