I have the same problem here: Script Only Working from API Docs
I even made an entire API key with specific access to system/user and my GET call uses that key. I never got it to work outside of admin login and no one had any answers. I had to abandon it.