View as Markdown
Plecto icon

Plecto ACTION

Create Registration

Creates a new registration in Plecto. See the documentation
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Plecto account once, then configure and run Create Registration 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: "plecto-create-registration",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    plecto: { authProvisionId: "apn_xxxxxxx" },
    dataSource: "Data Source",
    member: "Member",
  },
})

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 Registration inputs
Property Type Description
dataSource Data Source string
ID of the data source of the registration
Required Dynamic
member Member string
ID of the member associated with this registration
Required Dynamic
externalId External ID string
External ID to prevent duplicate registrations
Optional
date Date string
Date and time of the registration in ISO 8601 format
Optional
customFields Custom Fields object
Custom fields representing the product information. For example. { "Product Name": "Green tea", "Units Sold": 2 }
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
plecto-create-registration
Version
0.0.2
App
Plecto
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes