Skip to main content
Build an integrations page that lets your tenants connect their apps. We recommend splitting it into two sections: Connections (accounts they’ve already connected) and Integrations (apps available to connect).

Getting Started

  1. Complete the Quickstart: Product Integrations guide.
  2. Ask your coding agent to build the integration catalog for your app:
“Build an integrations page with two sections: ‘Your Connections’ showing connected accounts with disconnect, and ‘Available Integrations’ showing apps that can still be connected. Use the Membrane React SDK.”
If you want to learn how it works under the hood — read on.

React SDK

Install the React SDK and wrap your app with the provider.
The fetchToken function should call your backend endpoint that generates authentication tokens.

Complete example

The key pattern: fetch both integrations and connections, then split integrations into “connected” and “available” based on whether a connection exists.
Once an integration is connected, it moves from “Available Integrations” to “Your Connections” automatically. See the Playground for a full working example with styling and additional features.

Hooks reference

HookReturns
useIntegrations(){ items: Integration[], loading, error } — all integrations in your workspace
useConnections(){ items: Connection[], loading, error } — current tenant’s connections
useMembrane()The MembraneClient instance for imperative operations
Pass { search: query } to useIntegrations to add search filtering.

JavaScript SDK

For non-React apps, use the JavaScript SDK directly.

REST API

For any language or framework, use the REST API directly. List integrations:
List connections:
Connection UI: Redirect your user to Membrane’s hosted connection page:
Optional parameters: redirectUri (where to send the user after connecting), name (pre-set connection name). Every completed connect flow creates a new connection; to re-authenticate an existing connection, pass its connectionId. Reconnect: Redirect to:
See the full API Reference for all available endpoints.

Advanced