Salesmate ACTION
Update Contact
This API is used to update a contact's details. See docs here
- Action
- Writes data
- Destructive
- API key
- SDK
- MCP
IMPLEMENTATION
Call this tool
Connect a user's Salesmate account once, then configure and run Update Contact from your backend or agent.
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: "salesmate-update-contact",
externalUserId: "{external_user_id}", // any stable ID for this user in your system
configuredProps: {
salesmate: { authProvisionId: "apn_xxxxxxx" },
contactId: 10,
firstName: "First Name",
},
})
console.log(result)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": "salesmate-update-contact",
"configured_props": {
"salesmate": { "authProvisionId": "apn_xxxxxxx" },
"contactId": 10,
"firstName": "First Name"
}
}'// 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": "salesmate",
},
},
},
)
const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)
const { tools } = await mcp.listTools()
// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
name: "salesmate-update-contact",
arguments: {
contactId: 10,
firstName: "First Name",
},
})SCHEMA
Inputs
Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.
| Property | Type | Description |
|---|---|---|
contactId Contact Id | integer | The unique identifier of the contact. Required Dynamic |
firstName First Name | string | First name of the contact. Optional |
lastName Last Name | string | Last name of the contact. Required |
owner Owner | integer | Owner of the contact. Required Dynamic |
mobile Mobile | string | Mobile number of the contact. Optional |
company Company | integer | The user can add a company for the contact from existing companies. If the contact's company is not defined, then the user can quickly add the company. Optional Dynamic |
email Email | string | Email of the contact. Optional |
website Website | string | Website of the contact. Optional |
googlePlusHandle Google Plus Handle | string | Contact's Google Plus profile link. Optional |
linkedInHandle LinkedIn Handle | string | Contact's LinkedIn profile link. Optional |
phone Phone | string | Phone number 1 of the contact. Optional |
otherPhone Other Phone | string | Phone number 2 of the contact. Optional |
skypeId Skype Id | string | Contact's Skype ID. Optional |
facebookHandle Facebook Handle | string | Contact's Facebook link. Optional |
twitterHandle Twitter Handle | string | Contact's Twitter link. Optional |
currency Currency | string | The three-letter ISO currency code, in uppercase. Optional Dynamic |
designation Designation | string | Contact's designation. Optional |
billingAddressLine1 Billing Address Line 1 | string | Line one of the billing address of the contact. Optional |
billingAddressLine2 Billing Address Line 2 | string | Line two of the billing address of the contact. Optional |
billingCity Billing City | string | City name of contact's address for billing purposes. Optional |
billingZipCode Billing Zip Code | string | Zip code of the billing City. Optional |
billingState Billing State | string | State name of contact's address for billing purposes. Optional |
billingCountry Billing Country | string | Country name of contact's address for billing purposes. Optional |
description Description | string | Description about the contact. It contains an arbitrary string attached to the contact object. Optional |
tags Tags | string[] | The tags associated with the contact. Optional Dynamic |
REFERENCE
Tool details
Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.
- Registry key
- salesmate-update-contact
- Version
- 0.0.2
- App
- Salesmate
- Authentication
- API key
- Read-only
- No
- Destructive
- Yes
- Open world
- Yes
- Source
- View on GitHub ↗