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 Omneo SDK is the typed JavaScript and TypeScript client for the Omneo API. It works in Node and modern browsers, and is the recommended way to call Omneo from JavaScript instead of constructing raw HTTP requests.

What the SDK provides

CapabilityWhat it does
Typed surfaceTypeScript types for every resource, request, and response.
Auth header injectionAdds the bearer token to every request, removes the need to build headers by hand.
Resource namespacesAround 59 admin namespaces (Profiles, Transactions, Orders, Rewards, Benefits, Tiers, Points, Lists, Targets, Webhooks, and more), plus profile-scoped sub-resources for the customer-facing client.
Profile-scoped helpersOne-call helpers like profiles.findByIdentity, profiles.merge, profiles.checkAvailability.
Token lifecycleHelpers for minting, checking expiry, and resetting profile-scoped IDTokens.
Escape hatchA call() method on both clients for new endpoints the SDK does not yet wrap natively.

Two-client model

The SDK exports two classes from a single package, @omneo/omneo-sdk:
ClientTargetsTokenAudience
Omneohttps://api.[tenant].getomneo.com/api/v3Long-lived admin bearer tokenTrusted backend code
IDhttps://api.[tenant].getomneo.com/id/api/v1Short-lived profile-scoped JWTStorefronts and any customer-facing browser code
The Omneo client speaks the admin API and carries broad scopes. It must stay on a server. The ID client speaks the profile-scoped ID API. It is initialised once on a trusted server with an admin token to mint an IDToken. The IDToken is bound to a single profile and is safe to use from a browser to read and update only that profile.

Where the SDK fits

The SDK sits between application code and the Omneo HTTP API. Server code uses Omneo to manage profiles, transactions, incentives, and configuration. Customer-facing code uses ID to render and update a single profile through the same authenticated session. The two clients pair with the wider profile portal and Omneo wallet surfaces. They share the same data model, so a backend job that updates a profile through Omneo is immediately visible to a storefront calling ID.