Skip to navigation

Get App Config

Returns the full app configuration needed to bootstrap the client application.

Authentication: Public — no Bearer token required. If a valid Bearer token is provided, the response includes current_user data. On api.customerhub.com HMAC application authentication is still required.

Response includes:

  • theme — Current theme version with compiled CSS/JS assets
  • brand — Branding config (logo, colors, favicon, app name)
  • app — App settings (features enabled, public_content, navigation, social links) plus the auth bootstrap fields below
  • current_user — User profile if authenticated (null if not)
  • navigation — Sidebar/nav menu items the user can access
  • ls_options — LoyalStream (AI) chat configuration

Auth bootstrap fields (under app):

  • recaptcha_site_key — reCAPTCHA v3 site key to load in the browser before calling POST /session or POST /users. null when reCAPTCHA is disabled for the environment, in which case recaptcha_token can be omitted
  • public_signup — Whether POST /users self-registration is open on this app
  • google_oauth_client_id — Google client ID for POST /session/google_auth
  • apple_oauth_client_id — Apple client ID for POST /session/apple_auth
  • ws_url — Action Cable WebSocket URL for real-time features

Use this to:

  • Determine which features are enabled (posts, products, comments, directory)
  • Decide whether a login or signup form must solve reCAPTCHA
  • Build navigation menus
  • Apply theming and branding
  • Check if user is logged in

Response

OK