CXone Studio Snippet: GetRESTProxy INVALID_FUNCTION error

Getting an INVALID_FUNCTION error on this block:

ASSIGN restProxy = GetRESTProxy('myEndpoint');
ASSIGN response = restProxy.Execute('GET', '/test');

The endpoint is registered and active. Checked the docs, but the syntax looks right. Is Execute the wrong method for a simple GET in the new snippet parser? Or do I need to pass a config object to GetRESTProxy first? Tried restProxy.Get() but that’s not defined in IntelliSense.