Getting Started
- Complete the Quickstart: Product Integrations guide.
- 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.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.Hooks reference
| Hook | Returns |
|---|---|
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 |
{ 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:redirectUri (where to send the user after connecting), allowMultipleConnections=1, name (pre-set connection name).
Reconnect: Redirect to:
Advanced
- Embedded UI — customize the connection flow, support multiple connections per app
- Custom Connection UI — build a fully custom connection experience
- Connection Lifecycle — auto-refresh, reconnection, webhooks