Use this REST resource to track events.
API domain: api.productfruits.com
Resource: POST /v1/events/track
Body
{
"event": "Your Event Name", // REQUIRED
"properties": { // optional custom properties of the event - currently only for future use
"intCustomProp": 78878,
"boolCustomProp": false,
"stringCustomProp": "example"
}
}
This endpoint upserts the given tracked user. Use it to sync user properties from your backend systems. This call can also trigger a real-time update of the Product Fruits content if the user is online.