View as Markdown
ClickSend SMS icon

ClickSend SMS ACTION

Create Contact

Creates a new contact in a specific list. See the documentation
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's ClickSend SMS account once, then configure and run Create 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: "clicksend-create-contact",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    clicksend: { authProvisionId: "apn_xxxxxxx" },
    listId: 10,
    phoneNumber: "Phone Number",
  },
})

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.

Create Contact inputs
Property Type Description
listId List ID integer
The ID of the list to add the contact to.
Required Dynamic
phoneNumber Phone Number string
The phone number of the contact, in E.164 format. Must be provided if no Fax Number or Email.
Optional
email Email string
The email address of the contact. Must be provided if no Phone Number or Fax Number.
Optional
faxNumber Fax Number string
The fax number of the contact. Must be provided if no Phone Number or Email.
Optional
firstName First Name string
The first name of 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
clicksend-create-contact
Version
0.0.3
App
ClickSend SMS
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes