---
title: "GET /JSON/script/view/scriptCustomVars/"
method: GET
path: "/JSON/script/view/scriptCustomVars/"
tags: ["script"]
---

# GET /JSON/script/view/scriptCustomVars/

`GET /JSON/script/view/scriptCustomVars/`

Gets all the custom variables (key/value pairs, the value is the string representation) of a script. Returns an API error (DOES_NOT_EXIST) if no script with the given name exists.

## Response `default`

Error of JSON endpoints.

- ErrorJson
  - `code` string, required
  - `message` string, required
  - `detail` string

---

[API](https://skmtc.net/zaproxy/apis/zap-api.md) · [All operations](https://skmtc.net/zaproxy/apis/zap-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/zaproxy/zap-api/versions/bbb71f68ed4c/schema)
