POST sms/save

Save a single SMS record.

* required

Parameters

Name Type Description
smsID integer Unique ID of an SMS
title string Used for display purposes only
messagingServiceID string Unique ID of messaging service used to send the SMS
message string Content of SMS
includeOptOutInstructions boolean Appends generic opt out instructions to the message
userID integer ID of system user the record belongs to
deliveryType string How SMS is sent
MANUAL, AUTOMATED
recipients object
contactIDs array[integer] Individual contacts assigned to receive the SMS. For larger sends, consider adding the contacts to a group and sending to the group. Contacts must have a mobile number to be assigned as a recipient of the SMS.
excludeGroupIDs array[integer] Exclude contacts in these groups from receiving the SMS
groupIDs array[integer] Groups assigned to receive the SMS
contactFrequency string Defines how often a contact can receive the SMS. Applies only to Automated SMS. If set to "once", contacts can be queued to receive the SMS only once. If set to "no limit", contacts can be queued to receive the SMS multiple times without a minimum delay in-between. If set to a user-defined value in the format of {value}{datepart}, contacts can be queued to receive the SMS multiple times, but with a minimum delay in-between. {datepart} values are defined as: d=day, ww=week, m=month, yyyy=year. Example values: "1d" = 1 day, "2ww" = 2 weeks, "3m" = 3 months, "1yyyy" = 1 year. Maximum allowed timeframe is 2 years.
dateScheduled datetime Date/time of scheduled delivery. Applies only to Manual SMS.

Response Data

Returns an SMS object
Name Type Description
contactFrequency string Defines how often a contact can receive the SMS. Applies only to Automated SMS. If set to "once", contacts can be queued to receive the SMS only once. If set to "no limit", contacts can be queued to receive the SMS multiple times without a minimum delay in-between. If set to a user-defined value in the format of {value}{datepart}, contacts can be queued to receive the SMS multiple times, but with a minimum delay in-between. {datepart} values are defined as: d=day, ww=week, m=month, yyyy=year. Example values: "1d" = 1 day, "2ww" = 2 weeks, "3m" = 3 months, "1yyyy" = 1 year. Maximum allowed timeframe is 2 years.
dateAdded datetime Date record was added
dateModified datetime Date record was modified
dateScheduled datetime Date/time of scheduled delivery. Applies only to Manual SMS.
dateSent datetime Date SMS was sent. Applies only to Manual SMS.
deliveryStatus string Status of delivery
deliveryType string How SMS is sent
includeOptOutInstructions boolean Appends generic opt out instructions to the message
message string Content of SMS
messagingServiceID string Unique ID of messaging service used to send the SMS
recipients object Applies only to Manual SMS.
contactIDs array[integer] Individual contacts assigned to receive the SMS
excludeGroupIDs array[integer] Groups excluded from receiving the SMS
groupIDs array[integer] Groups assigned to receive the SMS
smsID integer Unique ID of an SMS
title string Used for display purposes only
userID integer ID of system user the record belongs to

Permissions

Method requires the SMS Admin permission

Example Calls

Create manual SMS

POST
/sms/save
cURL
Copy
Response Data

Create automated SMS

POST
/sms/save
cURL
Copy
Response Data

Update an SMS property

POST
/sms/save
cURL
Copy
Response Data

Schedule SMS

POST
/sms/save
cURL
Copy
Response Data

Assign Recipients

POST
/sms/save
cURL
Copy
Response Data

API Console

The console uses production data, so BE CAREFUL!
POST
sms/save
Request Body
{"message":"","userID":0,"deliveryType":"","dateScheduled":"","recipients":{},"messagingServiceID":"","contactFrequency":"","includeOptOutInstructions":0,"smsID":0,"title":""}
Access token: *