Skip to content

Create Autoresponder SMS Draft

Tool name: create-autoresponder-sms-draft

Creates an inactive SMS follow-up draft with empty text and an unfiltered audience. By default it sends once immediately after entry when activated; birthday mode needs a date field and time. Set the audience with update-autoresponder-draft, the text with replace-autoresponder-sms-content and the delay with configure-autoresponder-trigger. splitTest makes it a split test, which only creation can decide. Requires SMS marketing; sends nothing.

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
birthdayboolean

true for a birthday follow-up, which goes out on each contact's birthday instead of after a delay

Default:false
birthdayFieldIdnull or string, [ 1 .. 100 ] characters

Required when birthday is true, forbidden otherwise: ID of the date field holding the birthday, from search-custom-fields

Default:null
birthdayTimenull or string^([01][0-9]|2[0-3]):[0-5][0-9]$

Required when birthday is true, forbidden otherwise: time of day "HH:MM" it goes out on the birthday

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, "birthday": false, "birthdayFieldId": null, "birthdayTime": null, "splitTest": null, "accountId": null }

Output schema

accountIdintegerrequired
autoresponderIdintegerrequired
kindstringrequired
Enum:"email""sms""birthday-email""birthday-sms"
namestringrequired
notesstringrequired
statusstringrequired
Enum:"draft""paused""scheduled""active"
labelsArray of stringsrequired
isSplitTestbooleanrequired
emailobject or nullrequired
smsobject or nullrequired
triggerobjectrequired
audienceobjectrequired
missingForActivationArray of stringsrequired
editUrlstringrequired
scheduleUrlstringrequired
statisticsUrlstringrequired
Output example
{ "accountId": 0, "autoresponderId": 0, "kind": "email", "name": "string", "notes": "string", "status": "draft", "labels": [ "string" ], "isSplitTest": true, "email": { "emailId": 0, "subject": "string", "preheader": "string", "reportSpamHeader": true, "editorUrl": "string", "contentUrl": "string" }, "sms": { "smsId": 0, "text": "string", "senderName": "string", "provider": "string", "linkTracking": true, "contentUrl": "string" }, "trigger": { "delayUnit": "immediately", "delayValue": 0, "dateFieldId": "string", "weekdays": [ 0 ], "sendAtTime": "string", "birthdayFieldId": "string", "birthdayTime": "string", "repeat": true, "repeatTagIds": [ 0 ] }, "audience": { "mode": "all_contacts" }, "missingForActivation": [ "string" ], "editUrl": "string", "scheduleUrl": "string", "statisticsUrl": "string" }