Push Notification API
1.0.0
Create push notification content in Marketing Cloud Next. Push notifications support basic, carousel, and news-flash layouts.
This table lists the push notification-related use cases that the API supports.
| Supported Use Case | HTTP Verb | URI |
|---|---|---|
| Create push notification content | POST | /services/data/{apiVersion}/connect/cms/contents/pushNotification |
Push Notification Content Structure
Push notification content uses a block-based architecture:
{
"sfdc_cms:title": "My Push Notification",
"notificationType": "Basic",
"notificationBlock": {
"type": "block",
"definition": "sfdc_cms__pushNotificationBasic",
"attributes": {
"sfdc_cms:pushNotificationContentTitle": "Welcome!",
"sfdc_cms:pushNotificationContentMessage": "Your message here",
"type": "Basic"
}
}
}
Notification Types
When you send an in-app notification, select one of these notification types:
- Basic—Standard push notification with title, subtitle, message, media, icons, and action buttons
- Carousel—A push notification with multiple carousel cards
- NewsFlash—Breaking news notification with title, subtitle, message, and actions
Content Properties
Push notification content objects contain the properties in this table.
| Property | Type | Description |
|---|---|---|
sfdc_cms:title |
string | The name of the content item. |
sfdc_cms:pushNotificationContentTitle |
string | The title of the notification. |
sfdc_cms:pushNotificationContentSubTitle |
string | The subtitle of the notification. |
sfdc_cms:pushNotificationContentMessage |
string | The body content of the notification. |
Action Types
Push notification open behavior and action buttons support these action types:
0—Open the app1—Go to a URL in the app2—Go to a URL on the web
Data Providers
Push notifications support these data providers for personalization:
sfdc_cms__unifiedIndividualDataProvider—Unified individual profile datasfdc_cms__organizationDataProvider—Organization datasfdc_cms__eventListDataProvider—Event list datasfdc_cms__couponListDataProvider—Coupon list data
Handlebars Expression Support
Push notification content supports Handlebars scripting in title, subtitle, and message fields.
https://{subdomain}.my.salesforce.com
Salesforce Marketing Cloud
DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!
Let us know so we can improve!