# Nutshell — Pipedream Connect

> The all-in-one CRM and email marketing platform that helps B2B organizations work together to win more deals.

- API slug: `nutshell` (use in MCP headers and tool keys)
- Auth: API key (Pipedream-managed)
- Categories: CRM
- Website: https://www.nutshell.com/
- This page (HTML): https://pipedream.com/apps/nutshell
- Tools: 20 actions · 3 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: nutshell`

```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": "nutshell",
      },
    },
  },
)

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

const { tools } = await mcp.listTools()

// e.g. run Create Company:
const result = await mcp.callTool({
  name: "nutshell-create-company",
  arguments: {
    name: "Company Name",
    industryId: "Industry ID",
  },
})
```

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

## API proxy

For a Nutshell endpoint with no pre-built tool, the proxy forwards your request with the connected user's credentials attached.

```bash
# The path segment is the target URL, URL-safe base64 encoded:
# https://app.nutshell.com/rest/accounts

curl "https://api.pipedream.com/v1/connect/{project_id}/proxy/aHR0cHM6Ly9hcHAubnV0c2hlbGwuY29tL3Jlc3QvYWNjb3VudHM?external_user_id={external_user_id}&account_id=apn_xxxxxxx" \
  -H "Authorization: Bearer {access_token}" \
  -H "x-pd-environment: production"
```

Docs: [API proxy guide](https://pipedream.com/docs/connect/api-proxy.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: "nutshell-create-company",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    nutshell: { authProvisionId: "apn_xxxxxxx" },
    name: "Company Name",
    industryId: "Industry ID",
  },
})
```

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

## Actions (20)

### `nutshell-create-company` — Create Company (Write)

Create a new company (account) in Nutshell. See the documentation

Full schema: https://pipedream.com/apps/nutshell/actions/create-company.md

### `nutshell-create-contact` — Create Contact (Write)

Create a new contact (person) in Nutshell. See the documentation

Full schema: https://pipedream.com/apps/nutshell/actions/create-contact.md

### `nutshell-create-lead` — Create Lead (Write)

Create a new lead in Nutshell. See the documentation

Full schema: https://pipedream.com/apps/nutshell/actions/create-lead.md

### `nutshell-get-company` — Get Company (Read-only)

Retrieve a single company (account) from Nutshell. See the documentation

Full schema: https://pipedream.com/apps/nutshell/actions/get-company.md

### `nutshell-get-contact` — Get Contact (Read-only)

Retrieve a single contact (person) from Nutshell. See the documentation

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

### `nutshell-get-lead` — Get Lead (Read-only)

Retrieve a single lead from Nutshell. See the documentation

Full schema: https://pipedream.com/apps/nutshell/actions/get-lead.md

### `nutshell-list-account-type-id-options` — List Account Type Id Options (Read-only)

Retrieves available options for the Account Type Id field.

Full schema: https://pipedream.com/apps/nutshell/actions/list-account-type-id-options.md

### `nutshell-list-audience-id-options` — List Audience Id Options (Read-only)

Retrieves available options for the Audience Id field.

Full schema: https://pipedream.com/apps/nutshell/actions/list-audience-id-options.md

### `nutshell-list-company-id-options` — List Company ID Options (Read-only)

Retrieves available options for the Company ID field.

Full schema: https://pipedream.com/apps/nutshell/actions/list-company-id-options.md

### `nutshell-list-contact-id-options` — List Contact Id Options (Read-only)

Retrieves available options for the Contact Id field.

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

### `nutshell-list-industry-id-options` — List Industry Id Options (Read-only)

Retrieves available options for the Industry Id field.

Full schema: https://pipedream.com/apps/nutshell/actions/list-industry-id-options.md

### `nutshell-list-lead-id-options` — List Lead ID Options (Read-only)

Retrieves available options for the Lead ID field.

Full schema: https://pipedream.com/apps/nutshell/actions/list-lead-id-options.md

### `nutshell-list-market-id-options` — List Market Id Options (Read-only)

Retrieves available options for the Market Id field.

Full schema: https://pipedream.com/apps/nutshell/actions/list-market-id-options.md

### `nutshell-list-territory-id-options` — List Territory Id Options (Read-only)

Retrieves available options for the Territory Id field.

Full schema: https://pipedream.com/apps/nutshell/actions/list-territory-id-options.md

### `nutshell-search-companies` — Search Companies (Read-only)

Search companies (accounts) in Nutshell. Returns records in the existing company output format. See the documentation

Full schema: https://pipedream.com/apps/nutshell/actions/search-companies.md

### `nutshell-search-contacts` — Search Contacts (Read-only)

Search contacts (people) in Nutshell. Returns records in the existing contact output format. See the documentation

Full schema: https://pipedream.com/apps/nutshell/actions/search-contacts.md

### `nutshell-search-leads` — Search Leads (Read-only)

Search leads in Nutshell. Returns records in the existing lead output format. See the documentation

Full schema: https://pipedream.com/apps/nutshell/actions/search-leads.md

### `nutshell-update-company` — Update Company (Write)

Update an existing company (account) in Nutshell. See the documentation

Full schema: https://pipedream.com/apps/nutshell/actions/update-company.md

### `nutshell-update-contact` — Update Contact (Write)

Update an existing contact (person) in Nutshell. See the documentation

Full schema: https://pipedream.com/apps/nutshell/actions/update-contact.md

### `nutshell-update-lead` — Update Lead (Write)

Update an existing lead in Nutshell. Use leads/0/manualValue for value updates. See the documentation

Full schema: https://pipedream.com/apps/nutshell/actions/update-lead.md

## Triggers (3)

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

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

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

### `nutshell-lead-won` — New Lead Won (Polling)

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

Full schema: https://pipedream.com/apps/nutshell/triggers/lead-won.md

### `nutshell-new-person` — New Person Profile Created (Polling)

Emit new event when a new person profile is created. See the documentation

Full schema: https://pipedream.com/apps/nutshell/triggers/new-person.md

---

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