> ## Documentation Index
> Fetch the complete documentation index at: https://docs.knock2.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# GET /v1/tenants/{product_slug}/script-config — Get a Tenant's Tracking-Script Exclusion Configuration

> GET /v1/tenants/{product_slug}/script-config returns pages_to_ignore, the URL path patterns on which the tracking script does not run at all. Requires tenants:read.

`GET /v1/tenants/{product_slug}/script-config` returns `pages_to_ignore` — the URL path patterns on which the tracking script does not run at all for this tenant. A page matching one of these patterns never initializes the script: no session, no page history, no identification lookup, no vendor scripts, no chat widget, and no credits spent. This is the same setting configurable in the dashboard's Script Settings page, under "Excluded Pages," now readable via the API.

Use this to audit or migrate a child tenant's exclusion list, or to confirm a value set via [Update Script Config](/api-reference/tenants/update-script-config) or at creation time took effect.

<Note>
  This is a full exclusion, not a partial one — there is no mode where the script keeps running but only skips the paid identification lookup. If you want visitors on a page tracked but not identified, this setting is not what you want; contact support to discuss options.
</Note>

## Endpoint

```text theme={null}
GET https://api.knock2.ai/v1/tenants/{product_slug}/script-config
```

## Path Parameter

<ParamField path="product_slug" type="string" required>
  The tenant's slug — your own key's `product_slug`, or a direct child's.
</ParamField>

## Example Request

```bash theme={null}
curl https://api.knock2.ai/v1/tenants/acme_com_yourco_com/script-config \
  -H "Authorization: Bearer YOUR_PARENT_API_KEY"
```

## Response

Returns `200 OK`. `pages_to_ignore` is an empty array if no exclusions are configured — this is the default state for a newly provisioned tenant, not an error.

```json theme={null}
{
  "data": {
    "product_slug": "acme_com_yourco_com",
    "pages_to_ignore": ["^/careers", "^/privacy-policy"]
  }
}
```

<ResponseField name="data.product_slug" type="string">
  The tenant's slug.
</ResponseField>

<ResponseField name="data.pages_to_ignore" type="string[]">
  Regex patterns matched against `window.location.pathname` in the browser. A visitor's page fully skips the tracking script if it matches any pattern in this list.
</ResponseField>

## Required Scope

Requires `tenants:read`.

## Error Responses

| Status | Meaning                                                      |
| ------ | ------------------------------------------------------------ |
| `401`  | Missing or invalid API key.                                  |
| `403`  | Your API key does not have the `tenants:read` scope.         |
| `404`  | No tenant found with this `product_slug` under your account. |
| `429`  | Rate limit exceeded.                                         |
