Parameter | Type | Required? | Description |
---|---|---|---|
payload | Array[Hash] | Yes | Array of objects with the following fields: ["channel", "kpi", "model_input"] |
payload[].channel | String | Yes | Channel of sending. One of ["sms", "push", "email"] |
payload[].kpi | String | Yes | KPI of sending. One of ["ctr", "open_rate"] |
payload[].model_input | Hash | Yes | Object with model input features. See example payload below in example. |
When successful, returns:
[
{
"base_value": 0.0,
"features": [
{
"name": "sent",
"effect": 0.0,
"value": 0.1
}
],
"kpi": "ctr"
}
]
{}
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;' \
--header 'X-Client-Authorization: ' \
--header 'Content-Type: application/json' \
--data-raw '{}'
{
"title": "string",
"content": "string",
"channel": "email",
"scheduled_datetime": "string",
"audience_conditions": [
{}
],
"kpi": [
"ctr"
]
}