View as Markdown
Close icon

Close ACTION

Custom Action

Makes an arbitrary call to the Close API. See the documentation for all options.
  • Action
  • Writes data
  • Destructive
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Close account once, then configure and run Custom Action 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: "close-custom-action",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    close: { authProvisionId: "apn_xxxxxxx" },
    requestMethod: "Request Method",
    relativeUrl: "Relative 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.

Custom Action inputs
Property Type Description
requestMethod Request Method string
Http method to use in the request
Required
relativeUrl Relative url string
A path relative to Close API to send the request against. e.g. /lead
Required
queryString Query string string
Query string of the request
Optional
headers Headers object
Headers to be sent in the request
Optional
requestBody Request body object
Body of the request
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
close-custom-action
Version
0.1.3
App
Close
Authentication
API key
Read-only
No
Destructive
Yes
Open world
Yes