# Read a record's call script

The call script for ONE lead as it currently resolves: the saved script if this workspace has written one that reaches this lead, otherwise the script built from the lead's own facts. The order is row, then status, then workspace, then built. Leads page only; any other key is a 404.

Access class: `def:read`.

## Endpoint

`GET /v1/definitions/{key}/rows/{rowId}/script`

## Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| key | path | string | Yes |
| rowId | 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"
      ]
    },
    "generator": "string",
    "id": 1.5,
    "source_context": {
      "name": "string",
      "resolved_from": "string",
      "script_id": 1.5,
      "version": 1.5
    },
    "spine": [
      {
        "key": "string",
        "label": "string",
        "purpose": "string",
        "say": "string"
      }
    ],
    "status": "string"
  }
}
```

### 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"
}
```
