Constant Contact ACTION
Update Contact
Update an existing contact. See the documentation
- Action
- Writes data
- Destructive
- OAuth
- SDK
- MCP
IMPLEMENTATION
Call this tool
Connect a user's Constant Contact 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: "constant_contact-update-contact",
externalUserId: "{external_user_id}", // any stable ID for this user in your system
configuredProps: {
constant_contact: { authProvisionId: "apn_xxxxxxx" },
contactId: "Contact Id",
emailAddress: "Email Address",
},
})
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": "constant_contact-update-contact",
"configured_props": {
"constant_contact": { "authProvisionId": "apn_xxxxxxx" },
"contactId": "Contact Id",
"emailAddress": "Email Address"
}
}'// 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": "constant_contact",
},
},
},
)
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: "constant_contact-update-contact",
arguments: {
contactId: "Contact Id",
emailAddress: "Email Address",
},
})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 | string | Unique ID of contact Required Dynamic |
emailAddress Email Address | string | The contact's email address. Optional |
permissionToSend Permission To Send | string | Identifies the type of permission that the Constant Contact account has been granted to send email to the contact. Optional |
firstName First Name | string | The first name of the contact. Optional |
lastName Last Name | string | The last name of the contact. Optional |
jobTitle Job Title | string | The job title of the contact. Optional |
companyName Company Name | string | The name of the company where the contact works. Optional |
updateSource Update Source | string | Describes who updated the contact. Your integration must accurately identify update_source for compliance reasons. Required |
birthdayMonth Birthday Month | string | The month value for the contact's birthday. The birthdayMonth is required if you use birthdayDay. Optional |
birthdayDay Birthday Day | string | The day value for the contact's birthday. The birthdayDay is required if you use birthdayMonth. Optional |
anniversary Anniversary | string | The anniversary date for the contact. For example, this value could be the date when the contact first became a customer of an organization in Constant Contact. Valid date formats are MM/DD/YYYY, M/D/YYYY, YYYY/MM/DD, YYYY/M/D, YYYY-MM-DD, YYYY-M-D,M-D-YYYY, or M-DD-YYYY. Optional |
numberOfPhoneNumbers Number Of Phone Numbers | integer | The number of phone numbers of the contact. Optional |
numberOfStreetAddresses Number Of Street Addresses | integer | The number of street addresses of the contact. Optional |
listMemberships List Membership | string[] | Array of lists to which the contact is being subscribed, up to a maximum of 50. Optional Dynamic |
taggings Taggings | string[] | Array of tags assigned to the contact, up to a maximum of 50. Optional Dynamic |
numberOfNotes Number Of Notes | integer | The number of notes in the contact. Optional |
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
- constant_contact-update-contact
- Version
- 0.0.4
- App
- Constant Contact
- Authentication
- OAuth
- Read-only
- No
- Destructive
- Yes
- Open world
- Yes
- Source
- View on GitHub ↗