This API shows a preview of personalized content for a specific user before sending a Push, Email, or SMS campaign. This API retrieves personalized message content with all user/event attributes resolved. Use this API to validate your personalization logic and see exactly how content will appear to specific users before launching campaigns.
Authentication is done via Basic Auth. This requires a base64-encoded string of your credentials in the format 'username:password'.
For more information on authentication and getting your credentials, refer here.
This is the Workspace ID of your MoEngage account that must be passed with the request. You can find it in the MoEngage dashboard at Settings > Account > APIs > Workspace ID (earlier app id).
Whether to pass the payload in compressed format.
Set to true to send compressed payload.
Provide personalization preview request with content and user details.
A unique identifier for this personalization preview request.
"preview_req_12345"
The content to personalize.
Note: Either payload or custom_template_data must be provided.
Important:
Information about the user to preview for.
Note: If using user_details, both identifier and identifier_value are mandatory.
Successfully retrieved personalized content preview
Response containing the personalized content.
The personalized content with all attributes resolved.