ReferenceError: XMLHttpRequest is not defined

It’s true what @amit mentioned, but you can use pm.sendRequest to make API calls from the scripts.
Here are a few examples: https://gist.github.com/madebysid/b57985b0649d3407a7aa9de1bd327990

1 Like