View as Markdown
CleverReach icon

CleverReach ACTION

Create Subscriber

Adds a new subscriber to a mailing list. See the documentation
  • Action
  • Writes data
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's CleverReach account once, then configure and run Create Subscriber 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: "cleverreach-create-subscriber",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    cleverreach: { authProvisionId: "apn_xxxxxxx" },
    groupId: "Group ID",
    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.

Create Subscriber inputs
Property Type Description
groupId Group ID string
The group (mailing list) of the subscriber
Required Dynamic
email Email string
The email address of the new subscriber
Required
source Source string
The source of this subscriber
Optional
tags Tags string[]
Tags for this subscriber
Optional
additionalData Additional Data object
Any additional params to be passed to the request. See the documentation for available fields
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
cleverreach-create-subscriber
Version
0.0.2
App
CleverReach
Authentication
OAuth
Read-only
No
Destructive
No
Open world
Yes