(Coming back here, I see that the question is API Gateway, and my response below is for CA SSO Access Gateway - so just a note that they are different products - and the link below is only for SSO Access Gateway). Also worth seeing :
Tech Tip : Howto enable Tracing in Access Gateway (fka: Secure Proxy Server)
This pdf is very use full thanks to share this pdf.
Retrieving data ...