WhatsApp messages sent through a customer journey are system campaigns. These do not show up in the messages:list API endpoint. To find human-readable names for these messages, use the customer journey statistics API.
Data mapping
You can match the codes in your logs to the following fields in the API response:
- The campaign_code from your logs matches campaignCode in the API.
- The message_code from your logs matches presetCode in the API.
- The pointTitle field contains the name of the specific journey step.
- The payload.title field contains the name of the journey.
When you filter statistics by platform, use the number 21 to identify WhatsApp.
Steps to sync names
To add journey names to your logs, follow these steps:
- Collect your journey IDs. You can find these in your browser address bar when viewing a journey in the control panel. The ID appears at the end of the URL after /customer-journey/.
- Call the customer journey statistics API for each ID.
- Create a local reference table. Use this table to link the campaignCode and presetCode from the API to the journey and step names. You can then use this table to replace the codes in your delivery logs with their actual names.
Comments
0 comments
Please sign in to leave a comment.