INVALID_FUNCTION error in CXone Studio Snippet using GetRESTProxy

Hey everyone, I’ve run into a really strange issue with my CXone Studio script. I’m trying to call an external API using GetRESTProxy but I keep getting an INVALID_FUNCTION error at runtime.

Here is my code:

Assign rest = GetRESTProxy("my-proxy");
Assign response = rest.GET("/api/data");

I’ve checked the CXone Studio Docs and this syntax looks correct. I’m a beginner with Studio so I might be missing something obvious about the proxy configuration. Any ideas?