# Teamgate — Pipedream Connect

> Teamgate is an intelligent sales CRM with a great insights. Start from Lead capturing and move along to closing a Deal. Get top reports, which will become a necessity from day one.

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

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

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

const { tools } = await mcp.listTools()

// e.g. run Create Activity:
const result = await mcp.callTool({
  name: "teamgate-create-activity",
  arguments: {
    type: "Type",
    products: [10],
  },
})
```

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

## API proxy

For a Teamgate 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://api.teamgate.com/v4/users

curl "https://api.pipedream.com/v1/connect/{project_id}/proxy/aHR0cHM6Ly9hcGkudGVhbWdhdGUuY29tL3Y0L3VzZXJz?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: "teamgate-create-activity",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    teamgate: { authProvisionId: "apn_xxxxxxx" },
    type: "Type",
    products: [10],
  },
})
```

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

## Actions (27)

### `teamgate-create-activity` — Create Activity (Write)

Creates a new activity See the docs here

Full schema: https://pipedream.com/apps/teamgate/actions/create-activity.md

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

Create a new company. See the docs here

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

### `teamgate-create-deal` — Create Deal (Write)

Create a new deal. See the docs here

Full schema: https://pipedream.com/apps/teamgate/actions/create-deal.md

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

Create a new lead. See the docs here

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

### `teamgate-create-person` — Create Person (Write)

Create a new person. See the docs here

Full schema: https://pipedream.com/apps/teamgate/actions/create-person.md

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

Create a new product. See the docs here

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

### `teamgate-find-company` — Find Company (Read-only)

Find a company See the docs here

Full schema: https://pipedream.com/apps/teamgate/actions/find-company.md

### `teamgate-find-lead` — Find Lead (Read-only)

Find a lead See the docs here

Full schema: https://pipedream.com/apps/teamgate/actions/find-lead.md

### `teamgate-find-person` — Find Person (Read-only)

Find a person See the docs here

Full schema: https://pipedream.com/apps/teamgate/actions/find-person.md

### `teamgate-find-product` — Find Product (Read-only)

Find a product See the docs here

Full schema: https://pipedream.com/apps/teamgate/actions/find-product.md

### `teamgate-list-activity-id-options` — List Activity Id Options (Read-only)

Retrieves available options for the Activity Id field.

Full schema: https://pipedream.com/apps/teamgate/actions/list-activity-id-options.md

### `teamgate-list-product-category-options` — List Category Options (Read-only)

Retrieves available options for the Category field.

Full schema: https://pipedream.com/apps/teamgate/actions/list-product-category-options.md

### `teamgate-list-companies-options` — List Companies Options (Read-only)

Retrieves available options for the Companies field.

Full schema: https://pipedream.com/apps/teamgate/actions/list-companies-options.md

### `teamgate-list-deals-options` — List Deals Options (Read-only)

Retrieves available options for the Deals field.

Full schema: https://pipedream.com/apps/teamgate/actions/list-deals-options.md

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

Retrieves available options for the Industry Id field.

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

### `teamgate-list-lead-status-id-options` — List Lead Status Id Options (Read-only)

Retrieves available options for the Lead Status Id field.

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

### `teamgate-list-leads-options` — List Leads Options (Read-only)

Retrieves available options for the Leads field.

Full schema: https://pipedream.com/apps/teamgate/actions/list-leads-options.md

### `teamgate-list-owner-id-options` — List Owner Id Options (Read-only)

Retrieves available options for the Owner Id field.

Full schema: https://pipedream.com/apps/teamgate/actions/list-owner-id-options.md

### `teamgate-list-person-id-options` — List PersonId Options (Read-only)

Retrieves available options for the PersonId field.

Full schema: https://pipedream.com/apps/teamgate/actions/list-person-id-options.md

### `teamgate-list-pipeline-options` — List Pipeline Options (Read-only)

Retrieves available options for the Pipeline field.

Full schema: https://pipedream.com/apps/teamgate/actions/list-pipeline-options.md

### `teamgate-list-product-id-options` — List Product Id Options (Read-only)

Retrieves available options for the Product Id field.

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

### `teamgate-list-products-options` — List Products Options (Read-only)

Retrieves available options for the Products field.

Full schema: https://pipedream.com/apps/teamgate/actions/list-products-options.md

### `teamgate-list-source-id-options` — List Source Id Options (Read-only)

Retrieves available options for the Source Id field.

Full schema: https://pipedream.com/apps/teamgate/actions/list-source-id-options.md

### `teamgate-update-cart-products-status` — Update Cart Products Status (Write)

This endpoint is meant for setting all products in cart active or inactive, which is same as in-stock or out-of-stock. isActive: true, means product is in-stock. isActive: false, mean product is out of stock. See the docs here

Full schema: https://pipedream.com/apps/teamgate/actions/update-cart-products-status.md

### `teamgate-update-deal` — Update Deal (Write)

Update a specific deal. See the docs here

Full schema: https://pipedream.com/apps/teamgate/actions/update-deal.md

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

Update a specific lead. See the docs here

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

### `teamgate-update-product` — Update Product (Write)

Update a specific product. See the docs here

Full schema: https://pipedream.com/apps/teamgate/actions/update-product.md

## Triggers (11)

### `teamgate-activity-status-changed` — New Activity Status Change (Polling)

Emit new event when a activity status is changed. See docs here

Full schema: https://pipedream.com/apps/teamgate/triggers/activity-status-changed.md

### `teamgate-new-company` — New Company (Polling)

Emit new event when a new company is created. See docs here

Full schema: https://pipedream.com/apps/teamgate/triggers/new-company.md

### `teamgate-new-deal` — New Deal (Polling)

Emit new event when a new deal is created. See docs here

Full schema: https://pipedream.com/apps/teamgate/triggers/new-deal.md

### `teamgate-deal-stage-changed` — New Deal Stage Change (Polling)

Emit new event when a deal stage is changed. See docs here

Full schema: https://pipedream.com/apps/teamgate/triggers/deal-stage-changed.md

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

Emit new event when a new lead is created. See docs here

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

### `teamgate-lead-converted-to-person` — New Lead Converted To Person (Polling)

Emit new event when a lead is converted to person.

Full schema: https://pipedream.com/apps/teamgate/triggers/lead-converted-to-person.md

### `teamgate-new-lost-deal` — New Lost Deal (Polling)

Emit new event when a deal is lost. See docs here

Full schema: https://pipedream.com/apps/teamgate/triggers/new-lost-deal.md

### `teamgate-new-person` — New Person (Polling)

Emit new event when a new person is created. See docs here

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

### `teamgate-new-product` — New Product (Polling)

Emit new event when a new product is created. See docs here

Full schema: https://pipedream.com/apps/teamgate/triggers/new-product.md

### `teamgate-new-unqualified-lead` — New Unqualified Lead (Polling)

Emit new event when a lead is unqualified. See docs here

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

### `teamgate-new-won-deal` — New Won Deal (Polling)

Emit new event when a deal is won. See docs here

Full schema: https://pipedream.com/apps/teamgate/triggers/new-won-deal.md

---

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