Placewise API
Get startedExplore
Get startedExplore
Performance Cloud 🗗
Placewise 🗗
ExplorePublic APIManagement APIUsers APIOperations APIMessaging APIReporting APIML API
Data API
ExplorePublic APIManagement APIUsers APIOperations APIMessaging APIReporting APIML API
Data API
  1. ML API
  • Introduction
  • Predict Sending KPI v1
    POST
  • Explain Sending KPI Prediction v1
    POST
  • Predict Sending KPI In Date Range v1
    POST
  • Predict Sending Popularity v2
    POST
  • Predict Sending Text Popularity v2
    POST
  • Predict Sending Time Series Popularity v2
    POST
  • Explain Sending Popularity Prediction v2
    POST
  • Explain Sending Text Popularity Prediction v2
    POST
  • Explain Sending Time Series Popularity Prediction v2
    POST
  • Recommend sending time v2
    POST
  • Detect receipt fraud
    POST
  • Predict item classes
    POST
  • Generate Image
    POST
  • Generate Image Caption
    POST
  • Generate Text
    POST
  • Generate Sending Text
    POST
  1. ML API

Predict Sending KPI v1

POST
https://api.mpc.dev.placewise.com/v1/ml/sending/predict_sending_kpi
API Permit:ML:Sending:KPIPrediction
API Context:Loyalty Club
Authorizations:UserToken
Returns predictions for selected KPI for a given sending entity.

Body Parameters#

ParameterTypeRequired?Description
titleStringyesTitle of sending.
contentStringyesContent of sending.
channelStringyesChannel of sending. One of ["email", "push", "sms"].
scheduled_datetimeDateyesScheduled datetime of sending. Format: "YYYY-MM-DD HH:MM:SS"
audience_conditionsArray[Object]yesAudience conditions of sending.
kpiArray[String]yesKPIs to predict. One of ["ctr", "open_rate"].

Example#

When successful, returns:
{
  "predictions": [
    {
      "kpi": "ctr",
      "predictions": [
        {
          "score": 0.5,
          "upper_bound": 0.1,
          "bottom_bound": 0.9,
          "input": {
            // model input features, after processing ...
          }
        }
      ],
      "model_config": {
        "predictions_upper_threshold": 0.5
      }
    }
  ]
}

Request

Header Params

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C#
Ruby
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.mpc.dev.placewise.com/v1/ml/sending/predict_sending_kpi' \
--header 'X-User-Agent;' \
--header 'X-Product-Name;' \
--header 'X-Loyalty-Club-Slug;' \
--header 'X-Customer;' \
--header 'Authorization: Bearer ' \
--header 'X-Client-Authorization: '

Responses

🟢200Success
application/json
Body

Example
{}
Previous
Introduction
Next
Explain Sending KPI Prediction v1
Built with