View as Markdown
Constant Contact icon

Constant Contact ACTION

Add Contact

Add a single contact. See the documentation
  • Action
  • Writes data
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Constant Contact account once, then configure and run Add 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-add-contact",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    constant_contact: { authProvisionId: "apn_xxxxxxx" },
    emailAddress: "Email Address",
    permissionToSend: "Permission To Send",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Add Contact inputs
Property Type Description
emailAddress Email Address string
The contact's email address.
Required
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
createSource Create Source string
Describes who added the contact. Your integration must accurately identify create_source for compliance reasons. value is set on POST, and is read-only going forward.
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-add-contact
Version
0.0.4
App
Constant Contact
Authentication
OAuth
Read-only
No
Destructive
No
Open world
Yes