View as Markdown
NationBuilder icon

NationBuilder ACTION

Create Membership

Create a new membership with the provided data. See the documentation
  • Action
  • Writes data
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's NationBuilder account once, then configure and run Create Membership 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: "nationbuilder-create-membership",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    nationbuilder: { authProvisionId: "apn_xxxxxxx" },
    name: "Membership Type Name",
    personId: "Person Id",
  },
})

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 Membership inputs
Property Type Description
name Membership Type Name string
The name of the membership type.
Required
personId Person Id string
The NationBuilder Id of the person the membership applies to.
Required Dynamic
status Status string
The current status of the membership.
Required
statusReason Status Reason string
A description of how the memebership acquired its current status.
Optional
expiresOn Expires On string
A timestamp representing when the membership expires. Format: YYYY-MM-DDTHH:mm:ssZ
Optional
startedAt Started At string
A timestamp representing when the membership expires. Format: YYYY-MM-DDTHH:mm:ssZ
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
nationbuilder-create-membership
Version
0.0.2
App
NationBuilder
Authentication
OAuth
Read-only
No
Destructive
No
Open world
Yes