Used to send realtime events to Xtremepush in batch when events occurs on a backend system, such as "sign_up", "purchase" etc, similar to the eventHit methods found in the web and mobile SDKs. This allows users to trigger campaigns/workflows based on events that happen outside of sites or Apps.
{
"apptoken": "YOUR_APPTOKEN",
"events": [
{
"event": "purchase",
"user_id": "USER_ID_1",
"value": "100"
},
{
"event": "sign_up",
"user_id": "USER_ID_2"
}
]
}Your App token
Array containing the event name (event) and the user ID (user_id). Other params such as value, user_attributes and timestamp can be included optionally. Review the Hit event endpoint for more details on each specific param.
Event name
Your external user ID. If a user with such user ID doesn't exist it will be automatically created.
Can be: string / number, eg. 100, or key-value object, eg. {"product": "Some Product"}
Key-value array of user attributes. These attributes will be updated before executing any event-triggered campaign. This is useful when the campaign depends on one of the user attributes, such as email address or first name.
The timestamp of the event
200
{
"success": "True",
"code": "200"
}400
{
"success": "False",
"code": "400",
"message": "General error information",
"errors": [
{
"text": [
"Detailed information about the specific error"
]
}
]
}