1.0.0
Create and manage SMS and MMS content in Marketing Cloud Next. SMS content supports direct message text, templates, personalization, URL shortening, and media attachments.
This table lists the SMS content-related use cases that the API supports.
| Supported Use Case | HTTP Verb | URI |
|---|---|---|
| Create SMS content | POST | /services/data/{apiVersion}/connect/cms/contents/sms |
| Get SMS content | GET | /services/data/{apiVersion}/connect/cms/contents/{contentId} |
| Update an SMS content variant | PUT | /services/data/{apiVersion}/connect/cms/contents/variants/{variantId} |
| Delete an SMS content variant | DELETE | /services/data/{apiVersion}/connect/cms/contents/variants/{variantId} |
SMS content supports standard text messaging and MMS multimedia messaging. MMS messages can include image, video, audio, and VCF attachments.
Content Body Structure
The contentBody object contains all SMS-specific content:
{
"sfdc_cms:title": "NTO New Customer Outreach",
"sfdc_cms:description": "SMS campaign for Northern Trail Outfitters.",
"messageContent": "Serious savings on our biggest selection yet",
"messagePurpose": "promotional",
"enableUrlShortening": true,
"enableMmsMedia": false,
"customDomain": "example.com"
}
Required Fields
sfdc_cms:title—The name of the SMS content itemmessagePurpose—The purpose of the message (promotionalortransactional)enableUrlShortening—Determines whether to apply URL shortening automatically in messages
Message Content Options
Option 1: Direct Message Content
Use the messageContent property to provide SMS text directly. Supports Handlebars expressions for personalization, such as {{$unifiedIndividual.FirstName}}.
Option 2: DLT Template with Variables
Use externalId to reference an SMS DLT template (sfdc_cms__smsDltTemplate) and messageVariables for dynamic value substitution.
MMS Media Support
Enable MMS by setting enableMmsMedia to true and providing an mmsMediaContentBlock. The sfdc_cms__mmsMediaContentBlocks class supports these media content types:
sfdc_cms__mmsImageContent—Image attachmentssfdc_cms__mmsVideoContent—Video attachmentssfdc_cms__mmsAudioContent—Audio attachmentssfdc_cms__mmsVcfContent—VCF (vCard) attachments
Content Properties
| Property | Type | Description |
|---|---|---|
sfdc_cms:title |
string | The title of the SMS content item. |
sfdc_cms:description |
string | A description of the content item. |
messageContent |
string | The SMS message body. Supports Handlebars scripting. |
messagePurpose |
string | The message type (promotional or transactional). |
enableUrlShortening |
boolean | Indicates whether to enable URL shortening. |
enableMmsMedia |
boolean | Indicates whether to enable MMS media. |
mmsMediaContentBlock |
block | A content block for MMS media. |
customDomain |
string | A custom domain to use for shortened URLs. |
externalId |
string | A reference to an approved template, such as a DLT template for sending to India. |
messageVariables |
list | Values to apply to template variables. |
Data Providers
SMS content supports these data providers for personalization:
sfdc_cms__linkDataProvider($link)—Link data (PreferenceCenterUrl)sfdc_cms__utmDataProvider($utm)—UTM tracking data (CampaignName,CampaignId,FlowName,ChannelName,MessageTitle,CampaignType, orFlowId)sfdc_cms__unifiedIndividualDataProvider($unifiedIndividual)—Unified Individual profile datasfdc_cms__eventListDataProvider($eventList)—Event list datasfdc_cms__apexClassListDataProvider($apexClassList)—Apex class list datasfdc_cms__activationListDataProvider($activationList)—Activation list datasfdc_cms__couponListDataProvider($couponList)—Coupon list data
Salesforce Marketing Cloud
Let us know so we can improve!