BricqsBricqs
Documentation

Choose Your Integration

Five ways in, one engine underneath. Every path talks to the same gamification backend and the same published contract, so you can start with an embed and graduate to the SDK or raw REST without migrating data.

Decision matrix

PathBest forAuth in clientServer neededUI controlLive updatesOps burden
Script tag embedMarketing and no-code teamsNone in the page (engagement-scoped public runtime)NoRendered by the Bricqs runtime; theme configured in the BuilderPolling inside the runtimePaste the snippet
iframe embedSame, on platforms that restrict scripts (CMS, builders)None in the pageNoRendered by the runtime, fully isolatedPolling inside the runtimePaste one tag
React SDK (managed render)Frontend teams wanting drop-in componentsParticipant JWT (server mint route required)Yes: one token-mint endpointManaged components with slot-level customizationSSE stream + polling fallbackMint endpoint + token refresh
Headless hooksProduct engineering owning every pixelParticipant JWT (server mint route required)Yes: one token-mint endpointFully yours; hooks return data onlySSE stream + polling fallbackMint endpoint + token refresh + your UI
REST onlyBackends, mobile-native, non-React stacksAPI key server-side; participant JWT for user-context callsYesFully yoursSSE endpoint directly, or pollEverything explicit; generated OpenAPI + catalogs are the contract

True on every path

  • Value movement is server-only. Awarding points, assigning tiers, and claiming rewards require an API key with the gamify:write scope; no path moves value from a browser. See Authentication.
  • Webhooks are path-independent. Any backend can subscribe to progression events regardless of how the frontend integrates. See Webhooks.
  • Test mode is a separate tenant. bq_test_ keys hit an isolated sibling tenant with its own data and suppressed webhook sends.
  • The contract is generated. OpenAPI plus the event and error catalogs are served machine-readable; docs are a projection of them.

Quick guidance

Launching a campaign this week on a marketing site? Script tag. Two lines, no build step, done.

Building gamification into a React product? Start with the React SDK managed components; drop to headless hooks screen-by-screen where you need full design control. Both share the same provider and token flow, so mixing is free.

Native mobile or a non-JS backend? REST-only is a first-class path: the generated OpenAPI spec and the event/error catalogs are the contract, and the SSE endpoint works from any HTTP client.

Anonymous visitors? Embeds and the public challenge/contest read surface work without any credential; gated engagements upgrade to participant tokens when identity matters.

Next steps