Quickstart: Internal Tools

Use Membrane's API, SDK, or CLI directly to build scripts, internal tools, and backend automations.

1. Get your credentials

Sign up at getmembrane.com and get your API token from the dashboard.

Set the environment variable:

export MEMBRANE_ACCESS_TOKEN="your-token-here"

2. Choose your method

Option A: TypeScript SDK

npm install @membranehq/sdk
import { MembraneClient } from '@membranehq/sdk'

const membrane = new MembraneClient({
  token: process.env.MEMBRANE_ACCESS_TOKEN,
})

// List available integrations
const integrations = await membrane.integrations.find()
console.log(integrations.items)

// Run an action
const result = await membrane.action('create-contact').run({
  input: { email: '[email protected]', name: 'Jane' },
})

See SDK for the full reference.

Option B: REST API

curl https://api.integration.app/connections \
  -H "Authorization: Bearer $MEMBRANE_ACCESS_TOKEN"

See REST API for authentication details and examples.

Option C: CLI

npm install -g @membranehq/cli
membrane login
membrane status

See CLI for the full command reference.

3. Create a connection

Before you can interact with an external app, you need a connection. Open the connection UI:

await membrane.integration('hubspot').openNewConnection()

Or create one via CLI:

membrane connect hubspot

Next steps

  • Connections — how connections work
  • Actions — run operations in external apps
  • Events — subscribe to changes in external apps