For the complete documentation index, see llms.txt. This page is also available as Markdown.

Loyalty API (beta)

The Loyalty API is Monterosa's engine for building loyalty programmes, gamification systems, and fan engagement experiences. It provides a composable set of building blocks – campaigns, triggers, effects, metrics, segments, and ladders – that let you design sophisticated reward mechanics without writing custom logic.

What you can build

The API is designed around a simple principle: if this happens, then do that. By combining triggers (the "if") with effects (the "then") inside campaigns, you can create anything from a simple badge-collection mechanic to a full multi-tier loyalty programme with streaks, levels, and dynamic audience segmentation.

Common use cases include:

How it works

Everything flows through campaigns. A campaign has one or more steps, each wired to a trigger. When a trigger fires for a user, the step completes and its effects run. Effects are the actions: award a badge, increment a metric, send a push notification, call an external webhook, check in to a streak, and more.

User action → Trigger fires → Campaign step completes → Effects execute

This event-driven architecture means the API is reactive. You define the rules, and the system executes them automatically as users interact with your product.

Two interfaces

The API exposes two distinct surfaces:

Interface
Base path
Purpose

Admin API

/api/loyalty/admin/

Full CRUD for all entities. Create campaigns, define triggers, manage users. Requires admin credentials.

User API

/api/loyalty/me/

Read-only views for end users. Retrieve profile, campaigns, rewards, metrics, segments, and ladder progress. Requires a user JWT.

The Admin API is what you use to set up and manage your loyalty programme. The User API is what your client application calls to show personalised content to each user.

Environments

Environment
Base URL
Purpose

Development

https://{spaceSlug}.spaces-dev.monterosa.cloud

Testing and integration

Production

https://{spaceSlug}.spaces-eu.monterosa.cloud https://{spaceSlug}.spaces-us.monterosa.cloud

Live traffic

Replace {spaceSlug} with your allocated space identifier. Contact your Monterosa account team if you don't have one.

What's next

Last updated