Search docs
Find a page, section or endpoint

Send events

From the browser

Anonymous storefront events with no token, sent one by one or in batches.

Use browser events for things that happen before anyone logs in: page views, product views, cart adds. The endpoint needs no token, so storefront code can call it directly.

Send a browser event#

POST https://<collector-host>/v1/events No token

The body is one event.

From your storefront
await fetch("https://<collector-host>/v1/events", {
  method: "POST",
  headers: {
    "content-type": "application/json",
    "x-tenant-id": "breeze",
    "x-workspace-id": "my-store"
  },
  body: JSON.stringify({
    envelop_version: "1.0",
    id: crypto.randomUUID(),
    name: "addtocart",
    tenant_id: "breeze",
    workspace_id: "my-store",
    anon_id: "cookie:" + visitorId,
    occured_at: new Date().toISOString(),
    properties: { product_id: "SKU-1042", price: 1399, identifiers: { cookie: visitorId } }
  })
});

Cross-origin calls need CORS enabled on the collector for your domain. The BreezeIQ team sets that up.

Untrusted by design#

Anyone could claim an email or phone from a browser, so BreezeIQ limits what browser events can do:

  • Only cookie and device_id are kept. Email and phone are dropped.
  • Browser events never merge two existing profiles.

Batches#

To send several events as one JSON document instead of one per line, use the batch endpoint. It takes the same events, without a token.

Send a batch#

POST https://<collector-host>/v1/events/batch No token

The body is an object whose events array holds the events.

Request body
{
  "events": [
    {
      "envelop_version": "1.0",
      "id": "1f7c…",
      "name": "addtocart",
      "tenant_id": "breeze",
      "workspace_id": "my-store",
      "anon_id": "cookie:3f9a1c7e",
      "occured_at": "2026-10-08T10:11:02Z",
      "properties": {
        "product_id": "SKU-1042",
        "identifiers": { "cookie": "3f9a1c7e" }
      }
    }
  ]
}

Batch events count as browser events: device-level identifiers only.

Next#