View as Markdown
Teamwork Desk icon

Teamwork Desk ACTION

Create Customer

Create a new customer See the documentation
  • Action
  • Writes data
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Teamwork Desk account once, then configure and run Create Customer 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: "teamwork_desk-create-customer",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    teamwork_desk: { authProvisionId: "apn_xxxxxxx" },
    address: "Address",
    avatarURL: "Avatar URL",
  },
})

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 Customer inputs
Property Type Description
address Address string
Customer address.
Optional
avatarURL Avatar URL string
Customer avatar URL.
Optional
companyId Company string
The company that the customer belongs to.
Required Dynamic
email Email string
The email address of the customer. Email ticket replies and chat transcriptions will be sent to the customer at this address.
Required
externalId External Id string
Customer external ID.
Optional
extraData Extra Data string
Provides a free-form reference field for additional customer information.
Optional
facebookURL Facebook URL string
The Facebook URL address of the customer.
Optional
firstName First Name string
The first name of the customer.
Optional
jobTitle Job Title string
Customer job title.
Optional
lastName Last Name string
The last name of the customer.
Optional
linkedinURL LinkedinURL string
The Linkedin URL address of the customer.
Optional
mobile Mobile string
The customer mobile.
Optional
notes Notes string
Provides a free-form reference field for additional customer information.
Optional
organization Organization string
Organization is the name of the organization that the Customer is in. This feature has been deprecated in favor of companies.
Optional
permission Permission string
Overrides the company ticket permission settings. Is only valid for customers that belongs to a company.
Optional
phone Phone string
Customer phone.
Optional
twitterHandle Twitter Handle string
The Twitter Handle of the customer.
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
teamwork_desk-create-customer
Version
0.0.3
App
Teamwork Desk
Authentication
OAuth
Read-only
No
Destructive
No
Open world
Yes