INVALID_FUNCTION error in CXone Studio Snippet — correct syntax for GetRESTProxy()

I’m trying to call a custom API from a CXone Studio snippet using GetRESTProxy(). I keep hitting an INVALID_FUNCTION error when the snippet tries to execute. Here’s the block:

ASSIGN proxy = GetRESTProxy("myEndpoint");

I’ve checked the endpoint name and it matches exactly. Am I missing a namespace or is the syntax different for newer Studio versions? The docs are pretty light on error codes.

The function is case-sensitive, so you need GetRestProxy instead of GetRESTProxy.

ASSIGN proxy = GetRestProxy("myEndpoint");