Substy Developers
Scripts

Create script message

Add a message template to a creator's sales script, including supported text, media, PPV pricing and follow-up content. Creating a template does not send it.

POST/v1/agencies/{agencyId}/creators/{creatorId}/script-templates

Add a message template to a creator's sales script, including supported text, media, PPV pricing and follow-up content. Creating a template does not send it.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

agencyId*string
Length1 <= length
creatorId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/agencies/string/creators/string/script-templates" \  -H "Authorization: Bearer YOUR_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "template": {      "name": "string",      "price": 0,      "scriptId": "string",      "content": "string",      "medias": [        {          "id": "string",          "price": 0,          "type": "PHOTO",          "files": {            "preview": "string",            "thumb": "string",            "full": "string"          },          "createdAt": "string"        }      ],      "basePrice": 0,      "maxPrice": 0,      "postMediaMessages": [        {          "waitTime": 0        }      ]    }  }'
{  "data": {    "id": "string",    "createdAt": "2019-08-24T14:15:22Z",    "name": "string",    "language": null,    "price": 0,    "scriptId": "string",    "updatedAt": "2019-08-24T14:15:22Z",    "imported": true,    "importedAt": null,    "content": "string",    "position": 0,    "basePrice": 0,    "maxPrice": 0,    "creatorTags": [      "string"    ],    "intervalMin": null,    "intervalMax": null,    "isAiCaption": true,    "isLockedText": true,    "pricingMode": "FIXED"  },  "meta": {    "requestId": "string",    "operationId": "3051932a-fdd2-48fa-b330-7e7d41535969",    "status": "COMPLETED"  }}