CXone Studio Snippet: INVALID_FUNCTION error on GetRESTProxy

Hey team,

I’m trying to call an external API from a Studio script using the REST Proxy block. I’ve set up the endpoint in the admin console, but the snippet keeps failing.

Here’s the code:

REST_PROXY = GetRESTProxy("MyEndpoint", "POST", json_body, headers)

The error is INVALID_FUNCTION: GetRESTProxy is not defined. I’ve checked the docs and this syntax looks right. Am I missing a library import or is the function name different in the current version?