Creates a new Push or Email campaign in MoEngage with specified content, audience, and delivery settings.
Authentication is done via Basic Auth. The username is your Workspace ID (earlier APP ID) and the password is your API Key. The value is a base64 encoding of 'username:password'.
How to obtain credentials:
This is the workspace ID (earlier APP ID) of your MoEngage workspace.
You can find your MoEngage Workspace ID in the MoEngage Dashboard: Settings → Account → APIs → Workspace ID (earlier app id)
Campaign configuration including content, audience, and scheduling details. The schema will adapt based on the selected channel (PUSH or EMAIL).
A unique identifier for this campaign creation request.
Important: After successful campaign creation, do not reuse this request_id for the next 1 hour. If campaign creation fails, you can immediately retry with the same request_id.
"push_req_12345"
The communication channel for this campaign.
PUSH The delivery type of the campaign.
ONE_TIME, PERIODIC, EVENT_TRIGGERED, BUSINESS_EVENT_TRIGGERED, DEVICE_TRIGGERED, LOCATION_TRIGGERED, BROADCAST_LIVE_ACTIVITY The email ID of the user creating this campaign.
"john.doe@example.com"
Contains the basic information about the Push campaign.
Contains the content and variations for the Push campaign.
Defines the target audience for the campaign.
Defines when the campaign should be sent.
Trigger condition details for Push event-triggered campaigns.
Required for EVENT_TRIGGERED campaigns.
Controls for Push campaign delivery behavior.
Advanced campaign settings.
Configuration for tracking campaign conversion goals.
Configuration for control groups.
UTM parameters for tracking campaign performance.
Campaign created successfully
The unique ID of the newly created campaign. Store this for future reference.
"camp_12345abc"