How to parse information from ManageEngine SDP to PythonScript

How to parse information from ManageEngine SDP to PythonScript

I have created a python script to get ticket information using hard coded information(ticketID,technician_key), my script can grab the requested ticket successfully using api/v3/request.

My question : Is it possible to 'grab' ticket ID and technician key automatically based on what my user input(ticket id, technician key) from CyberArk?

Trying to integrate CyberArk with ManageEngine SDP.