Pipedrive

Create deals, manage contacts, and track activities in Pipedrive.

CRM and salesOAuth30 actionsAll integrations

On this page
  1. Connect
  2. Call it from a workflow
  3. Actions (30)
  4. create-deal
  5. create-person
  6. find-deal
  7. add-follower
  8. add-labels-to-person
  9. add-product-to-deal
  10. attach-file
  11. create-activity
  12. create-lead
  13. create-note
  14. create-organization
  15. create-product
  16. custom_api_call
  17. find-activity
  18. find-deals-associated-with-person
  19. find-lead
  20. find-notes
  21. find-organization
  22. find-person
  23. find-product
  24. find-products
  25. find-user
  26. get-note
  27. get-product
  28. update-activity
  29. update-deal
  30. update-lead
  31. update-organization
  32. update-person
  33. update-product
  34. Details

Connect

Auth type: OAuth (oauth2). The connection holds the provider's OAuth tokens. They are sealed on the server and only opened when an action runs.

  • From your agent: integrations {action: "connect", piece, credentials, env} stores the credentials for dev, prod or all. Answers name the fields, never the values.
  • Or set the integration's project secrets with the secrets tool (SLACK_BOT_TOKEN, DISCORD_WEBHOOK_URL, TELEGRAM_BOT_TOKEN, TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN …): a call uses the connection, else those secrets. integrations {action: "catalog", piece} lists which ones work.
  • Try one action now with integrations {action: "call", piece, piece_action, input}. It really sends.

Call it from a workflow

step.ctx.integrations.invoke("pipedrive", action, input) resolves with the provider's answer and rejects when Pipedrive isn't connected or refuses. Wrap it in step.run so a retry sends once. See step.ctx. Its actions run through the integration runner, which the server's operator turns on: integrations {action: "catalog", piece: "pipedrive"} says whether yours can call it.

Workflow
// workflows/notify.ts: call Pipedrive when a booking is confirmed
import { on } from "@appbricx/workflows";

export const tellPipedrive = on.transition("booking", "status", "confirmed", async (_event, step) => {
  // Recorded once: a retry doesn't send it twice. Rejects when Pipedrive isn't connected.
  const output = await step.run("Pipedrive", () =>
    step.ctx.integrations.invoke("pipedrive", "create-deal", {
      "title": "<title>"
    }),
  );
  step.ctx.log("Pipedrive answered", output);
});
Try it from your agent
{
  "name": "integrations",
  "arguments": {
    "project_id": "<project-id>",
    "action": "call",
    "piece": "pipedrive",
    "piece_action": "create-deal",
    "input": {
      "title": "<title>"
    },
    "env": "dev"
  }
}
From another backend (connector proxy)
curl -X POST "$APP_ORIGIN/__appbricx/connector-proxy/pipedrive/create-deal" \
  -H "Authorization: Bearer $APP_KEY" \
  -H "content-type: application/json" \
  -d '{"props":{"title":"<title>"}}'

Actions

create-deal

Create Deal. Creates a new deal.

Also accepted as create_deal.

InputTypeDescription
titlerequiredtextTitle
creationTimeoptionaldate-time (ISO)Creation Time
statusoptionalone of "open" | "won" | "lost" | "deleted"Status
stageIdoptionalid (picked from your account)If a stage is chosen above, the pipeline field will be ignored.
pipelineIdoptionalid (picked from your account)Pipeline
ownerIdoptionalid (picked from your account)Owner
organizationIdoptionalnumberYou can use Find Organization action to retrieve org ID.
personIdoptionalnumberYou can use Find Person action to retrieve person ID.
labelIdsoptionalids (picked from your account)Label
probabilityoptionalnumberProbability
expectedCloseDateoptionaldate-time (ISO)Please enter date in YYYY-MM-DD format.
dealValueoptionalnumberValue
dealValueCurrencyoptionaltextPlease enter currency code (e.g., "USD", "EUR").
visibleTooptionalone of "1" | "3"Visible To
customfieldsoptionalobject (depends on other props)Custom Fields

create-person

Create Person. Creates a new person.

Also accepted as create_person.

InputTypeDescription
nameoptionaltextName
ownerIdoptionalid (picked from your account)Owner
organizationIdoptionalnumberYou can use Find Organization action to retrieve org ID.
emailoptionalarrayEmail
phoneoptionalarrayPhone
labelIdsoptionalids (picked from your account)Label
firstNameoptionaltextFirst Name
lastNameoptionaltextLast Name
visibleTooptionalone of "1" | "3"Visible To
marketing_statusoptionalone of "no_consent" | "unsubscribed" | "subscribed" | "archived"Marketing opt-in status
customfieldsoptionalobject (depends on other props)Custom Fields

find-deal

Find Deal. Finds a deal by any field.

InputTypeDescription
searchFieldrequiredid (picked from your account)Field to search by
searchFieldValuerequiredobject (depends on other props)Field Value

add-follower

Add Follower. Adds a follower to a deal, person, organization or product.

InputTypeDescription
followerIdrequiredid (picked from your account)Follower
entityrequiredone of "deal" | "person" | "organization" | "product"Type of object to add the follower to.
entityIdrequiredtextID of the object to add the follower to.

add-labels-to-person

Add Labels to Person. Adds existing labels to an existing person.

InputTypeDescription
personIdrequirednumberYou can use Find Person action to retrieve person ID.
labelIdsrequiredids (picked from your account)Label

add-product-to-deal

Add Product to Deal. Adds a product to a deal.

InputTypeDescription
dealIdrequirednumberYou can use Find Deal action to retrieve deal ID.
productIdrequirednumberYou can use Find Product action to retrieve product ID.
pricerequirednumberPrice
quantityrequirednumberQuantity
discountoptionalnumberDiscount
discountTypeoptionalone of "percentage" | "amount"Discount Type
commentsoptionallong textComments
enableProductoptionalbooleanEnable Product?
taxMethodoptionalone of "exclusive" | "inclusive" | "none"Tax Method
taxPercentageoptionalnumberTax Percentage

attach-file

Attach File. Uploads a file and attaches it to a deal,person,organization,activity or product.

InputTypeDescription
filerequiredfileFile
fileNamerequiredtextFile Name
dealIdoptionalnumberYou can use Find Deal action to retrieve deal ID.
personIdoptionalnumberYou can use Find Person action to retrieve person ID.
organizationIdoptionalnumberYou can use Find Organization action to retrieve org ID.
productIdoptionalnumberYou can use Find Product action to retrieve product ID.
activityIdoptionalnumberActivity ID

create-activity

Create Activity. Creates a new activity.

InputTypeDescription
subjectrequiredtextSubject
organizationIdoptionalnumberYou can use Find Organization action to retrieve org ID.
personIdoptionalnumberYou can use Find Person action to retrieve person ID.
dealIdoptionalnumberYou can use Find Deal action to retrieve deal ID.
leadIdoptionaltextLead ID
assignTooptionalid (picked from your account)Assign To
typeoptionalid (picked from your account)Activity Type
dueDateoptionaldate-time (ISO)Please enter date in YYYY-MM-DD format.
dueTimeoptionaltextPlease enter time in HH:MM format.
durationoptionaltextPlease enter time in HH:MM format (e.g., "01:30" for 1 hour 30 minutes).
isDoneoptionalbooleanMark as Done?
busyoptionalone of "free" | "busy"Free or Busy
noteoptionallong textNote
publicDescriptionoptionallong textPublic Description

create-lead

Create Lead. Creates a new lead.

InputTypeDescription
titlerequiredtextTitle
ownerIdoptionalid (picked from your account)Owner
organizationIdoptionalnumberYou can use Find Organization action to retrieve org ID.
personIdoptionalnumberYou can use Find Person action to retrieve person ID.
labelIdsoptionalids (picked from your account)Label
expectedCloseDateoptionaldate-time (ISO)Please enter date in YYYY-MM-DD format.
visibleTooptionalone of "1" | "3"Visible To
channeloptionalid (picked from your account)Channel
leadValueoptionalnumberLead Value Amount
leadValueCurrencyoptionaltextThe currency of the lead value (e.g., "USD", "EUR").
customfieldsoptionalobject (depends on other props)Custom Fields

create-note

Create Note. Creates a new note.

InputTypeDescription
contentrequiredlong textContent
dealIdoptionalnumberYou can use Find Deal action to retrieve deal ID.
pinnedToDealoptionalbooleanPin note to deal?
personIdoptionalnumberYou can use Find Person action to retrieve person ID.
pinnedToPersonoptionalbooleanPin note to person?
organizationIdoptionalnumberYou can use Find Organization action to retrieve org ID.
pinnedToOrganizationoptionalbooleanPin note to organization?
leadIdoptionaltextLead ID
pinnedToLeadoptionalbooleanPin note to lead?

create-organization

Create Organization. Creates a new organization.

InputTypeDescription
namerequiredtextName
ownerIdoptionalid (picked from your account)Owner
visibleTooptionalone of "1" | "3"Visible To
labelIdsoptionalids (picked from your account)Label
addressoptionallong textAddress
customfieldsoptionalobject (depends on other props)Custom Fields

create-product

Create Product. Creates a new product.

InputTypeDescription
namerequiredtextName
codeoptionaltextCode
descriptionoptionallong textDescription
unitoptionaltextUnit
taxoptionalnumberTax percentage
isActiveoptionalbooleanIs Active ?
ownerIdoptionalid (picked from your account)Owner
currencyoptionaltextPlease enter currency code (e.g., "USD", "EUR").
priceoptionalnumberPrice
costoptionalnumberCost
overheadCostoptionalnumberOverhead Cost
visibleTooptionalone of "1" | "3"Visible To
customfieldsoptionalobject (depends on other props)Custom Fields

custom_api_call

Custom API Call. Make a custom API call to a specific endpoint

InputTypeDescription
urlrequiredobject (depends on other props)url
methodrequiredone of "GET" | "POST" | "PATCH" | "PUT" | "DELETE" | "HEAD"Method
headersrequiredobjectAuthorization headers are injected automatically from your connection.
queryParamsrequiredobjectQuery Parameters
body_typeoptionalone of "none" | "json" | "form_data" | "raw"Body Type
bodyoptionalobject (depends on other props)Body
response_is_binaryoptionalbooleanEnable for files like PDFs, images, etc.
failsafeoptionalbooleanNo Error on Failure
timeoutoptionalnumberTimeout (in seconds)
followRedirectsoptionalbooleanFollow redirects

find-activity

Find Activity. Finds an activity by subject.

InputTypeDescription
subjectrequiredtextSubject
exactMatchoptionalbooleanExact Match
assignTooptionalid (picked from your account)Assign To
typeoptionalid (picked from your account)Activity Type
filterIdoptionalid (picked from your account)Filter
statusoptionalone of "1" | "0"Status

find-deals-associated-with-person

Find Deals Associated With Person. Finds multiple deals related to a specific person.

InputTypeDescription
personIdrequirednumberYou can use Find Person action to retrieve person ID.

find-lead

Find Lead. Finds leads by title.

InputTypeDescription
termrequiredtextThe title to search for.
exact_matchoptionalbooleanWhen enabled, only full exact matches against the given title are returned. It is not case sensitive.

find-notes

Find Notes. Finds notes by Deal, Lead, Person, or Organization ID.

InputTypeDescription
objectTyperequiredone of "deal_id" | "lead_id" | "person_id" | "org_id"Search By
objectIdrequiredtextID

find-organization

Find Organization. Finds an organization.

InputTypeDescription
searchFieldrequiredid (picked from your account)Field to search by
searchFieldValuerequiredobject (depends on other props)Field Value

find-person

Find Person. Finds a person.

InputTypeDescription
searchFieldrequiredid (picked from your account)Field to search by
searchFieldValuerequiredobject (depends on other props)Field Value

find-product

Find Product. Finds a product by name

InputTypeDescription
searchTermrequiredtextSearch Term

find-products

Find Products. Finds a product or products by name or product code.

InputTypeDescription
fieldrequiredone of "name" | "code"Field to search by
fieldValuerequiredtextField Value

find-user

Find User. Finds a user by name or email.

InputTypeDescription
fieldrequiredone of "name" | "email"Field to search by
fieldValuerequiredtextField Value

get-note

Retrieve a Note. Finds a note by ID.

InputTypeDescription
noteIdrequirednumberNote ID

get-product

Retrieve a Product. Finds a product by ID.

InputTypeDescription
productIdrequirednumberProduct ID

update-activity

Update Activity. Updates an existing activity.

InputTypeDescription
activityIdrequirednumberActivity ID
subjectoptionaltextSubject
organizationIdoptionalnumberYou can use Find Organization action to retrieve org ID.
personIdoptionalnumberYou can use Find Person action to retrieve person ID.
dealIdoptionalnumberYou can use Find Deal action to retrieve deal ID.
leadIdoptionaltextLead ID
assignTooptionalid (picked from your account)Assign To
typeoptionalid (picked from your account)Activity Type
dueDateoptionaldate-time (ISO)Please enter date in YYYY-MM-DD format.
dueTimeoptionaltextPlease enter time in HH:MM format.
durationoptionaltextPlease enter time in HH:MM format (e.g., "01:30" for 1 hour 30 minutes).
isDoneoptionalbooleanMark as Done?
busyoptionalone of "free" | "busy"Free or Busy
noteoptionallong textNote
publicDescriptionoptionallong textPublic Description

update-deal

Update Deal. Updates an existing deal.

InputTypeDescription
dealIdrequirednumberYou can use Find Deal action to retrieve deal ID.
titleoptionaltextTitle
creationTimeoptionaldate-time (ISO)Creation Time
statusoptionalone of "open" | "won" | "lost" | "deleted"Status
stageIdoptionalid (picked from your account)If a stage is chosen above, the pipeline field will be ignored.
pipelineIdoptionalid (picked from your account)Pipeline
ownerIdoptionalid (picked from your account)Owner
organizationIdoptionalnumberYou can use Find Organization action to retrieve org ID.
personIdoptionalnumberYou can use Find Person action to retrieve person ID.
labelIdsoptionalids (picked from your account)Label
probabilityoptionalnumberProbability
expectedCloseDateoptionaldate-time (ISO)Please enter date in YYYY-MM-DD format.
dealValueoptionalnumberValue
dealValueCurrencyoptionaltextPlease enter currency code (e.g., "USD", "EUR").
visibleTooptionalone of "1" | "3"Visible To
customfieldsoptionalobject (depends on other props)Custom Fields

update-lead

Update Lead. Updates an existing lead.

InputTypeDescription
leadIdrequiredtextLead ID
titleoptionaltextTitle
ownerIdoptionalid (picked from your account)Owner
organizationIdoptionalnumberYou can use Find Organization action to retrieve org ID.
personIdoptionalnumberYou can use Find Person action to retrieve person ID.
labelIdsoptionalids (picked from your account)Label
expectedCloseDateoptionaldate-time (ISO)Please enter date in YYYY-MM-DD format.
visibleTooptionalone of "1" | "3"Visible To
channeloptionalid (picked from your account)Channel
leadValueoptionalnumberLead Value Amount
leadValueCurrencyoptionaltextThe currency of the lead value (e.g., "USD", "EUR").
customfieldsoptionalobject (depends on other props)Custom Fields

update-organization

Update Organization. Updates an existing organization.

InputTypeDescription
organizationIdrequirednumberYou can use Find Organization action to retrieve org ID.
nameoptionaltextName
ownerIdoptionalid (picked from your account)Owner
visibleTooptionalone of "1" | "3"Visible To
labelIdsoptionalids (picked from your account)Label
addressoptionallong textAddress
customfieldsoptionalobject (depends on other props)Custom Fields

update-person

Update Person. Updates an existing person.

InputTypeDescription
personIdrequirednumberYou can use Find Person action to retrieve person ID.
nameoptionaltextName
ownerIdoptionalid (picked from your account)Owner
organizationIdoptionalnumberYou can use Find Organization action to retrieve org ID.
emailoptionalarrayEmail
phoneoptionalarrayPhone
labelIdsoptionalids (picked from your account)Label
firstNameoptionaltextFirst Name
lastNameoptionaltextLast Name
visibleTooptionalone of "1" | "3"Visible To
marketing_statusoptionalone of "no_consent" | "unsubscribed" | "subscribed" | "archived"Marketing opt-in status
customfieldsoptionalobject (depends on other props)Custom Fields

update-product

Update Product. Updates an existing product.

InputTypeDescription
idrequiredtextProduct ID
nameoptionaltextName
codeoptionaltextCode
descriptionoptionallong textDescription
unitoptionaltextUnit
taxoptionalnumberTax percentage
isActiveoptionalbooleanIs Active ?
ownerIdoptionalid (picked from your account)Owner
currencyoptionaltextPlease enter currency code (e.g., "USD", "EUR").
priceoptionalnumberPrice
costoptionalnumberCost
overheadCostoptionalnumberOverhead Cost
visibleTooptionalone of "1" | "3"Visible To
customfieldsoptionalobject (depends on other props)Custom Fields

Details

Id
pipedrive
Category
CRM and sales
Tags
crm, sales, pipeline, deals
Package
@activepieces/piece-pipedrive@0.8.6
Runs
Through the integration runner