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

What’s the right syntax for calling GetRESTProxy in a Studio snippet? The compliance check runs every shift change and just drops the INVALID_FUNCTION error. I’ve tried passing the endpoint directly and wrapping it in quotes. The platform keeps rejecting the call anyway. Our routing rules need the agent state but the snippet breaks on execution and the debug log just says unrecognized function.

ASSIGN rest = GetRESTProxy("GET", "/api/v2/users/me", "", "")