CXone Studio Snippet: INVALID_FUNCTION on GetRESTProxy call

Running into a wall with the Studio Snippet logic for a REST call. The error is explicit: INVALID_FUNCTION.

Docs state: “Use GetRESTProxy() to create a proxy object for making HTTP requests.”

Here is the snippet block:

ASSIGN proxy = GetRESTProxy()
ASSIGN req = proxy.CreateRequest("GET", "https://api.cxone.com/v2/users")

The GetRESTProxy() function seems to be the culprit. If I comment that line out, the rest of the script validates fine.

Is there a specific namespace required? Or maybe a version mismatch in the Studio runtime? I’m on the latest patch. The function isn’t showing up in the IntelliSense either.

Tried adding the full object path System.Net.GetRESTProxy() but that just gives a different error about unknown type.

Anyone else hitting this on a fresh snippet?