View as Markdown
Mailmodo icon

Mailmodo ACTION

Add Contact To List

Adds a contact to a list See the docs here
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Mailmodo account once, then configure and run Add Contact To List 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: "mailmodo-add-contact-to-list",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    mailmodo: { authProvisionId: "apn_xxxxxxx" },
    listName: "List",
    email: "Email",
  },
})

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 To List inputs
Property Type Description
listName List string
List Name
Required Dynamic
email Email string
Email of the user
Required
firstName Firstname string
Firstname of the contact
Optional
lastName Lastname string
Lastname of the contact
Optional
name Name string
Name of the contact
Optional
gender Gender string
Gender of the contact
Optional
age Age integer
Age of the contact
Optional
phone Phone string
Phone of the contact
Optional
address1 Address string
Address
Optional
address2 Address(more) string
Address(more)
Optional
city City string
City
Optional
state State string
State
Optional
country Country string
Country
Optional
postalCode Postal Code string
Postal code
Optional
designation Designation string
Designation
Optional
company Company string
Company
Optional
industry Industry string
Industry
Optional
description Description string
Description
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
mailmodo-add-contact-to-list
Version
0.0.2
App
Mailmodo
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes