GetRESTProxy INVALID_FUNCTION error in Studio Snippet

We are trying to call a custom endpoint from a Studio flow using the GetRESTProxy function, but we keep hitting an INVALID_FUNCTION error. The snippet looks syntactically correct to me, and we have verified the endpoint works via Postman. Here is the exact code block we are using in the ASSIGN step:

restProxy = GetRESTProxy("https://api.example.com/data")
response = restProxy.GET("/items")

The GetRESTProxy function requires a valid proxy ID, not a raw URL. You’ll get INVALID_FUNCTION because the first argument must be a string matching a configured proxy in Studio settings. Try this instead:

proxy = GetRESTProxy("ExampleProxy")
response = proxy.GET("/data/items")

Check the proxy configuration in Studio to ensure the base URL is set there.