Skip to main content
POST

Authorizations

Authorization
string
header
required

Send your Workspace ID and API key as a base64-encoded username:password string.

  • Username: Your MoEngage Workspace ID (also known as the App ID), from Settings > Account > API keys.
  • Password: An API key generated from Settings > Account > API keys. Click + Create new key, set Authentication type to Basic Auth, select the Offerings group, and assign at least the Create & Manage permission.

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

Headers

Idempotency-Key
string<uuid>
required

UUID v4 idempotency token. Submitting the same key within 24 hours returns the original 201 response without re-creating the Offering. A different body hash on the same key returns 409 IDEMPOTENCY_CONFLICT. A concurrent in-progress request with the same key returns 409 DUPLICATE_IDEMPOTENCY_KEY.

X-MOE-Request-Id
string<uuid>

Client-supplied trace ID (UUID v4). Echoed back in the X-MOE-Request-Id response header. Use this to correlate client requests with server-side logs. If you also send request_id in the body, the body value is used.

Body

application/json

Request body for creating an Offering via POST /v5/offers.

Required field: created_by. A request ID is also required, either as request_id in the body or as the X-MOE-Request-Id header. All other fields are optional while the offering is a draft, so you can create a draft with a few fields and complete it later with Update Offering.

Some fields are required to publish the offering: display_name, priority, scheduling, segment_info, offer_content and variation_meta, plus attribution_multiplier and imp_track_hours when you add a conversion goal (conversion). To see what is still missing, call Validate Offering.

created_by
string<email>
required

Email address of the user creating this offering.

display_name
string

Unique display name for this offering within the workspace. Names are case-sensitive and must be unique. Follow these rules:

  • Length: 5–100 characters, measured after leading and trailing spaces are trimmed.
  • Starting character: Must start with a letter (A–Z or a–z). It cannot start with a digit, a space, or a special character.
  • Letters: Must contain at least one letter (A–Z or a–z).
  • Allowed characters: Letters, digits, spaces, and the special characters hyphen (-), ampersand (&), underscore (_), percent (%), and round brackets (( and )).
Required string length: 5 - 100
Example:

"Summer_Sale_Promo_2026"

description
string

Optional free-text description of the offering's purpose, targeting rationale, or expected user experience. Visible in the MoEngage UI offering list.

Maximum string length: 500
Example:

"20% discount for returning users who have not purchased in 30 days"

priority
integer

Static priority score for offer ranking. Lower number means lower priority (1 is lowest priority, 100 is highest). This score is used when the Decision Policy ranking strategy is set to Offering Priority.

Required range: 1 <= x <= 100
request_id
string

Optional. A unique ID for this request, used to trace it in logs and support tickets. A UUID v4 is recommended. If you omit it, the X-MOE-Request-Id header is used. If you send both, request_id is used. If neither is sent, the API returns 400 REQUIRED_FIELD_MISSING.

Example:

"5b2f7c1e-3d94-4a68-8e1b-9c0a7d42f6a3"

status
enum<string>

Optional. Offerings created through the API are always saved as drafts, so the only accepted value is draft. If you omit status, the offering is created in draft state. Any other value returns 400 INVALID_STATUS. Publishing isn't available through the API. To make the offering live, publish the draft manually from the MoEngage dashboard.

Creating a draft requires the Create & Manage permission. Without it, the API returns 403 INSUFFICIENT_SCOPE.

Available options:
draft
Example:

"draft"

tags
string[]

Names of existing tags to attach to the offering (for example SUMMER_SALE). Tags are used to group offerings and to select offerings in Decision Policies.

Maximum array length: 10
Example:
scheduling
object

Scheduling window that determines when an offering is eligible for delivery. Both start_datetime and expiry_datetime are required when creating an offering.

segment_info
object

Segment targeting configuration that controls which users are eligible to receive this offering.

included_filters: criteria a user MUST match to be eligible. excluded_filters: criteria that DISQUALIFY a user even if they match the included filters.

To target all users, use the built-in moe_all_users segment:

insession_attr_info
object

Optional. Targets visitors in real time. In-session attributes enable real-time visitor grouping based on dynamic conditions, using attributes passed as key-value (KV) pairs. Use included_filters to include visitors and excluded_filters to exclude them.

You can add up to 10 attributes in a group and up to 5 groups per offering. Validate Offering checks these limits.

Supported data types: string, double, bool, datetime, array_string and array_double. To learn more about in-session attributes and the supported operators and data types, see In-session attributes.

offer_content
object

The core content payload delivered to the end-user. This object supports two mutually exclusive structures depending on whether your offering uses content variations or experimentation.

Mutually Exclusive: Do not provide both content_1 and locales in the same request payload. Doing so will result in a validation error.

1. Flat Format (No Content Variations)

Use this structure for simple offerings that do not require A/B testing or localization.

  • Payload Structure: Send a single content_1 object at the root level.
  • Behavior: The exact same content block is served universally to all eligible users.

2. Nested Format (Multiple Content Variations)

Use this structure when variation_meta.type is configured as either SMV (Static Multi-Variant) or DMV (Dynamic Multi-Variant).

  • Payload Structure: Send a structured locales map object.
  • Single-Locale Targeting: For single-locale offerings, you must use "0" as the literal locale key string.
  • Variations Mapping: Inside each locale, the nested variations map keys must exactly match the variation IDs defined in smv_distribution.split for SMV. DMV has no split, so the keys are the variations you define. Variation keys must follow the variation_N format (e.g. variation_1, variation_2).
Example:
variation_meta
object

Configuration for A/B testing content variations.

  • SMV: Fixed percentage splits across up to 5 variations.
  • DMV: The system automatically learns which variant performs best over time and shifts traffic toward the winner.
  • Offer Control Group: A configurable percentage of eligible users to be held out as a pure control group.

Lifecycle & Mutation Rules

variation_meta can be edited via PATCH /v5/offers/{offer_id} while the offering is a draft. All fields (type, smv_distribution, control_group) are editable on a draft.

Example:
capping_rules
object

Frequency capping configuration that limits how often this offering is delivered. Two independent capping rules can be configured and enabled simultaneously.

overall: Limits the TOTAL number of times the offering is delivered across ALL users in the target segment within the capping schedule period.

user_level: Limits the number of times any SINGLE user can receive the offering within the capping schedule period.

Example:
is_global_control_enabled
boolean
default:false

Whether the global control group is enabled.

imp_track_hours
integer

The attribution window for conversion goal tracking. Required to publish when conversion is provided.

The unit and allowed range depend on attribution_multiplier. Despite its name, the value is in days when attribution_multiplier is 24:

  • attribution_multiplier is 1 — hours. imp_track_hours must be between 1 and 36.
  • attribution_multiplier is 24 — days. imp_track_hours must be between 1 and 10.
Required range: 1 <= x <= 36
Example:

36

attribution_multiplier
enum<integer>

Sets the unit for conversion goal tracking. Required to publish when conversion is provided. Accepts only 1 or 24:

  • 1 — tracking is done in hours. imp_track_hours must be between 1 and 36.
  • 24 — tracking is done in days. imp_track_hours must be between 1 and 10.
Available options:
1,
24
Example:

1

offering_attribute_configuration
object[]

Custom attributes assigned to this offering. These attributes are used in Decision Policy using the Custom formula ranking strategy.

Maximum array length: 5
conversion
object

Conversion goal configuration for measuring offering effectiveness. This can be set at creation time or later via PATCH while the offering is a draft. When you add a conversion goal, attribution_multiplier and imp_track_hours are also required to publish.

Response

Offering created as a draft. To make it live, publish it manually from the MoEngage dashboard.

Response returned by POST /v5/offers on successful creation.

response_id
string

Format: resp_<X-MOE-Request-Id> header value (auto-generated UUID if the X-MOE-Request-Id header was not part of the request body).

Example:

"resp_5b2f7c1e-3d94-4a68-8e1b-9c0a7d42f6a3"

type
enum<string>

Resource type discriminator. Always offer.

Available options:
offer
data
object

Created offering summary.