Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.omneo.io/llms.txt

Use this file to discover all available pages before exploring further.

The Triggers API configures event-driven reactions: logic that executes automatically when a specific platform event occurs (e.g., transaction.created, tier.achieved). See Reactions for a conceptual overview of both triggers and automations.

Trigger attributes

AttributeDescription
id INTEGERThe unique Omneo ID of the trigger
name STRINGThe display name of the trigger
trigger STRINGThe platform event that fires this trigger (e.g., transaction.created)
description STRINGA description of what this trigger does
notes STRINGInternal notes about the trigger
is_active BOOLEANWhether the trigger is active and will fire
actions ARRAYAn ordered array of actions that execute when the trigger fires

Action attributes

AttributeDescription
actions[].id INTEGERThe unique Omneo ID of the trigger action
actions[].uuid STRINGThe action type identifier (e.g., reward.create, target.send)
actions[].reference_id STRINGA unique reference ID for this action within the trigger
actions[].name STRINGThe display name of the action
actions[].sort_order INTEGERExecution order (lower values run first)
actions[].description STRINGWhat this action does
actions[].notes STRINGInternal notes about this action
actions[].arguments ARRAYArguments that configure this action
actions[].arguments[].name STRINGThe argument name (must match a valid attribute for the action type)
actions[].arguments[].value OBJECTThe argument value, either a static value or JSON Logic expression
actions[].arguments[].is_dynamic BOOLEANIf true, value is evaluated as JSON Logic. If false, value is passed as-is.
actions[].created_at DATE-TIMEWhen the action was created
actions[].updated_at DATE-TIMEWhen the action was last updated

Action types

The following action types are available when building triggers. Each type requires specific arguments.

Create benefit

Action UUID: benefit.create
ArgumentDescription
profile_idThe profile to issue the benefit to
issued_at_daysOffset days from trigger time for the issued date
issued_at_hourHour of day for the issued date
timezoneTimezone for date calculations
definitionThe benefit definition handle

Create point

Action UUID: point.create
ArgumentDescription
value_remainingRemaining point value
value_initialInitial point value to award
issued_atThe date the points are issued

Create reward

Action UUID: reward.create
ArgumentDescription
metaMetadata to attach to the reward
valueThe reward dollar value
profile_idThe profile to issue the reward to
definitionThe reward definition handle