GET
/v1/definitions/{key}/rows/{rowId}/scriptRead 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.
Send request
Use the documented inputs to call this endpoint directly.
API serverbase URL
Bearer tokensessionoptional
Stored only in this browser for the session security scheme and reused on every API page in this group.
Parameters
Values are applied to the request and the example on the right.
keypath · stringrequired
rowIdpath · stringrequired
bodyquery · nulloptional
paramsquery · objectoptional
:keystringoptional
:rowIdstringoptional
queryquery · objectoptional
Responses
200application/json
the action's answer
{
"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"
}
}datarequired
defaultapplication/json
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.
{
"error": "string"
}errorstringrequired