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. Sendings
  • Introduction
  • Sendings
    • Deprecated
      • Predict Sending KPI v1
      • Explain Sending KPI Prediction v1
      • Predict Sending KPI In Date Range v1
      • Explain Sending Text KPI Prediction v1
    • Predict Sending Text Popularity
      POST
    • Explain Sending Text Popularity Prediction
      POST
    • Predict Sending Time Series Popularity
      POST
    • Explain Sending Time Series Popularity Prediction
      POST
    • Predict Sending Popularity
      POST
    • Predict Bulk Sending Popularity
      POST
    • Explain Sending Popularity Prediction
      POST
    • Recommend sending time
      POST
  • Detect receipt fraud
    POST
  • Predict item classes
    POST
  • Generate Image
    POST
  • Generate Image Caption
    POST
  • Generate Text
    POST
  • Generate Sending Text
    POST
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. Sendings

Recommend sending time

POST
https://api.mpc.dev.placewise.com/v2/ml/sending/recommend_time
API Permit:ML:Sending:KPIPrediction
API Context:Loyalty Club
Authorizations:UserToken
Recommends sending date and time in a given time frame. Prediction is made for each hour in the given range, and the best one is also explicitly returned. Version v2, with upgraded models.
Warning: combination of "sms" channel and "open_rate" KPI is not supported.
Text should be as shown to the end user, without any HTML.

Example#

When successful, returns:
{
  "predictions": [
    {
      "timestamp": "2025-01-01 01:00:00",
      "prediction": 0.01
    },
    {
      "timestamp": "2025-01-01 02:00:00",
      "prediction": 0.05
    },
    ...
  ],
  "best_prediction": {
    "timestamp": "2025-01-01 05:00:00",
    "prediction": 12,34
  }
}

Request

Header Params

Body Params application/json

Example
{
    "channel": "sms",
    "kpi": "open_rate",
    "sending_date": "2024-04-20",
    "sending_hour": 16,
    "text": "Canis acervus maxime trepide conculco strues. Calco placeat ipsam tibi."
}

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/v2/ml/sending/recommend_time' \
--header 'X-User-Agent: ApiDog' \
--header 'X-Product-Name: default' \
--header 'X-Loyalty-Club-Slug: infinity-mall' \
--header 'X-Customer: 447' \
--header 'Authorization: Bearer ' \
--header 'X-Client-Authorization: ' \
--header 'Content-Type: application/json' \
--data-raw '{
    "channel": "sms",
    "kpi": "open_rate",
    "sending_date": "2024-04-20",
    "sending_hour": 16,
    "text": "Canis acervus maxime trepide conculco strues. Calco placeat ipsam tibi."
}'

Responses

🟢200Success
application/json
Body

Example
{
    "predictions": [
        {
            "timestamp": "2022-11-09T16:25:58.099512Z",
            "prediction": 0
        }
    ],
    "best_prediction": {
        "timestamp": "2022-11-09T16:25:58.099512Z",
        "prediction": 0
    }
}
Previous
Explain Sending Popularity Prediction
Next
Detect receipt fraud
Built with