View as Markdown
JustCall icon

JustCall ACTION

Create Contact

Add a contact to your existing JustCall Sales Dialer campaign. See the documentation
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's JustCall account once, then configure and run Create Contact 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: "justcall-create-contact",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    justcall: { authProvisionId: "apn_xxxxxxx" },
    firstName: "First Name",
    lastName: "Last Name",
  },
})

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 Contact inputs
Property Type Description
firstName First Name string
First name of the contact.
Required
lastName Last Name string
Last name of the contact.
Optional
contactNumber Contact Number string
Phone number of the contact.
Required
otherNumbers Other Numbers string[]
Other phone numbers associated with the contact. Each entry should be a JSON string with label and number fields. Example: {"label": "Work", "number": "+1234567890"}
Optional
extension Extension integer
Assign an extension to the contact.
Optional
email Email string
Email address of the contact.
Optional
company Company string
Company with which the contact is associated.
Optional
address Address string
Address of the contact.
Optional
notes Notes string
Additional information added for the contact in JustCall.
Optional
acrossTeam Across Team boolean
Choose to add a contact for all agents or only for the account owner. true: Add contact for all agents. false: Add contact for account owner (Default).
Optional
agentId Agent ID string
Specify the agent ID to create contact only for a specific agent. All contacts are by default always available to the account owner along with respective agents (if any).
Optional
agentIds Agent IDs string[]
Specify the agent IDs to create contact only for specific agents.
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
justcall-create-contact
Version
0.1.0
App
JustCall
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes