Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.withbenji.com/llms.txt

Use this file to discover all available pages before exploring further.

What is Benji Connect?

Benji Connect enables you to connect your members to reward loyalty partners, allowing them to earn and redeem rewards through your platform. There are two ways to integrate Benji Connect into your application:
  • Benji Hosted Connect — Connect users through Benji Hosted Connect (Benji-managed page; no embedded JavaScript required)
  • Benji Connect SDK — Embed the same Connect experience as a modal in your app
Both approaches accomplish the same goal—connecting your members to reward partners—but differ in implementation, customization, and user experience. Both use a connect token and support Connect modes (link, transfer, redeem) depending on how you create the token.

Benji Hosted Connect

Benji Hosted Connect is a fully hosted solution where you redirect users to a Benji-managed page that handles the entire Connect flow (internally using the same patterns as the Benji Connect SDK). You integrate primarily via URLs, Pilot configuration, and APIs—not by embedding JavaScript. No frontend code changes are required. Best suited for:
  • Quick integrations without building your own Connect UI
  • Server-side or campaign-driven links
  • Multi-platform use of a single Benji Hosted Connect URL pattern
  • Dedicated Benji Hosted Connect experiences and custom domains configured in Pilot

Benji Hosted Connect Introduction

Learn how to integrate with Benji Hosted Connect

Benji Connect SDK

The Benji Connect SDK is a JavaScript/TypeScript library you load from npm or script tag. It opens the Connect experience in a modal over your page and delivers callbacks to your code. With this solution you have full control over when and how the connection flow is triggered. Best suited for:
  • Native app integrations
  • Web applications requiring seamless user experience
  • Scenarios where you want the connection flow embedded in your UI
  • Tight control over when the modal opens and how you handle events

Benji Connect SDK Introduction

Learn how to integrate with the Benji Connect SDK

Comparison

FeatureBenji Hosted ConnectBenji Connect SDK
IntegrationRedirect + APIs; optional query parametersEmbed the Benji Connect SDK; initialize with token
CustomizationBenji Hosted Connect in PilotEmbedded in your UI
User experienceFull-page Benji Hosted Connect entryInline modal
Best forEmail campaigns, dedicated partner pagesNative app integrations, web applications
EffortMinimalRequires frontend integration
You can use both: e.g. Benji Hosted Connect for campaigns and the Benji Connect SDK for logged-in web sessions. Choose the approach that best fits each use case in your application.

Integration checklist

Use this list when wiring Benji Hosted Connect, the Benji Connect SDK, and your backend.
StepWhat to doWhere to read more
API accessCreate a partner API key in PilotDeveloper
TokenPOST Create Token with partnership_id, mode, and optional fieldsCreate Token, Modes
Benji Hosted Connect URLUse connect_url + ?connect_token=<token>; configure Redirect URL and optional custom domain in PilotBenji Hosted Connect
Benji Connect SDKInstall package, initialize, call open(), handle callbacksIntroduction
Long-lived accessPOST Exchange Token with the token from onSuccess within 15 minutesExchange Token
Async updatesSubscribe to webhooks for user and transaction lifecycleWebhooks overview