CONNECT APP
Build with Teamgate
CRM
- API key
MCP
Give your agent Teamgate tools
Every Teamgate action is exposed as an MCP tool on Pipedream's remote server. Point a client at it with your end user's ID and Connect resolves that user's Teamgate account for each tool call — you store no tokens.
// accessToken: mint a short-lived token with the Connect SDK — see the MCP guide
const transport = new StreamableHTTPClientTransport(
new URL("https://remote.mcp.pipedream.net/v3"),
{
requestInit: {
headers: {
Authorization: `Bearer ${accessToken}`,
"x-pd-project-id": "{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],
},
})# access_token: mint a short-lived token with the Connect SDK — see the MCP guide
headers = {
"Authorization": f"Bearer {access_token}",
"x-pd-project-id": "{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",
}
async with streamablehttp_client("https://remote.mcp.pipedream.net/v3", headers=headers) as (read, write, _):
async with ClientSession(read, write) as session:
await session.initialize()
tools = await session.list_tools()
# e.g. run Create Activity:
result = await session.call_tool("teamgate-create-activity", {
"type": "Type",
"products": [10],
})API PROXY
Call the Teamgate API directly
For an endpoint with no pre-built tool, the Connect proxy forwards your request to the Teamgate API with the connected user's credentials attached. You store no tokens and write no refresh logic.
const resp = await pd.proxy.get({
externalUserId: "{external_user_id}", // any stable ID for this user in your system
accountId: "apn_xxxxxxx",
url: "https://api.teamgate.com/v4/users",
})
// Any allowed Teamgate endpoint works here. Pipedream attaches the
// connected account's credentials to the outgoing request.# 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"SDK
Run Teamgate actions from your backend
Connect a user's Teamgate account once, then run Create Activity on their behalf from your own code — TypeScript, Python, or plain HTTP.
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],
},
})from pipedream import Pipedream
pd = Pipedream(
client_id="{oauth_client_id}",
client_secret="{oauth_client_secret}",
project_id="{project_id}",
project_environment="production",
)
result = pd.actions.run(
id="teamgate-create-activity",
external_user_id="{external_user_id}", # any stable ID for this user in your system
configured_props={
"teamgate": {"authProvisionId": "apn_xxxxxxx"},
"type": "Type",
"products": [10],
},
)curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
-H "Content-Type: application/json" \
-H "X-PD-Environment: production" \
-H "Authorization: Bearer {access_token}" \
-d '{
"external_user_id": "{external_user_id}",
"id": "teamgate-create-activity",
"configured_props": {
"teamgate": { "authProvisionId": "apn_xxxxxxx" },
"type": "Type",
"products": [10]
}
}'TOOLS
Teamgate actions
On-demand operations your product or agent can configure and run on behalf of a connected user.
-
Create Activity
actionCreates a new activity See the docs hereWritev0.0.2 -
Create Company
actionCreate a new company. See the docs hereWritev0.0.2 -
Create Deal
actionCreate a new deal. See the docs hereWritev0.0.2 -
Create Lead
actionCreate a new lead. See the docs hereWritev0.0.3 -
Create Person
actionCreate a new person. See the docs hereWritev0.0.2 -
Create Product
actionCreate a new product. See the docs hereWritev0.0.2 -
Find Company
actionFind a company See the docs hereRead-onlyv0.0.2 -
Find Lead
actionFind a lead See the docs hereRead-onlyv0.0.2 -
Find Person
actionFind a person See the docs hereRead-onlyv0.0.2 -
Find Product
actionFind a product See the docs hereRead-onlyv0.0.2 -
List Activity Id Options
actionRetrieves available options for the Activity Id field.Read-onlyv0.0.1 -
List Category Options
actionRetrieves available options for the Category field.Read-onlyv0.0.1 -
List Companies Options
actionRetrieves available options for the Companies field.Read-onlyv0.0.1 -
List Deals Options
actionRetrieves available options for the Deals field.Read-onlyv0.0.1 -
List Industry Id Options
actionRetrieves available options for the Industry Id field.Read-onlyv0.0.1 -
List Lead Status Id Options
actionRetrieves available options for the Lead Status Id field.Read-onlyv0.0.1 -
List Leads Options
actionRetrieves available options for the Leads field.Read-onlyv0.0.1 -
List Owner Id Options
actionRetrieves available options for the Owner Id field.Read-onlyv0.0.1 -
List PersonId Options
actionRetrieves available options for the PersonId field.Read-onlyv0.0.1 -
List Pipeline Options
actionRetrieves available options for the Pipeline field.Read-onlyv0.0.1 -
List Product Id Options
actionRetrieves available options for the Product Id field.Read-onlyv0.0.1 -
List Products Options
actionRetrieves available options for the Products field.Read-onlyv0.0.1 -
List Source Id Options
actionRetrieves available options for the Source Id field.Read-onlyv0.0.1 -
Update Cart Products Status
actionThis 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 hereWritev0.0.3 -
Update Deal
actionUpdate a specific deal. See the docs hereWritev0.0.2 -
Update Lead
actionUpdate a specific lead. See the docs hereWritev0.0.3 -
Update Product
actionUpdate a specific product. See the docs hereWritev0.0.2
EVENTS
Teamgate triggers
Event sources your backend can deploy for users and receive through a webhook.
-
New Activity Status Change
triggerEmit new event when a activity status is changed. See docs herev0.0.1 -
New Company
triggerEmit new event when a new company is created. See docs herev0.0.1 -
New Deal
triggerEmit new event when a new deal is created. See docs herev0.0.1 -
New Deal Stage Change
triggerEmit new event when a deal stage is changed. See docs herev0.0.1 -
New Lead
triggerEmit new event when a new lead is created. See docs herev0.0.1 -
New Lead Converted To Person
triggerEmit new event when a lead is converted to person.v0.0.1 -
New Lost Deal
triggerEmit new event when a deal is lost. See docs herev0.0.1 -
New Person
triggerEmit new event when a new person is created. See docs herev0.0.1 -
New Product
triggerEmit new event when a new product is created. See docs herev0.0.1 -
New Unqualified Lead
triggerEmit new event when a lead is unqualified. See docs herev0.0.1 -
New Won Deal
triggerEmit new event when a deal is won. See docs herev0.0.1
- App slug
- teamgate
- Authentication
- API key
- Categories
- CRM
- Actions
- 27
- Triggers
- 11
- API proxy
- Available