Skip to main content
POST
/
tracker
/
events
curl -X POST https://api2.ecomailapp.cz/tracker/events \
  -H "key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "event": {
      "email": "john@example.com",
      "category": "shopping",
      "action": "product_viewed",
      "label": "Nike Air Max 90",
      "property": "nike-air-max-90",
      "value": {
        "product_id": 12345,
        "price": 139.99,
        "currency": "EUR",
        "variant": "Black/White",
        "url": "https://example.com/products/nike-air-max-90"
      }
    }
  }'
{
  "id": 1234,
  "email": "john@example.com",
  "category": "shopping",
  "action": "product_viewed",
  "label": "Nike Air Max 90",
  "property": "nike-air-max-90",
  "value": "{\"product_id\":12345,\"price\":139.99,\"currency\":\"EUR\",\"variant\":\"Black/White\",\"url\":\"https://example.com/products/nike-air-max-90\"}"
}
Only the email field is required. All other fields (category, action, label, property, value) are optional — include only what makes sense for your use case. The value field accepts a plain string, a JSON-encoded string, or a JSON object/array. If you pass an object or array, we will automatically JSON-encode it on our side.
event
object
required
Event details.
curl -X POST https://api2.ecomailapp.cz/tracker/events \
  -H "key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "event": {
      "email": "john@example.com",
      "category": "shopping",
      "action": "product_viewed",
      "label": "Nike Air Max 90",
      "property": "nike-air-max-90",
      "value": {
        "product_id": 12345,
        "price": 139.99,
        "currency": "EUR",
        "variant": "Black/White",
        "url": "https://example.com/products/nike-air-max-90"
      }
    }
  }'
{
  "id": 1234,
  "email": "john@example.com",
  "category": "shopping",
  "action": "product_viewed",
  "label": "Nike Air Max 90",
  "property": "nike-air-max-90",
  "value": "{\"product_id\":12345,\"price\":139.99,\"currency\":\"EUR\",\"variant\":\"Black/White\",\"url\":\"https://example.com/products/nike-air-max-90\"}"
}