Skip to main content
In-app widgets

Messenger configuration & props

Every option accepted by Featurebase(boot), <FeaturebaseProvider>, and Featurebase(update) — including theme, language, hideDefaultLauncher, alignment, padding, identity, and the messenger opt-out.

Written By Robi Rohumaa

Last updated About 4 hours ago

This article lists every option you can pass to the Messenger when booting it from your app. Pair it with the JavaScript API methods reference for imperative calls (show(), hide(), setTheme(), onUnreadCountChange(), etc.) once the Messenger is mounted.

The same option set is accepted by:

  • Featurebase('boot', { ... }) — vanilla JS / HTML installs

  • Featurebase({ ... }) — featurebase-js SDK call

  • <FeaturebaseProvider ... /> props — featurebase-js/react

  • Featurebase('update', { ... }) — updating identity / appearance after boot (every option except $brandId)

You can find your App ID in Settings → Developers → Installation.

Required

appId

Type: string · Alias: app_id

Your Featurebase organization id. Drives both the Messenger and the standalone widgets.

Identity

For logged-in users, prefer the JWT path — it cryptographically attributes conversations, posts, and survey responses to the right user.

featurebaseJwt

Type: string

Recommended for logged-in users. Server-signed JWT carrying identity + custom attributes. With this set, you can leave the raw identity props below empty.

userId · email · name · createdAt

Type: string (or number for userId / createdAt) · Aliases: user_id, created_at

Use only when an attribute is explicitly configured as non-secured in Settings → Access & Security. Otherwise put them inside the JWT — raw identity props let any visitor impersonate your users.

company · companies

Type: FeaturebaseCompany / FeaturebaseCompany[]

Single or multi-tenant company association. Each company supports companyId, name, plan, website, industry, createdAt, monthlySpend, size, plus arbitrary keys forwarded to the company profile.

customData

Type: Record<string, unknown> · Alias: custom_data

Non-secured custom user attributes (subscription tier, role, region, …). For sensitive attributes, place them inside the JWT instead.

Brand

$brandId

Type: string · Plan: Enterprise

The ID of the brand that the Messenger uses. It overrides the brand that matches the page's domain, so you can use different brands on one domain. The Messenger shows the brand's style and uses its Help Center, and new conversations start with that brand. Without $brandId, the Messenger picks the brand from the domain. On other plans, the Messenger always uses your default brand.

Set it at boot: update doesn't change the brand. If the ID isn't a brand in your workspace, the Messenger doesn't load. To find your brand IDs, list your brands with the API: GET /v2/brands. See Style your Messenger to support multiple brands.

Appearance

theme

Type: 'light' | 'dark' · Default: 'light' · Aliases: themeMode, theme_mode

Initial Messenger theme. Can also be changed at runtime with Featurebase('setTheme', 'dark').

language

Type: string · Default: 'en' · Aliases: languageOverride, language_override

BCP-47 short code ('en', 'de', 'fr', …). Runtime equivalent: Featurebase('setLanguage', 'fr').

Launcher

hideDefaultLauncher

Type: boolean · Default: false · Alias: hide_default_launcher

Hide the floating launcher button entirely. Use when you want to open the Messenger from your own UI — trigger it via Featurebase('show') or, in React, const { show } = useFeaturebase().

alignment

Type: 'left' | 'right' · Default: 'right'

Which side of the viewport the launcher pins to.

horizontalPadding · verticalPadding

Type: number · Aliases: horizontal_padding, vertical_padding

Pixel offset of the launcher from the side / bottom of the viewport. Useful when you have a fixed footer, cookie banner, or another floating widget you don't want the launcher to overlap.

Advanced

messenger

Type: boolean · Default: true

Power-user opt-out. Pass false to suppress the Messenger on a specific surface (for example, a public marketing page) even when Support is enabled in General → Manage modules. Most installs leave this unset.

Catch-all keys

Any key not listed above is forwarded verbatim onto the contact's profile. This is the same channel as customData — pick whichever feels cleaner for your codebase.

Examples

Vanilla — full configuration

Featurebase('boot', {      appId: 'YOUR_APP_ID',      featurebaseJwt: user.featurebaseJwt,      theme: 'dark',      language: 'en',      hideDefaultLauncher: true,      alignment: 'left',      horizontalPadding: 24,      verticalPadding: 80,      customData: { plan: 'enterprise', region: 'eu' },    });

React — FeaturebaseProvider

import { FeaturebaseProvider } from 'featurebase-js/react';    export function Root({ children, user }) {      return (        <FeaturebaseProvider          appId="YOUR_APP_ID"          featurebaseJwt={user.featurebaseJwt}          theme="dark"          hideDefaultLauncher          alignment="left"        >          {children}        </FeaturebaseProvider>      );    }

React — opening from your own button when hideDefaultLauncher is set

import { useFeaturebase } from 'featurebase-js/react';    export function ChatLauncher() {      const { show, unreadCount } = useFeaturebase();      return (        <button onClick={show}>          Chat {unreadCount > 0 && <span>{unreadCount}</span>}        </button>      );    }

Updating after boot

Identity, theme, and language can all be changed without rebooting:

  • Vanilla: Featurebase('update', { theme: 'dark', language: 'fr' })

  • React: the provider re-runs update automatically when its props change. The Messenger iframe stays mounted; auth tokens refresh.

The brand can't change after boot: update doesn't change $brandId. Set the correct $brandId on every page load.

See also