Personalized Preview
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.
Personalization Support
- User attributes
- Event attributes
- Custom templates
- Content blocks
- Content APIs
- Product sets
Rate Limit
The rate limit is 10,000 requests per minute.Authorizations
Authentication is done via Basic Auth. This requires a base64-encoded string of your credentials in the format 'username:password'.
- Username: Use your MoEngage workspace ID (also known as the App ID). You can find it in the MoEngage dashboard at Settings > Account > APIs > Workspace ID (earlier app id).
- Password: Use your API Key, which you can find within the Campaign report/Business events/Custom templates/Catalog API/Inform Report tile.
For more information on authentication and getting your credentials, refer here.
Headers
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.
Body
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:
- When you pass personalization_details, MoEngage uses those values to personalize content instead of actual user profile data.
- Attributes must exist in the MoEngage dashboard.
- If an attribute does not exist and default value is not “MOE_NOT_SEND”, it will appear empty.
- Event attributes can be used when the same event is used for the campaign.
- You can use event attributes to personalize content APIs when the same event is used for the campaign.
Information about the user to preview for.
Note: If using user_details, both identifier and identifier_value are mandatory.
Response
Successfully retrieved personalized content preview
Response containing the personalized content.
The personalized content with all attributes resolved.