Directly using the Best time to send feature via the /createMessage API is not supported. This feature is exclusive to the Customer Journey infrastructure.
To achieve this functionality programmatically, you must configure a Customer Journey using the following steps:
- Create a Customer Journey with an API-based Entry or Event-based Entry.
- Add a Push Notification element to the journey and enable the Best time to send option within its settings.
- Trigger the journey using the API:
- If using API-based Entry, call the specific endpoint provided in the Entry element settings.
- If using Event-based Entry, trigger the event for the user via the
/postEventmethod.
Note: The "Best time to send" feature requires sufficient historical data on user interactions (e.g., app opens) to calculate the optimal time. If data is insufficient, the message may be sent at a default time.
Comments
0 comments
Please sign in to leave a comment.