This API allows you to trigger a business event in MoEngage. You can set up campaigns to be executed when these events are triggered.
Do I need to pass the value for all event attributes while triggering the campaign?
How do I know if the campaign has been triggered successfully?
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==
Set the Content-Type header to application/json.
Event to trigger.
The name of the business event to be triggered.
"Series_Name"
This field contains the event attributes with which the business event will be triggered.
Structure: "event_attributes": { "attribute_name1": "
Every attribute contains the following information: attribute_name - This field contains the name of the business event attribute for which the value is being sent in the request. The attribute_name is a String.
Example: "attribute_name": "season"
{
"season": "Season 1",
"episodes": 12,
"cast": ["John Doe", "Jane Doe"],
"date": "11/11/2023"
}
Information about who triggered the business event.
"john.doe@example.com"
This response is returned when the request is processed successfully.
"The business event has been triggered"