Querying environment variables through API



I want to be able to list all of my CI\CD environment variables by using the API without exposing their content. The REST endpoint always returns the variables with their content and i’ve also looked into GraphQL and wasn’t able to find a way to query for environment variables.

I would appreciate if someone could guide me on a way to retrieve the properties of environment variables without retrieving their content.
Thanks in advance!