- 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
- Data API
- ML API
- Introduction
- Predict Sending KPI v1POST
- Explain Sending KPI Prediction v1POST
- Predict Sending KPI In Date Range v1POST
- Predict Sending Popularity v2POST
- Predict Sending Text Popularity v2POST
- Predict Sending Time Series Popularity v2POST
- Explain Sending Popularity Prediction v2POST
- Explain Sending Text Popularity Prediction v2POST
- Explain Sending Time Series Popularity Prediction v2POST
- Recommend sending time v2POST
- Generate ImagePOST
- Generate TextPOST
- Generate Sending TextPOST
- (Draft) Reporting API
- Other
Explain Sending Time Series Popularity Prediction v2
POST
https://api.mpc.dev.placewise.com/v1/ml/sending/explain_text_kpi_prediction
API Permit:ML:Sending:ExplainTextKPIPrediction
API Context:Loyalty Club
Authorizations:UserToken
Body Parameters#
Parameter | Type | Required? | Description |
---|---|---|---|
sending_date | Datetime | yes | Date of sending, ISO 8601 format. |
channel | String | yes | Channel of sending. One of ["email", "push", "sms"]. |
kpi | String | yes | KPIs to predict. One of ["ctr", "open_rate"]. |
Example#
When successful, returns:
{
"dates": [
"2025-03-28",
"2025-03-29",
"2025-03-30"
],
"predictions": [
7.6644820793970885,
7.6647581507025695,
7.664979007746955
],
"low_50_percentiles": [
2.585277421222262,
2.5597992934271305,
2.534362770369186
],
"high_50_percentiles": [
12.743686737571915,
12.76971700797801,
12.795595245124723
],
"low_95_percentiles": [
0,
0,
0,
],
"high_95_percentiles": [
22.423873452263305,
22.498987284518,
22.573764561320587
]
}
Request
Header Params
X-Loyalty-Club-Slug
stringÂ
required
Default:
{{LOYALTY_CLUB_SLUG}}
X-Client-Authorization
stringÂ
optional
Default:
{{API_TOKEN}}
Body Params application/json
channel
enum<string>Â
required
Allowed values:
emailpushsms
kpi
enum<string>Â
required
Allowed values:
ctropen_rate
sending_date
stringÂ
required
Example
{
"channel": "email",
"kpi": "ctr",
"sending_date": "string"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.mpc.dev.placewise.com/v1/ml/sending/explain_text_kpi_prediction' \
--header 'X-User-Agent;' \
--header 'X-Product-Name;' \
--header 'X-Loyalty-Club-Slug;' \
--header 'X-Customer;' \
--header 'Authorization;' \
--header 'X-Client-Authorization: ' \
--header 'Content-Type: application/json' \
--data-raw ''
Responses
🟢200Success
application/json
Body
dates
array[string]
required
predictions
array[number]
required
low_50_percentiles
array[number]
required
high_50_percentiles
array[number]
required
low_95_percentiles
array[number]
required
high_95_percentiles
array[number]
required
Example
{
"dates": [
"string"
],
"predictions": [
0
],
"low_50_percentiles": [
0
],
"high_50_percentiles": [
0
],
"low_95_percentiles": [
0
],
"high_95_percentiles": [
0
]
}
Modified at 2025-04-14 12:28:19