MoEngage

App · 21 actions

Create and update MoEngage users, track their events, build segments, send push notifications and API-triggered messages, manage campaigns, flows and email subscriptions, and follow new and sent campaigns, flows and segments.

Actions

ActionWhat it does
Change campaign statusStop a one-time campaign, pause or resume a periodic or event-triggered one, or publish an API-triggered one.
Change flow statusPause, resume, stop, retire, archive or unarchive a flow.
Create or update userAdd a user to MoEngage, or update the one with this customer ID.
Create segmentCreate a custom segment of the users whose attribute matches any of some values, such as plan is Gold or Platinum.
Delete userDelete a user from MoEngage.
Get campaignGet a push or email campaign's details: name, channel, status, delivery type, content and schedule.
Get flowGet a flow's details: status, entry type, versions, settings and goals.
Get segmentGet a custom segment's name, conditions and when it was created and changed.
Get subscription preferencesGet which email subscription categories a user is in, and whether they have unsubscribed from all email.
Get usersGet up to 20 users' profiles by customer ID, with the attributes you name.
List segmentsList the workspace's custom segments, or find one by its exact name.
List subscription categoriesList the email subscription categories users can subscribe to or leave, such as Newsletter or Promotional.
Merge usersMerge a duplicate user into another.
Search campaignsFind push and email campaigns by name, channel, status, delivery type, tag or creation date, 15 at a time.
Search flowsFind flows (multi-step journeys) by name, status, entry type, tag or creation date, most recently changed first.
Send API-triggered messageSend one user the message of an API-triggered campaign, filling in its personalization placeholders.
Send push notificationSend a push notification now to one user or to a custom segment, on Android, iOS or the web.
Send test campaignSend a test of a draft push or email campaign to email addresses or users you choose.
Track eventRecord an event a user did, such as Purchase, with its attributes.
Update segmentChange which users a custom segment holds, and rename it.
Update subscription preferencesSubscribe a user to email categories, take them out of some, or unsubscribe them from all email.

Change campaign status

Stop a one-time campaign, pause or resume a periodic or event-triggered one, or publish an API-triggered one.

Inputs

Campaigncampaign_idtextRequired
The campaign.
ActionchangetextRequired
What to do. Stop works on one-time and API-triggered campaigns, Pause and Resume on periodic and event-triggered ones, and Publish on an API-triggered draft.One of: PUBLISH (Publish (API-triggered campaigns)), STOP, PAUSE, RESUME.

Outputs

dataobject
The response from MoEngage.
Example output
{
  "data": {
    "data": {
      "action": "example",
      "id": "example"
    },
    "response_id": "example",
    "type": "example"
  }
}

Change flow status

Pause, resume, stop, retire, archive or unarchive a flow.

Inputs

Flowflow_idtextRequired
The flow.
ActionchangetextRequired
What to do with the flow.One of: pause, resume, stop, retire, archive, unarchive.
Updated byupdated_bytextRequired
Your email address, recorded in MoEngage's audit log as who made the change.
Versionversion_nonumber
The flow version to pause, resume, stop or retire. Leave empty for the active version.At least 1.

Outputs

dataobject
The response from MoEngage.
Example output
{
  "data": {
    "data": {
      "flow_id": "example",
      "status": "example"
    },
    "response_id": "example",
    "type": "example"
  }
}

Create or update user

Add a user to MoEngage, or update the one with this customer ID. Only the attributes filled in change.

Inputs

Customer IDcustomer_idtextRequired
The user's ID in MoEngage (the ID attribute you set for them, such as your own customer number).
Emailemailtext
The user's email address.
First namefirst_nametext
The user's first name.
Last namelast_nametext
The user's last name.
Full namefull_nametext
The user's full name.
Mobile numbermobiletext
The user's mobile number with the country code, such as 918888444411.
Birthdaybirthdaydate
The user's date of birth.
Email opt-in statusemail_opt_in_statustext
The user's email opt-in status.One of: DOUBLE_OPTED_IN (Double opted in), OPTED_OUT (Opted out), OPT_IN_PENDING (Opt-in pending).
Unsubscribed from emailemail_unsubscribedtrue/false
Turn on to stop MoEngage emailing this user; turn off to let it email them again.
Other attributesother_attributesobject
Other user attributes to set, by their name in MoEngage, such as plan or loyalty_points. Names can't start with moe_.
Attributes to clearunset_attributeslist
Names of attributes to clear from the user's profile.
Only update existing usersupdate_existing_onlytrue/false
Turn on to only update a user who already exists, never create one.

Outputs

dataobject
The response from MoEngage.
Example output
{
  "data": {
    "message": "example",
    "status": "example"
  }
}

Create segment

Create a custom segment of the users whose attribute matches any of some values, such as plan is Gold or Platinum.

Inputs

NamenametextRequired
The segment's name. It must be unique in the workspace.
User attributeattributetextRequired
The user attribute to match, by its name in MoEngage, such as plan or city.
Matchmatchtext
How the attribute is compared with the values. Leave empty for Is any of.One of: in (Is any of), containsInTheFollowing (Contains any of), startsWithInTheFollowing (Starts with any of), endsWithInTheFollowing (Ends with any of). Default: in.
ValuesvalueslistRequired
The values to match. A user who matches any of them is in the segment.
Case sensitivecase_sensitivetrue/false
Match upper and lower case exactly.
Attribute categorycategorytext
The attribute's group in MoEngage. Leave empty for Tracked Custom Attribute, the group of attributes you send.

Outputs

dataobject
The response from MoEngage.
Example output
{
  "data": {
    "data": {
      "created_time": "example",
      "description": "example",
      "id": "example",
      "included_filters": {
        "filter_operator": "example",
        "filters": [
          {
            "case_sensitive": true,
            "category": "example",
            "data_type": "example",
            "filter_type": "example",
            "name": "example",
            "negate": true,
            "operator": "example",
            "value": [
              "example"
            ]
          }
        ]
      },
      "name": "example",
      "source": "example",
      "type": "example",
      "updated_time": "example"
    },
    "response_id": "example",
    "type": "example"
  }
}

Delete user

Delete a user from MoEngage. MoEngage deletes them for good after 24 hours.

Inputs

Find user byidentity_typetext
What the user is identified by. Leave empty for customer ID.One of: customer_id (Customer ID), moengage_id (MoEngage ID). Default: customer_id.
Useridentity_valuetextRequired
The user's customer ID or MoEngage ID, matching Find user by.

Outputs

dataobject
The response from MoEngage.
Example output
{
  "data": {
    "message": "example",
    "status": "example"
  }
}

Get campaign

Get a push or email campaign's details: name, channel, status, delivery type, content and schedule.

Inputs

Campaigncampaign_idtextRequired
The campaign.

Outputs

dataobject
The response from MoEngage.
Example output
{
  "data": {
    "data": {
      "basic_details": {
        "name": "example",
        "tags": [
          "example"
        ],
        "team": "example"
      },
      "campaign_delivery_type": "example",
      "campaign_id": "example",
      "channel": "example",
      "created_at": "example",
      "created_by": "example",
      "id": "example",
      "sent_time": "example",
      "status": "example",
      "updated_at": "example",
      "updated_by": "example"
    },
    "response_id": "example",
    "type": "example"
  }
}

Get flow

Get a flow's details: status, entry type, versions, settings and goals.

Inputs

Flowflow_idtextRequired
The flow.

Outputs

dataobject
The response from MoEngage.
Example output
{
  "data": {
    "data": {
      "active_version_name": "example",
      "archived": true,
      "created_at": "example",
      "created_by": "example",
      "delivery_type": "example",
      "flow_id": "example",
      "name": "example",
      "published_at": "example",
      "published_by": "example",
      "status": "example",
      "tags": [
        "example"
      ],
      "updated_at": "example",
      "versions": [
        {
          "status": "example",
          "version_id": "example",
          "version_name": "example",
          "version_no": 1
        }
      ]
    },
    "response_id": "example",
    "type": "example"
  }
}

Get segment

Get a custom segment's name, conditions and when it was created and changed.

Inputs

Segmentsegment_idtextRequired
The custom segment.

Outputs

dataobject
The response from MoEngage.
Example output
{
  "data": {
    "data": {
      "created_time": "example",
      "description": "example",
      "id": "example",
      "included_filters": {
        "filter_operator": "example",
        "filters": [
          {
            "case_sensitive": true,
            "category": "example",
            "data_type": "example",
            "filter_type": "example",
            "name": "example",
            "negate": true,
            "operator": "example",
            "value": [
              "example"
            ]
          }
        ]
      },
      "name": "example",
      "source": "example",
      "type": "example",
      "updated_time": "example"
    },
    "response_id": "example",
    "type": "example"
  }
}

Get subscription preferences

Get which email subscription categories a user is in, and whether they have unsubscribed from all email.

Inputs

Find user byidentify_bytext
What the user is looked up by. Leave empty for email address.One of: email (Email address), uid (User ID (customer ID)), moe_user_id (MoEngage ID). Default: email.
UserusertextRequired
The user's email address, customer ID or MoEngage ID, matching Find user by.

Outputs

dataobject
The response from MoEngage.
Example output
{
  "data": {
    "data": {
      "categories": [
        {
          "channel": "example",
          "display_name": "example",
          "group": "example",
          "name": "example",
          "status": "example"
        }
      ],
      "is_globally_unsubscribed": true,
      "user_id": "example"
    },
    "response_id": "example",
    "type": "example"
  }
}

Get users

Get up to 20 users' profiles by customer ID, with the attributes you name.

Inputs

Customer IDscustomer_idslistRequired
The users' customer IDs, up to 20.
Attributes to returnfieldslist
Attributes to return, by their name in MoEngage, such as first_name, email or customer_id. Leave empty for MoEngage's default set.

Outputs

dataobject
The response from MoEngage.
Example output
{
  "data": {
    "data": {
      "users": [
        {
          "user_attributes": {}
        }
      ],
      "users_not_found": [
        {
          "identifier": "example",
          "identifier_type": "example"
        }
      ]
    },
    "status": "example",
    "type": "example"
  }
}

List segments

List the workspace's custom segments, or find one by its exact name.

Inputs

Namenametext
Only the segment with exactly this name.

Outputs

dataobject
The response from MoEngage.
Example output
{
  "data": {
    "data": [
      {
        "created_time": "example",
        "id": "example",
        "name": "example",
        "source": "example",
        "type": "example"
      }
    ],
    "response_id": "example",
    "type": "example"
  }
}

List subscription categories

List the email subscription categories users can subscribe to or leave, such as Newsletter or Promotional.

Inputs

None.

Outputs

dataobject
The response from MoEngage.
Example output
{
  "data": {
    "data": [
      {
        "channel": "example",
        "description": "example",
        "display_name": "example",
        "group": "example",
        "name": "example",
        "status": "example"
      }
    ],
    "response_id": "example",
    "type": "example"
  }
}

Merge users

Merge a duplicate user into another. The duplicate's events, attributes and devices move to the user kept.

Inputs

Duplicate usermerged_usertextRequired
The customer ID of the duplicate user, whose data moves and who is then deleted.
User to keepretained_usertextRequired
The customer ID of the user to keep.

Outputs

dataobject
The response from MoEngage.
Example output
{
  "data": {
    "operation": "example",
    "status": "example"
  }
}

Search campaigns

Find push and email campaigns by name, channel, status, delivery type, tag or creation date, 15 at a time.

Inputs

Namenametext
Only campaigns whose name contains this text.
Channelschannelslist
Only campaigns on these channels.One or more of: EMAIL, PUSH.
Statusesstatuseslist
Only campaigns in these statuses. Drafts are found only when Draft is chosen.One or more of: DRAFT, ACTIVE, SCHEDULED, PAUSED, SENT, SENDING, STOPPED, ARCHIVED.
Delivery typesdelivery_typeslist
Only campaigns sent in these ways.One or more of: ONE_TIME (One time), PERIODIC, EVENT_TRIGGERED (Event triggered), BUSINESS_EVENT_TRIGGERED (Business event triggered), DEVICE_TRIGGERED (Device triggered), LOCATION_TRIGGERED (Location triggered), API_TRIGGERED (API triggered).
Tagstagslist
Only campaigns with any of these tags.
Created bycreated_bylist
Only campaigns created by these people, by email address.
Campaign IDscampaign_idslist
Only these campaigns, by ID.
Created aftercreated_fromdate and time
Only records created at or after this time.
Created beforecreated_todate and time
Only records created at or before this time.
Include child campaignsinclude_child_campaignstrue/false
Also find the campaigns inside flows and each run of a periodic campaign.
Include archivedinclude_archivedtrue/false
Also find archived campaigns.
Campaigns to returnlimitnumber
How many campaigns to return, up to 15. Leave empty for 15.From 1 to 15.
Pagepagenumber
Which page of results to return, starting at 1. Leave empty for the first.At least 1.

Outputs

dataobject
The response from MoEngage.
Example output
{
  "data": {
    "data": {
      "campaigns": [
        {
          "basic_details": {
            "name": "example",
            "tags": [
              "example"
            ],
            "team": "example"
          },
          "campaign_delivery_type": "example",
          "campaign_id": "example",
          "channel": "example",
          "created_at": "example",
          "created_by": "example",
          "id": "example",
          "sent_time": "example",
          "status": "example",
          "updated_at": "example",
          "updated_by": "example"
        }
      ]
    },
    "response_id": "example",
    "type": "example"
  }
}

Search flows

Find flows (multi-step journeys) by name, status, entry type, tag or creation date, most recently changed first.

Inputs

Namenametext
Only flows whose name contains this text.
Statusesstatuseslist
Only flows in these statuses.One or more of: DRAFT, ACTIVE, SCHEDULED, PAUSED, STOPPED, COMPLETED, RETIRED, UNDER_REVIEW (Under review), REJECTED.
Entry typesdelivery_typeslist
Only flows users enter in these ways.One or more of: ONE_TIME (One time), PERIODIC, ON_FLOW_EXIT (When another flow ends), EVENT_TRIGGERED (Event triggered), BUSINESS_EVENT_TRIGGERED (Business event triggered).
Tagstagslist
Only flows with any of these tags.
Teamsteamslist
Only flows of these teams. Needed when your workspace has teams turned on for flows.
Created bycreated_bylist
Only flows created by these people, by email address.
Created aftercreated_fromdate and time
Only records created at or after this time.
Created beforecreated_todate and time
Only records created at or before this time.
Include archivedinclude_archivedtrue/false
Also find archived flows.
Flows to returnlimitnumber
How many flows to return, up to 100. Leave empty for 20.From 1 to 100.
Next page cursorcursortext
The next cursor from the last page, to read the next page.

Outputs

dataobject
The response from MoEngage.
Example output
{
  "data": {
    "data": {
      "flows": [
        {
          "active_version_name": "example",
          "archived": true,
          "created_at": "example",
          "created_by": "example",
          "delivery_type": "example",
          "flow_id": "example",
          "name": "example",
          "published_at": "example",
          "status": "example",
          "tags": [
            "example"
          ],
          "updated_at": "example"
        }
      ],
      "has_more": true,
      "next_cursor": "example"
    },
    "response_id": "example",
    "type": "example"
  }
}

Send API-triggered message

Send one user the message of an API-triggered campaign, filling in its personalization placeholders.

Inputs

Campaigncampaign_idtextRequired
The published API-triggered campaign to send.
RecipientrecipienttextRequired
The user to send to, by the identifier in Identify recipient by.
Identify recipient byidentifier_typetext
How the recipient is identified: ID (their customer ID), MOENGAGE_ID, or the name of another identifier your workspace has turned on. Leave empty for ID.Default: ID.
Personalization valuespersonalizationobject
Values for the campaign's placeholders, by placeholder name.
Localelocale_nametext
The campaign's locale version to send, such as en_US. Leave empty for the default.

Outputs

dataobject
The response from MoEngage.
Example output
{
  "data": {
    "data": {
      "campaign_id": "example",
      "recipient_count": 1
    },
    "response_id": "example",
    "type": "example"
  }
}

Send push notification

Send a push notification now to one user or to a custom segment, on Android, iOS or the web.

Inputs

Campaign namecampaign_nametextRequired
The name of the campaign MoEngage records the send under; MoEngage asks for at least 5 characters. Reuse a name to group one-user sends into one campaign; for a segment it must be new.
PlatformsplatformslistRequired
The platforms to send on.One or more of: ANDROID, IOS, WEB.
Send toaudiencetext
Who to send to. Leave empty for one user.One of: User (One user), Custom Segment (A custom segment). Default: User.
Usercustomer_idtext
When sending to one user: their customer ID.
Segmentsegment_nametext
When sending to a custom segment: the segment.
TitletitletextRequired
The notification's title.
MessagemessagetextRequired
The notification's text.
On tapclick_actiontext
What tapping the notification does on Android and iOS. Leave empty to open a deep link.One of: deeplinking (Open a deep link), richlanding (Open a web page), navigation (Open an app screen). Default: deeplinking.
Open on tapclick_targettext
The deep link, web page address or app screen name that opens when the notification is tapped. Web push always opens a web page.
Image URLimage_urltext
An image to show in the notification on Android and iOS.
Web icon URLweb_icon_urltext
The icon to show in a web push notification. Needed when Platforms includes Web.
Campaign tagstagslist
Campaign tags to add, up to 5. Each must already exist in MoEngage.

Outputs

dataobject
The response from MoEngage.
Example output
{
  "data": {
    "data": {
      "campaign_id": "example",
      "request_id": "example"
    },
    "response_id": "example",
    "type": "example"
  }
}

Send test campaign

Send a test of a draft push or email campaign to email addresses or users you choose.

Inputs

Draft campaigncampaign_idtextRequired
The draft campaign to test.
ChannelchanneltextRequired
The draft campaign's channel.One of: EMAIL, PUSH.
Send test torecipientslistRequired
Who gets the test: email addresses for an email campaign, or users' customer IDs for a push campaign.
Platformplatformtext
For a push campaign, the one platform to test. Leave empty to test every platform the draft has.One of: ANDROID, IOS, WEB.

Outputs

dataobject
The response from MoEngage.
Example output
{
  "data": {
    "data": {
      "data": {},
      "message": "example"
    },
    "response_id": "example",
    "type": "example"
  }
}

Track event

Record an event a user did, such as Purchase, with its attributes. Events can start MoEngage campaigns and flows.

Inputs

Customer IDcustomer_idtextRequired
The user's ID in MoEngage (the ID attribute you set for them, such as your own customer number).
Event nameevent_nametextRequired
The event's name, such as Purchase or Signed up. Names can't start with moe_.
Event attributesattributesobject
The event's attributes, such as price or product, by name.
Event timeevent_timedate and time
When the event happened. Leave empty for now.
Platformplatformtext
Where the event happened. Leave empty if it didn't happen in an app or website.One of: ANDROID, iOS, web, unknown.
App versionapp_versiontext
The version of the app the event happened in.

Outputs

dataobject
The response from MoEngage.
Example output
{
  "data": {
    "message": "example",
    "status": "example"
  }
}

Update segment

Change which users a custom segment holds, and rename it.

Inputs

Segmentsegment_idtextRequired
The custom segment.
New namenametext
A new name for the segment. Leave empty to keep it.
User attributeattributetextRequired
The user attribute to match, by its name in MoEngage, such as plan or city.
Matchmatchtext
How the attribute is compared with the values. Leave empty for Is any of.One of: in (Is any of), containsInTheFollowing (Contains any of), startsWithInTheFollowing (Starts with any of), endsWithInTheFollowing (Ends with any of). Default: in.
ValuesvalueslistRequired
The values to match. A user who matches any of them is in the segment.
Case sensitivecase_sensitivetrue/false
Match upper and lower case exactly.
Attribute categorycategorytext
The attribute's group in MoEngage. Leave empty for Tracked Custom Attribute, the group of attributes you send.
Updated byupdated_bytext
Your email address, recorded as who changed the segment.

Outputs

dataobject
The response from MoEngage.
Example output
{
  "data": {
    "data": {
      "created_time": "example",
      "description": "example",
      "id": "example",
      "included_filters": {
        "filter_operator": "example",
        "filters": [
          {
            "case_sensitive": true,
            "category": "example",
            "data_type": "example",
            "filter_type": "example",
            "name": "example",
            "negate": true,
            "operator": "example",
            "value": [
              "example"
            ]
          }
        ]
      },
      "name": "example",
      "source": "example",
      "type": "example",
      "updated_time": "example"
    },
    "response_id": "example",
    "type": "example"
  }
}

Update subscription preferences

Subscribe a user to email categories, take them out of some, or unsubscribe them from all email. MoEngage applies it within moments.

Inputs

Find user byidentify_bytext
What the user is looked up by. Leave empty for email address.One of: email (Email address), uid (User ID (customer ID)), moe_user_id (MoEngage ID). Default: email.
UserusertextRequired
The user's email address, customer ID or MoEngage ID, matching Find user by.
Subscribe tosubscribe_tolist
Categories to subscribe the user to.
Unsubscribe fromunsubscribe_fromlist
Categories to take the user out of.
Unsubscribe from allunsubscribe_from_alltrue/false
Turn on to unsubscribe the user from every email category; the categories chosen are then ignored. Turn off to clear an earlier unsubscribe from all.

Outputs

dataobject
The response from MoEngage.
Example output
{
  "data": {
    "data": {
      "message": "example"
    },
    "response_id": "example",
    "type": "example"
  }
}

On this page