View as Markdown
Apollo icon

Apollo ACTION

Create or Update Account

Creates a new account (company) or updates an existing one in your Apollo CRM. To create, omit accountId and provide at least a name. To update, provide the accountId and any fields to change. Use Search Accounts to find existing accounts before updating. Use List Metadata (type account_stages) to discover valid stage IDs. See the documentation
  • Action
  • Writes data
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Apollo account once, then configure and run Create or Update Account 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: "apollo_io_oauth-create-or-update-account",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    apollo_io_oauth: { authProvisionId: "apn_xxxxxxx" },
    accountId: "Account ID",
    name: "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 or Update Account inputs
Property Type Description
accountId Account ID string
The ID of an existing account to update. Omit this to create a new account.
Optional
name Name string
The name of the account/company. Required when creating.
Optional
domain Domain string
The company's domain. Example: "acme.com". Apollo uses this for enrichment.
Optional
phone Phone string
The company's phone number.
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
apollo_io_oauth-create-or-update-account
Version
0.0.2
App
Apollo
Authentication
OAuth
Read-only
No
Destructive
No
Open world
Yes