Required. A unique key for the SMS send definition object.
name
String
Required. A unique name for the send definition.
content.message
String
Required. The message content for the send definition. You can personalize the message by including AMPscript in the message body.
status
String
The state of the send definition. Possible values are active or inactive. A message sent to an active definition is processed and delivered. A message sent to an inactive definition isn’t processed or delivered. Instead, the message is queued for later processing for up to three days.
description
String
A description of the send definition.
subscriptions.shortCode
String
Required. The short or long code to send messages from.
subscriptions.countryCode
String
The country code associated with the short code. Don’t specify this value for long codes unless your account configuration requires it.
subscriptions.keyword
String
Required. The keyword used to track messages.
subscriptions.autoAddSubscriber
Boolean
Indicates whether to add a recipient as a short code subscriber by contact key. If this value is false, the message is rejected if the subscriber’s contact key doesn’t exist. The default value is true.
subscriptions.updateSubscriber
Boolean
Indicates whether to update the subscriber data for the recipient, including their mobile number. The default value is true.
Indicates whether to enable subscriber-level tracking for URLs in the message body. The value is true if the value of shortenerType is SFMC.
options.urlShortenerOptions.shortenerType
String
The type of URL shortener to use in the send definition. The only accepted value is SFMC.
options.SmsMessageRegulatoryAuthorityTemplateId
String
The ID of the DLT template used in the SMS. This attribute applies only to senders based in India.
If the value of updateSubscriber is true, then autoAddSubscriber must also be true. The API returns an error if updateSubscriber is true but autoAddSubscriber is false.
Note
Response Parameters
Name
Type
Description
requestId
String
A unique identifier for the request.
name
String
The name of the SMS send definition.
definitionKey
String
The unique key of the SMS send definition.
definitionId
String
A unique identifier for the send definition.
description
String
A description of the send definition.
status
String
The state of the send definition. Possible values are Active, Inactive, or Deleted.
createdDate
String
The date and time when the definition was created.
modifiedDate
String
The date and time when the definition was last modified.
content.message
String
The message content for the send definition.
subscriptions.shortCode
String
The short or long code associated with the send definition.
subscriptions.countryCode
String
The country code associated with the short code for the send definition.
subscriptions.keyword
String
The keyword used to track messages.
subscriptions.autoAddSubscriber
Boolean
Indicates whether to add a recipient as a short code subscriber by contact key.
subscriptions.updateSubscriber
Boolean
Indicates whether the subscriber data for the recipient is updated.
To associate a long code or international phone number to a send definition, add the numeric country code at the beginning of the phone number. Then, use this number as the shortCode attribute. Don’t use the alphabetic countryCode attribute unless your account configuration requires it.