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

Trying to understand the INVALID_FUNCTION crash in my CXone Studio snippet. After copying the pattern from CXone Studio Scripting Docs, the interpreter rejects restProxy = GetRESTProxy("https://api.nicecxone.com/v1/customers"); ASSIGN(status, restProxy.GET("/status"));. Execution halts immediately at the proxy initialization line. Which parameter format actually resolves this compilation fault?