CXone Studio: GetRESTProxy returning null response object

Hey folks,

I’m trying to pull some custom adherence data from our internal API inside a CXone Studio flow. I’ve got a snippet action set up to make the call, but the response object keeps coming back null or empty.

Here is the snippet code I’m using:

GetRESTProxy(proxy)
proxy.setMethod("GET")
proxy.setUrl("https://internal-api.example.com/adherence?agentId={{agent.id}}")
proxy.setHeader("Authorization", "Bearer {{oauth.token}}")
response = proxy.execute()

I’ve verified the URL and token in Postman, and it works fine there. Returns a 200 OK with JSON. But in Studio, response seems to be null. I tried checking response.getStatusCode() and it throws an error because response is undefined.

Am I missing a step to parse the JSON body? Or is there a specific way to handle the response in Studio snippets? I’ve looked at the docs but they’re pretty sparse on error handling.

Any help would be appreciated.