Placewise API
Get startedExplore
Get startedExplore
Performance Cloud 🗗
Placewise 🗗
ExplorePublic APIManagement APIUsers APIOperations APIMessaging API
Reporting APIML APIData API
ExplorePublic APIManagement APIUsers APIOperations APIMessaging API
Reporting APIML APIData API
  1. Messaging API
  • Introduction
  • Templating system
  • Message model
  • Sending model
  • Messages
    • Campaigns
      • Introduction
      • Create Campaign
      • List Campaigns
      • Show Campaign
      • Update Campaign
      • Archive Campaign
      • Restore Campaign
      • Destroy Campaign
    • Create Message
      POST
    • List Messages
      GET
    • Show Message
      GET
    • List Message Sendings
      GET
    • Update Message
      PUT
    • Duplicate Message
      PUT
    • Delete Message
      DELETE
    • List Messages Overview
      GET
  • Sendings
    • Show Sending
      GET
    • Create Sending
      POST
    • Update Sending
      PUT
    • Cancel Sending
      PUT
  • Templates
    • Introduction
    • Bee Templates
      • Introduction
      • List Bee Email Templates
      • Show Bee Email Template
      • List Bee Email Templates Tags
    • List Templates
      GET
    • Show Template
      GET
    • Create Template
      POST
    • Update Template
      PUT
    • Destroy Template
      DELETE
  • Misc
    • List Messaging Services
      GET
    • List Merge Properties
      GET
    • Show Messaging Settings
      GET
  1. Messaging API

Message model

Model#

This schema describes Messages in the responses. Payload for creations and updates is significantly different and can be referenced in docs of the respective API endpoints.
Message

Multiple channels#

It is possible to provide multiple channels per Message. During sending execution, one of them will be chosen, based on:
channels which are available for recipient
order (priority) of channels in payload specified during Message creation
optional preference set on Sending

Channel attributes#

There are channel attributes specific for given type.
KeyChannel typeType
message.sender.typesmsenum: ['alphanumeric', 'international']
message.sender.valuesmsstring
message.sender.from_emailemailstring
message.sender.from_nameemailstring
When not provided explicitly, values of those the following attributes are taken from Loyalty Club configuration.
For Email channels, the from_email and from_name are used in the sent mails as following: {{from_name}} <{{from_email}}>. For example, to send email as Developer <dev@placewise.com>, from_name should be Dev and from_email - dev@placewise.com.
For SMSes channels, depending on selected sender.type, a sender.value can be provided according to the following table:
TypeValue
alphanumericString consisting of 2-11 characters
internationalAny MSISDN

Marketing purpose#

Because of GDPR regulations, when Message that has marketing purpose is meant to be sent to MPC members by Audience, then members without marketing consent (see: Member) required for specific channel will be filtered out from the Audience.
By default, the marketing purpose of Message is implied from Service - details for a specific service can be referenced here.
It is also possible to explicitly mark a Message either by marketing or a non-marketing with marketing:bool flag, but it requires an additional API permit - Messages:Api:Sendings:WithoutConsentsChecks.
Previous
Templating system
Next
Sending model
Built with