Search docs
Find a page, section or endpoint

API reference

Event types

Register event names and how their events are deduplicated.

Every event name must be registered before BreezeIQ accepts it. Registering also decides how that event type is deduplicated.

Register an event type#

PUT /v1/tenants/{tenant}/event-types/{event_name} Tenant token

Creates the event type, or updates it if it exists. Names are lowercase. BreezeIQ accepts a new event type within a few minutes.

Body

dedup_entity string
Business entity the event is about, such as "order".
dedup_key_paths string[]
Paths that identify that entity, such as ["properties.order_id"]. Give both fields or neither. Without them, events are deduplicated by their id.
bash
curl -X PUT "https://api.breeze.in/cdp/control-plane/v1/tenants/breeze/event-types/purchase" \
  -H "Authorization: Bearer $BREEZEIQ_TOKEN" -H "Content-Type: application/json" \
  -d '{"dedup_entity": "order", "dedup_key_paths": ["properties.order_id"]}'

Deduplication is per event type: initiatecheckout and addpaymentinfo can share a checkout_id without colliding.

List event types#

GET /v1/tenants/{tenant}/event-types Workspace token
bash
curl "https://api.breeze.in/cdp/control-plane/v1/tenants/breeze/event-types" \
  -H "Authorization: Bearer $BREEZEIQ_TOKEN"

Delete an event type#

DELETE /v1/tenants/{tenant}/event-types/{event_name} Tenant token

Removes the event type.