# List a page's call scripts

The LEADS page's saved call scripts: the live ones first, and with `?retired=1` the whole version ladder, newest first. A script is scoped to the workspace, to a status, or to a single lead row, and that is the order they resolve in. Any workspace seat may read them — a rep has to see the words they are meant to say. Leads page only; any other key is a 404.

Access class: `def:read`.

## Endpoint

`GET /v1/definitions/{key}/scripts`

## Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| key | path | string | Yes |
| body | query | null | No |
| params | query | object | No |
| query | query | object | No |

## Responses

### 200

the action's answer

Content type: `application/json`.

```json
{
  "data": [
    {
      "branches": [
        {
          "children": [
            {
              "children": [
                {
                  "children": [
                    {
                      "children": [
                        {
                          "exit": "string",
                          "id": "",
                          "say": "string",
                          "tag": "string",
                          "trigger": "string"
                        }
                      ],
                      "exit": "string",
                      "id": "",
                      "say": "string",
                      "tag": "string",
                      "trigger": "string"
                    }
                  ],
                  "id": "",
                  "next": "string",
                  "say": "string",
                  "tag": "string",
                  "trigger": "string"
                }
              ],
              "exit": "string",
              "id": "",
              "next": "string",
              "say": "string",
              "tag": "string",
              "trigger": "string"
            }
          ],
          "id": "",
          "next": "string",
          "say": "string",
          "tag": "string",
          "trigger": "string"
        }
      ],
      "brief": {
        "headline": "string",
        "hooks": "string",
        "key_facts": "string",
        "watch_outs": "string"
      },
      "createdAt": "string",
      "definitionKey": "string",
      "generator": "string",
      "id": 1.5,
      "kind": "string",
      "name": "string",
      "rowId": "",
      "scope": "string",
      "spine": [
        {
          "key": "string",
          "label": "string",
          "purpose": "string",
          "say": "string"
        }
      ],
      "updatedAt": "string",
      "version": 1.5
    }
  ]
}
```

### default

a refusal: `{"error": "<what a person needs to read>"}`. 401 no credential, 402 the plan does not include this, 403 the seat does not, 404 the thing does not exist or is not yours to see.

Content type: `application/json`.

```json
{
  "error": "string"
}
```
