Parameter | Type | Required? | Description |
---|---|---|---|
text | String | yes | Text of sending. If it has title and content, combine them as one text. |
channel | String | yes | Channel of sending. One of ["email", "push", "sms"]. |
kpi | String | yes | KPIs to predict. One of ["ctr", "open_rate"]. |
When successful, returns:
{
"prediction": 0.5
}
{
"channel": "email",
"kpi": "ctr",
"text": "string"
}
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;' \
--header 'X-Client-Authorization: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"channel": "email",
"kpi": "ctr",
"text": "string"
}'
{
"prediction": 0
}