# Sperse — Pipedream Connect

> A centralized growth platform for online businesses.

- API slug: `sperse` (use in MCP headers and tool keys)
- Auth: API key (Pipedream-managed)
- Categories: CRM
- Website: https://www.sperse.com
- This page (HTML): https://pipedream.com/apps/sperse
- Tools: 7 actions · 2 triggers

## Connect via MCP (recommended)

- Endpoint: `https://remote.mcp.pipedream.net/v3`
- Headers: `Authorization: Bearer <token>` · `x-pd-project-id` · `x-pd-environment` · `x-pd-external-user-id` · `x-pd-app-slug: sperse`

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID!,
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "sperse",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// e.g. run Add or Update Contact:
const result = await mcp.callTool({
  name: "sperse-add-or-update-contact",
  arguments: {
    contactId: "Contact ID",
    contactGroupId: "Contact Group ID",
  },
})
```

Docs: [MCP guide](https://pipedream.com/docs/connect/mcp/developers.md)

## SDK

```ts
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "sperse-add-or-update-contact",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    sperse: { authProvisionId: "apn_xxxxxxx" },
    contactId: "Contact ID",
    contactGroupId: "Contact Group ID",
  },
})
```

Docs: [Managed auth guide](https://pipedream.com/docs/connect/managed-auth/quickstart.md) · [Tools guide](https://pipedream.com/docs/connect/components.md)

## Actions (7)

### `sperse-add-or-update-contact` — Add or Update Contact (Write)

Creates or updates a contact. See the documentation

Full schema: https://pipedream.com/apps/sperse/actions/add-or-update-contact.md

### `sperse-create-invoice` — Create Invoice (Write)

Creates a new invoice in Sperse. See the documentation

Full schema: https://pipedream.com/apps/sperse/actions/create-invoice.md

### `sperse-create-product` — Create Product (Write)

Creates a new product. See the documentation

Full schema: https://pipedream.com/apps/sperse/actions/create-product.md

### `sperse-get-contact-details` — Get Contact Details (Read-only)

Retrieves detailed information about a contact. See the documentation

Full schema: https://pipedream.com/apps/sperse/actions/get-contact-details.md

### `sperse-list-contact-group-id-options` — List Contact Group ID Options (Read-only)

Retrieves available options for the Contact Group ID field.

Full schema: https://pipedream.com/apps/sperse/actions/list-contact-group-id-options.md

### `sperse-list-currency-id-options` — List Currency ID Options (Read-only)

Retrieves available options for the Currency ID field.

Full schema: https://pipedream.com/apps/sperse/actions/list-currency-id-options.md

### `sperse-list-product-id-options` — List Product ID Options (Read-only)

Retrieves available options for the Product ID field.

Full schema: https://pipedream.com/apps/sperse/actions/list-product-id-options.md

## Triggers (2)

### `sperse-new-lead` — New Lead (Polling)

Emit new event when a new lead is created. See the documentation

Full schema: https://pipedream.com/apps/sperse/triggers/new-lead.md

### `sperse-new-subscription` — New Subscription (Polling)

Emit new event when a new subscription is created. See the documentation

Full schema: https://pipedream.com/apps/sperse/triggers/new-subscription.md

---

- All apps: https://pipedream.com/apps — index: https://pipedream.com/llms.txt
- Pipedream docs for agents: https://pipedream.com/docs/llms.txt
