Skip to main content
POST
/
business_event
Create Business Event
curl --request POST \
  --url https://api-0{X}.moengage.com/v1.0/business_event \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: <content-type>' \
  --data '
{
  "event_name": "NameOfOTTSeries",
  "event_attributes": [
    {
      "attribute_name": "season",
      "attribute_data_type": "string"
    },
    {
      "attribute_name": "episodes",
      "attribute_data_type": "int"
    },
    {
      "attribute_name": "cast",
      "attribute_data_type": "array"
    },
    {
      "attribute_name": "released_on",
      "attribute_data_type": "date"
    },
    {
      "attribute_name": "budget",
      "attribute_data_type": "float"
    }
  ],
  "created_by": "john.doe@example.com"
}
'
{ "message": "The business event has been created", "event_id": "64a40cff5547a6b2c5b14404" }

Overview

In MoEngage, you can set up event-triggered campaigns to notify users about new episodes, flight delays, or price reductions on items they have viewed, wished for, or added to their carts.

FAQs

The different data types supported are integer, float, string, date, and array.
No, business event names should be unique. You cannot create two business events with the same name.
You can see all business events created in MoEngage using the Search API.

Authorizations

Authorization
string
header
required

The Basic authentication header contains your Base64-encoded key. This authentication parameter, used for access control, must be passed with the request.

Format: Authorization: Basic Base64_ENCODED_WORKSPACEID_APIKEY==

Headers

Content-Type
string
default:application/json
required

Set the Content-Type header to application/json.

Body

application/json

Business event definition.

event_name
string
required

This field contains the name of the business event.

Example:

"NameOfOTTSeries"

event_attributes
object[]
required

This field contains the event attributes of the business event being created.

created_by
string<email>
required

The email address of the creator of the business event.

Example:

"john.doe@example.com"

Response

This response is returned when the request is processed successfully.

message
string
Example:

"The business event has been created"

event_id
string

Unique identifier for the created business event.

Example:

"64a40cff5547a6b2c5b14404"