Skip to content

Automation (Flow)

Custom events

Define the event names your system will fire, so they show up as triggers in the Flow builder. Creating and deleting needs a workspace key or an admin session.

GET/v1/api/product/flow/config/triggers

Every trigger a flow can start on: built-ins plus your custom events.

POST/v1/api/product/flow/config/triggers

Create a custom event.

namestringRequired
Lowercase letters, digits and _ . -, e.g. appointment_confirm.
displayNamestringRequired
Name shown in the Flow builder.
descriptionstringOptional
What the event means.

DELETE/v1/api/product/flow/config/triggers/:id

Delete a custom event.

await ecod.product.erix.events.createCustomEvent({
  name: "order_placed",
  displayName: "Order placed",
});

const { data } = await ecod.product.erix.events.listCustomEvents();