INVALID_FUNCTION error on GetRESTProxy in CXone Studio Snippet

Getting INVALID_FUNCTION when trying to call GetRESTProxy in a . The syntax looks right based on the docs, but the script fails on execution. Here is the block:

ASSIGN proxy = GetRESTProxy()

Is there a specific namespace or version issue here?