Transactional SMS

/sms/v1/projects/{projectToken}/sync

This method allows you to trigger Transactional SMS from our API and send them through Bloomreach Engagement.

The transactional SMS API is disabled by default. To configure this API in your project, please contact your Customer Success Manager. We will set up the SMS API for you based on your needs.

🚧

Incorrect code displays

Note that some language versions incorrectly display "params": { \"first_name\": \"Marian\" }instead of"params": { "first_name":"Marian" }.

Definition

Authorization

In this API call you must use the following authorization access and permissions:

Available access typePermissions needed
Private accessCampaigns > Transactional SMS API

Read more about:

Path parameters

ParameterTypeDescriptionRequired
projectTokenstringThe ID of your project.Required

Body parameters

ParameterTypeDescriptionRequired
contentobjectContent of the SMS message. This can be either by using an existing Bloomreach Engagement SMS template, or through raw text. Learn more below.Required
campaign_namestringName of the SMS campaign.Required
recipientobjectRecipient of the SMS message.Required
settingsobjectJSON object containing currently supported SMS template settings. Settings defined as part of the payload will override any settings pre-configured within a used template.Optional

🚧

transfer_identity default behavior

The default behavior is enabled, which is all clicks identification. However, it's important to note that this does not necessarily match the default configuration in the project/SMS template, which might normally be first-click identification. This is true only when you use our Campaign Link Shortener.

Content object parameters

There are two ways in which you can define the content of your SMS through this API method:

  1. Using Bloomreach Engagement template: Create an SMS template in Bloomreach Engagement, then send it through API.
  2. Using raw SMS: Define the SMS message contents within your API request.

The definition of the content object will differ based on which method you specify the content. Please find below the descriptions of the object parameters for both outlined ways.

(1) Using Bloomreach Engagement template

ParameterTypeDescriptionRequired
template_idstringThe ID of the SMS template you wish to send. This can be found in the URL when you go to the selected predefined template.Required
paramsobjectProvide all the required data for email personalization used in the template. Format: "param_name": "value".

For example: "first_name": "Marian"
No

(2) Using raw message

ParameterTypeDescriptionRequired
messagestringContent of the SMS message.Required
senderstringYour sender phone number.Required
max_message_partsintThe maximum allowed number of message parts. If exceeded, the SMS message will not be sent. Minimum value: 1, Maximum value: 8, Default value: 8No

Recipient object parameters

ParameterTypeDescriptionRequired
phonestringSpecify the phone number of the customer. If the phone number is not provided, it will be taken out from the customer profile in Bloomreach Engagement based on the customer ID.Optional
customer_idsstringSpecify the customer that should receive your SMS.

You can use any type of a customer ID. Common example would include registered.
Required
languagestringLanguage version of your template. If the template has several language versions created, you can choose which one to use for this SMS.Optional
Language
Click Try It! to start a request and see the response here!