View as Markdown
Moxie icon

Moxie ACTION

Create Client

Create a new client. See the documentation
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Moxie account once, then configure and run Create Client 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: "moxie-create-client",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    moxie: { authProvisionId: "apn_xxxxxxx" },
    name: "Name",
    clientType: "Type",
  },
})

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 Client inputs
Property Type Description
name Name string
The name of the client
Required
clientType Type string
The type of client
Required
currency Currency string
Valid ISO 4217 currency code
Required Dynamic
firstName First Name string
First name of the client's primary contact
Optional
lastName Last Name string
Last name of the client's primary contact
Optional
email Email string
Email address of the client's primary contact
Optional
phone Phone string
Phone number of the client's primary 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
moxie-create-client
Version
0.0.2
App
Moxie
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes