I want to access all the variables within the collection using Postman API.
Is it possible to that?
Yes you can do that
Incase you don’t have Postman API, kindly fork from here.
Currently we can get the Collection and Environment related details. For getting the global variables the feature request is in-progress in GH.
Once you fork the Postman API’s, you have Collection folder.
This will return all the collection details, from here you can pick the UID,
And that goes into the next request, “Single Collection”
Here you have the section “variable” which will lists all the collection variables.
From here on, you can tweak them based on your needs
Let us know if you face issue here!!