- Overview
- Introduction
- Hosts
- Global Headers
- Common HTTP Error Codes
- API Permits
- Authorization
- API Contexts
- Common Concepts
- Common Models
- Reference
- API Structure
- Public API
- Introduction
- Loyalty Club
- Member
- Offers
- Rewards
- Games
- CMS Content
- Management API
- Introduction
- Core
- Applications
- Privacy Policy
- Cookie Policy
- Terms
- Domains
- Domain Email Configs
- Domain Web Configs
- TLS Certificates
- Links
- Fonts
- Subunits
- Subunits Scopes
- SMS Sender Identities
- Contacts
- Translations
- Promotions Policy
- Tracker
- Social Logins
- Billing
- Members
- Listing Members
- Member Profile
- Imports
- Groups
- Programs
- Benefits
- Cars
- Webhooks
- Misc
- Receipts
- Stores
- Offers
- Rewards
- Triggerer
- CMS
- Introduction
- Pages
- Components
- Website
- Website Domains
- Venue Info
- Landing Pages
- Landing Page Templates
- Articles
- Events
- Events Groups
- Job Postings
- Press Releases
- Tags
- Service Messages
- Content Prototypes
- ContentPrototype Model
- List Content Prototypes
- Show Content Prototype
- Create Content Prototype
- Update Content Prototype
- Destroy Content Prototype
- List Organization Content Prototypes
- Show Organization Content Prototype
- Create Organization Content Prototype
- Update Organization Content Prototype
- Destroy Organization Content Prototype
- Mixed Content
- Attachments
- Events
- Games
- Scraper
- Files
- Receipts
- Users API
- Operations API
- Introduction
- Manager API
- Tenant API
- Messaging API
- Introduction
- Models
- Messages
- Sendings
- Templates
- Settings
- Sender Identities
- Messaging History
- Data API
- ML API
- Introduction
- Predict Sending KPI v1
- Explain Sending KPI Prediction v1
- Predict Sending KPI In Date Range v1
- Predict Sending Popularity v2
- Predict Sending Text Popularity v2
- Predict Sending Time Series Popularity v2
- Explain Sending Popularity Prediction v2
- Explain Sending Text Popularity Prediction v2
- Explain Sending Time Series Popularity Prediction v2
- Recommend sending time v2
- Generate Image
- Generate Text
- Generate Sending Text
- (Draft) Reporting API
- Other
Message model
Example#
{
"id": 758131,
"name": "DD3",
"shorten_urls": true,
"track_in_shortener": false,
"service": "generic",
"campaign_id": null,
"created_at": "2020-09-15T10:01:09.467Z",
"updated_at": "2020-09-15T10:01:09.467Z",
"channels": [
{
"id": 55781,
"type": "sms",
"sender": { "type": "alphanumeric", "value": "Infinity" },
"template": {
"id": 609193,
"wrapper_id": 3491,
"type": "plain",
"content": { "body": "Hei {{name}}" },
"created_at": "2020-09-15T12:45:08.618Z",
"updated_at": "2020-09-15T12:45:08.618Z"
},
"created_at": "2020-09-15T12:45:08.625Z",
"updated_at": "2020-09-15T12:45:08.625Z"
}
],
"sendings_status": "scheduled",
"sendings_count": 3,
"latest_sending": {
"id": 3920,
"status": "scheduled",
"audience_id": 107103,
"recipients_count": 0,
"dispatches_count": 9513,
"members_count": 9000,
"scheduled_at": "2020-10-15T15:27:02.853Z",
"transmitted_at": "2020-10-15T12:45:08.625Z",
"created_at": "2020-09-15T12:27:02.853Z",
"updated_at": "2020-09-15T12:45:08.625Z"
}
}
Definition#
Key | Type | Description |
---|---|---|
id | integer | |
name | string | |
shorten_urls | boolean | Should sendings for this message have URLs shortened with MPC Shortener? |
track_in_shortener | boolean | Should MPC Shortener track users? |
service | enum | MPC Service the Message is bound to |
campaign_id | integer | MPC's campaign ID (applicable to campaigns service) |
channels | Channel[] | Channels the message is sent with |
sendings_status | enum | Aggregated Sendings status |
sendings_count | integer | Number of Sendings of Message |
latest_sending | MessageSending | Most recent Sending of Message |
created_at | datetime | Time of creation |
updated_at | datetime | Time of last update |
Service#
A "generic" service exists for any non-specific Messages. For others, a permit is required.
Service | Permit | Description |
---|---|---|
generic | n/a | Generic API message |
tenants | Messages:Api:Messages:UseService:Tenants | For MPC TEM tenant messages |
tenants_testing | Messages:Api:Messages:UseService:TenantsTesting | For MPC TEM tenant test messages |
Aggregated Sendings status#
transmitted
, cancelled
, failed
or skipped
, then sendings_status
is finished
.draft
, then sendings_status
is draft
.sendings_status
is scheduled
.MessageSending model#
Key | Description |
---|---|
id | Sending |
audience_id | Sending |
status | Sending |
scheduled_at | Sending |
created_at | Sending |
transmitted_at | Sending |
updated_at | Sending |
recipients_count | Number of recipients |
dispatches_count | Number of dispatches, when sending has not been executed yet it's null |
members_count | Number of distinct members to whom messages has been sent |
Modified at 2024-04-22 22:18:17