Skip to main content
POST

Rate Limits

Authorizations

Authorization
string
header
required

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: On your MoEngage workspace, navigate to SettingsAccountAPI keys and click Create new key. The tab lists every API surface (Data, Segmentation, Push, Email, Campaigns, Templates, and more) and exposes per-resource actions. For Campaigns, ensure the View, Create & Manage, and Create, Manage & Publish checkboxes are selected.

For more information on authentication and getting your credentials, refer to Getting your credentials.

Send the value in the Authorization header as Basic followed by Base64-encoding of appkey:apisecret (workspace ID and API key).

Headers

MOE-APPKEY
string
required

Your MoEngage Workspace ID (App ID). Find it in the dashboard at Settings > Account > APIs > Workspace ID.

X-MOE-Request-Id
string
required

Correlates with response_id. Supply this header or request_id in the body; if both are set, they must match.

Body

application/json

Personalization preview request. Supply the target user identification and the campaign content to resolve. All Jinja expressions and dynamic sources are evaluated against the specified user's profile.

request_id
string
required

Unique identifier for this request. Correlates with response_id.

channel
enum<string>
required

Channel of the content to preview.

Available options:
PUSH,
EMAIL,
SMS
user_identification
object
required

Identifies the target user whose attributes are used to resolve personalisation.

campaign_content
object
required

The campaign content to resolve. Follows the same campaign_content structure as the Create Campaign request. Only the content sent here is evaluated - no saved draft is loaded.

Example:
event_attributes
object

Optional map of event attribute key-value pairs to inject into personalisation resolution. Useful for previewing event-triggered campaigns where the triggering event carries attributes.

Response

Preview resolved successfully. Returns the fully rendered content for the specified user.

response_id
string
type
string
Example:

"personalization"

data
object