Fetch app name and api_id in Python middleware?


Hey all!

Just wondering if anyone can let me know if it is possible to fetch the current endpoints app name or api_id within a Python Post middleware?



Ended up printing the spec keys and discovered the api_id can be found in APIID.


Hi Tom, that’s right, you can find all the fields here:

The bindings are dynamically generated using the Protocol Buffers tools.


Hi Matías,

Thanks I spotted that file and realised spec must be being cast to a dict which allowed me to loop over and print the keys. :slight_smile: