Hi @sami-ahmad,
As we discussed on the Support case you opened, there is no published or, Webex Contact Center approved Python sample for the Graphql queries.
But I'll keep this thread Open for others to review your query and share the sample if they've a working one. Thank you!
Regards!
Sandip