Substy Developers
Scripts

Get sales script preview

Preview a sales script and its message sequence by script ID without sending it.

GET/v1/agencies/{agencyId}/scripts/{scriptId}/preview

Preview a sales script and its message sequence by script ID without sending it.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

agencyId*string
Length1 <= length
scriptId*string

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/agencies/string/scripts/string/preview" \  -H "Authorization: Bearer YOUR_API_KEY"
{  "data": {    "_count": {      "messageTemplates": 0    },    "messageTemplates": [      {        "id": "string",        "name": "string",        "price": 0,        "content": "string",        "position": 0,        "basePrice": 0,        "maxPrice": 0,        "pricingMode": "FIXED"      }    ],    "enabled": true,    "description": null,    "creatorId": "string",    "id": "string",    "createdAt": "2019-08-24T14:15:22Z",    "name": "string",    "updatedAt": "2019-08-24T14:15:22Z",    "imported": true,    "importedAt": null,    "startTime": null,    "endTime": null,    "position": 0,    "isCustom": true,    "isAi": true,    "isHuman": true,    "targetFanListIds": [      "string"    ]  },  "meta": {    "requestId": "string"  }}