Omneo can push any profile-level activity into Klaviyo as a custom metric (a Klaviyo event). These metrics are perfect triggers for Flows — they can fire emails, SMS, or other automations the moment something happens in Omneo. Metrics are delivered from Omneo using a target. Targets are the Omneo-side mechanism that calls into the Klaviyo extension and tell it which job to run.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.
How metrics flow
- An Omneo reaction is configured to fire on the activity you care about (e.g. tier change, purchase, custom milestone).
- The reaction calls an Omneo target that points at the extension’s metric endpoint.
- The extension queues the work on the outbound Cloud Tasks queue (see Inbound queues).
- The job calls Klaviyo’s Create Event API to create the metric against the matching Klaviyo profile.
attributes.profile.data.id (the Klaviyo profile ID) or attributes.profile.data.attributes.email so the metric can be attached to the correct profile.
Target endpoint
| Target | Purpose |
|---|---|
metric | Create a custom Klaviyo event |
upsert-profile-data | Force a profile resync to Klaviyo |
data-source-record | Push a data source record (e.g. into Omneo Rewards, Omneo Dates, etc.) |
Adding an ID token to an outbound metric
When you need Klaviyo to render content that links back into Omneo with an authenticated session — for example, a personalised wallet page, a reward redemption link, or a “manage preferences” deep link — Omneo can attach a short-lived ID token to the metric. Klaviyo can then pull this token into emails or SMS as a Liquid variable and include it on URLs back to Omneo, allowing the customer to land on their own profile without logging in again.How to enable it
Add the query parameterwithToken=true to the target call. The extension will:
- Read the Klaviyo profile ID from
attributes.profile.data.idon the metric body. - Call Omneo’s identity token endpoint using the configured identity handle (defaults to
klaviyo). - Base64-encode the returned token.
- Attach two extra properties to the metric before sending it to Klaviyo:
IDToken— the base64-encoded tokenIDTokenExpiry— the token’s expiry timestamp
Example target URL
Using the token in Klaviyo
Once the metric is delivered,IDToken and IDTokenExpiry are available as event properties inside Klaviyo. You can reference them in Flow message templates like any other event property: