CXone Studio SNIPPET: GetRESTProxy returning null or empty JSON

Trying to hit a simple internal API from a CXone Studio SNIPPET action. I’ve got the proxy set up and the endpoint looks right, but the response variable is coming back empty every time. No error, just nothing. Here’s the snippet code:

GetRESTProxy("MyProxy", "GET", "/api/status", "", "", "response");

The proxy is configured with basic auth and the correct base URL. I’ve checked the logs and the request seems to go out, but response stays null.

  • Using CXone Studio v2
  • Proxy target is https://internal-api.example.com
  • GET /api/status works fine in Postman
  • Response format is JSON

What am I missing in the SNIPPET syntax?

GetRESTProxy(“MyProxy”, “GET”, “/api/status”, “”, “”, “response”);
// Ensure ‘response’ is declared as an OUT parameter in the script definition


You’re missing the parameter direction definition. Studio defaults to IN. Mark `response` as OUT in the script editor so it actually captures the payload.

The OUT parameter fix is solid, but you’ll likely hit a 401 if that basic auth isn’t mapped correctly in the xy config. Studio’s GetRESTProxy doesn’t handle auth headers automatically. You have to inject them into the header string or pre-configure the xy credentials in NICE CXone. Check the header payload in logs.