Skip to main content
POST

Rate Limit

Personalization Support

  • User attributes
  • Event attributes
  • Custom templates
  • Content blocks
  • Content APIs
  • Product sets

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). Find it in the MoEngage dashboard at Settings > Account > API keys.
  • Password: Use an API key from Settings > Account > API keys.

Refer to API Key Dashboard for details on creating and managing API keys.

Headers

MOE-APPKEY
string

Your MoEngage Workspace ID (App ID). Optional — Basic Auth already carries the Workspace ID as the username, so this header is not required. Find it in the dashboard at Settings > Account > API keys.

X-MOE-Request-Id
string

Client-supplied trace ID. The server echoes it in the X-MOE-Request-Id response header and in response_id. If you omit it, the server generates one.

Body

application/json

Supply the target user (optional) and either an inline content payload or a reference to a saved custom template.

request_id
string
required

A unique identifier for this request. Echoed back as the top-level response_id on the response. Takes priority over the X-MOE-Request-Id header when both are supplied.

Example:

"req-8841"

personalization_content
Inline payload · object
required

Supply exactly one of payload or custom_template_data. A request with both, or with neither, fails validation.

personalization_details
object
required

Channel and attribute context used while rendering.

user_details
object

Identifies the user whose attributes are used to resolve personalization tokens. Omit this object to render without resolving a specific user's stored attributes.

Response

This response is returned when the request is processed successfully.

personalized_content
object