Skip to main content

RSMG Engage

RSMG Engage is a multi-tenant user-engagement platform — comments, reactions, user preferences, real-time streaming, moderation, webhooks, and user data export and anonymisation — that publishers embed into their sites. This site documents how to integrate it from your backend or your app.

The RSMG Engage team provisions your tenant before you integrate. Once that's done, you mint credentials in the admin console and wire your backend to the API.

How integration works​

Every request carries an API key in X-API-Key. For any action taken on behalf of a logged-in reader, you also tell RSMG Engage who is acting. There are two routes:

  • Your backend signs an assertion. Your backend calls the API with its API key and attaches a short, signed identity assertion (an HMAC signature) that vouches for the reader.
  • A client with no backend sends an OIDC ID token. A mobile app or browser app sends the token it already gets from its identity provider in Authorization: Bearer, plus an API key with an empty capability set.

RSMG Engage never holds your readers' credentials. Your platform authenticates them, and you tell RSMG Engage who is acting. The diagram shows the backend route. A client with no backend skips the middle box and calls RSMG Engage directly with the API key and the ID token.

┌────────────┐ signed request ┌──────────────┐
│ Reader's │ ──────────────────► │ Publisher │
│ browser │ ◄────────────────── │ backend │
└────────────┘ rendered widget └──────┬───────┘
│ X-API-Key + signed identity assertion
▼
┌──────────────┐
│ RSMG Engage │
└──────────────┘
Keep secrets off the client

The identity-signing secret is a bearer credential. It must live on your backend and never ship inside a browser bundle, mobile app, or single-page app. The same goes for any API key that has capabilities (admin powers). Only an empty-capability API key is meant for clients, and only together with an OIDC ID token. See Identity signing.

Browser origins must be allowlisted. Ask the RSMG Engage team to add yours. Native apps are unaffected.

Core concepts​

TermMeaning
TenantOne publisher brand. Each tenant has an isolated database. The RSMG Engage team provisions your tenant before you integrate.
Tenant slugYour human-readable tenant id (e.g. pmke), used in your subdomain.
External idYour identifier for a piece of content (an article id). RSMG Engage resolves it to an internal discussion via the *-by-external endpoints.
DiscussionA thread of comments scoped to one piece of content. Created lazily — it springs into existence on the first comment.
Tenant end-userA reader on your site, authenticated by you. RSMG Engage only knows the external_id you vouch for.
Admin accountA human who operates the RSMG Engage admin console for your tenant (mints keys and the identity secret, adds OIDC issuers, moderates, configures).
API keyThe credential your backend sends as X-API-Key. Minted in the admin console.

What you'll do to onboard​

  1. The RSMG Engage team provisions your tenant. Contact them to get started.
  2. Your admin redeems their invite and signs into the console.
  3. Mint an API key. Then either mint an identity secret (Console → Identity → Signing secret → Mint identity secret) or add an OIDC issuer (Console → Identity → OIDC issuers → Add issuer).
  4. Wire your backend to sign requests, post the first comment, and render it.

Start with the Quickstart.

Where to go next​

Moderation and tenant settings are covered only in the API Reference.