Skip to content

Create SMS Newsletter Draft

Tool name: create-sms-newsletter-draft

Creates an SMS newsletter draft with an empty SMS and no send date, so it reaches nobody. The audience starts unfiltered (every active contact with a phone number once sent); set it with update-sms-newsletter-draft, the text with replace-sms-newsletter-content, provider and sender with configure-sms-newsletter-delivery. splitTest makes it a split test, which only creation can decide; variants use the sms-newsletter-split-test tools. Needs the SMS marketing permission.

Input schema

namestring, [ 1 .. 250 ] charactersrequired

Name, unique within the account, at most 250 characters, without HTML

notesnull or string, <= 1000 characters

Internal note, at most 1000 characters; omit for none

Default:null
splitTestobject
Default:null
accountIdnull or integer, >= 1

User ID of the account; omit for the account of the access token

Default:null
Input example
{ "name": "string", "notes": null, "splitTest": null, "accountId": null }

Output schema

accountIdintegerrequired
newsletterIdintegerrequired
namestringrequired
notesstringrequired
labelsArray of stringsrequired
statusstringrequired
Enum:"draft""scheduled""outgoing""sent"
isSplitTestbooleanrequired
smsobject or nullrequired
audienceobjectrequired
sendAtstring or nullrequired
missingForDispatchArray of stringsrequired
editUrlstringrequired
scheduleUrlstringrequired
statisticsUrlstringrequired
Output example
{ "accountId": 0, "newsletterId": 0, "name": "string", "notes": "string", "labels": [ "string" ], "status": "draft", "isSplitTest": true, "sms": { "smsId": 0, "text": "string", "senderName": "string", "provider": "string", "linkTracking": true, "contentUrl": "string" }, "audience": { "mode": "all_contacts" }, "sendAt": "string", "missingForDispatch": [ "string" ], "editUrl": "string", "scheduleUrl": "string", "statisticsUrl": "string" }