/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 type | Permissions needed |
---|---|
Private access | Campaigns > Transactional SMS API |
Read more about:
Path parameters
Parameter | Type | Description | Required |
---|---|---|---|
projectToken | string | The ID of your project. | Required |
Body parameters
Parameter | Type | Description | Required |
---|---|---|---|
content | object | Define the content of the SMS. This can be either by using an existing Bloomreach Engagement SMS template, or through raw text. Learn more below. | Required |
campaign_name | string | The name of the SMS campaign. | Required |
recipient | object | Define the recipient of the SMS message. | Required |
settings | object | JSON 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 behaviorThe 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 link shortener.
Content object parameters
There are two ways in which you can define the content of your SMS through this API method:
- Using Bloomreach Engagement template: Create an SMS template in Bloomreach Engagement and then send it through API.
- Through raw SMS: Define the message in your request.
The definition of the content
object will differ based on which way you want to specify the content. Please, find the description of the object parameters for both of the outlined ways below.
(1) Using Bloomreach Engagement template
Parameter | Type | Description | Required |
---|---|---|---|
template_id | string | The ID of the SMS template that you wish to send out. This can be found in the URL when you go to the selected predefined template. | Required |
params | object | Provide 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
Parameter | Type | Description | Required |
---|---|---|---|
message | string | Define the content of the SMS. | Required |
sender | string | Phone number of a sender. | Required |
max_message_parts | int | The maximum allowed number of message parts. If exceeded, the SMS will not be sent. Minimum value: 1, Maximum value: 8, Default value: 8 | No |
Recipient object parameters
Parameter | Type | Description | Required |
---|---|---|---|
phone | string | Specify 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_ids | string | Specify the customer that should receive your SMS. You can use any type of a customer ID. Common example would include registered. | Required |
language | string | Language version of your template. If the template has several language versions created, you can choose which one to use for this SMS. | Optional |