Code Examples

Refer to the API and SDK references for complete documentation.

post
Upload Event(s)

https://api.zaius.com/v3/events
This endpoint allows you to get free cakes.
Request
Response
Body Parameters
type
required
string
action
required
string
identifiers
required
string
data
required
string
200: OK
{
"title": "Accepted",
"status": 202,
"timestamp": "2019-04-30T15:19:37.997Z"
}
[{
"type": "product",
"action": "add_to_wishlist",
"identifiers": {
"email": "bob@gmail.com",
},
"data": {
"product_id": "123"
}
}]

Web

zaius.event("product", {action: "add_to_wishlist", product_id: "123"});