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

Explain Sending KPI Prediction v1

POST
https://api.mpc.dev.placewise.com/v1/ml/sending/explain_kpi_prediction
API Permit:ML:Sending:ExplainKPIPrediction
API Context:Loyalty Club
Authorizations:UserToken
Explains prediction for a specific sending and selected kpi.

Body Parameters#

ParameterTypeRequired?Description
payloadArray[Hash]YesArray of objects with the following fields: ["channel", "kpi", "model_input"]
payload[].channelStringYesChannel of sending. One of ["sms", "push", "email"]
payload[].kpiStringYesKPI of sending. One of ["ctr", "open_rate"]
payload[].model_inputHashYesObject with model input features. See example payload below in example.

Example#

When successful, returns:
[
  {
    "base_value": 0.0,
    "features": [
      {
        "name": "sent",
        "effect": 0.0,
        "value": 0.1
      }
    ],
    "kpi": "ctr"
  }
]

Request

Header Params

Body Params application/json

Example
{}

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/explain_kpi_prediction' \
--header 'X-User-Agent;' \
--header 'X-Product-Name;' \
--header 'X-Loyalty-Club-Slug;' \
--header 'X-Customer;' \
--header 'Authorization: Bearer ' \
--header 'X-Client-Authorization: ' \
--header 'Content-Type: application/json' \
--data-raw '{}'

Responses

🟢200Success
application/json
Body

Example
{
    "title": "string",
    "content": "string",
    "channel": "email",
    "scheduled_datetime": "string",
    "audience_conditions": [
        {}
    ],
    "kpi": [
        "ctr"
    ]
}
Previous
Predict Sending KPI v1
Next
Predict Sending KPI In Date Range v1
Built with