About the Pipedrive API

📘

An application programming interface (API) is a set of functionalities that a service owner provides so people can use its features and/or build software applications. An API details how a user makes requests and the responses they receive in return.

Pipedrive is a sales CRM with an intuitive RESTful API, webhooks, app extensions and API clients to help you build an app for the Pipedrive Marketplace.


Pipedrive RESTful API


Our Pipedrive RESTful API Reference can be accessed at https://developers.pipedrive.com/docs/api/v1/ where you will find a list of endpoints and their descriptions.

Calls to our API are validated against an API token or an access_token when using OAuth 2.0. Our API supports UTF-8 for character encoding. Learn how you can find and use the api_token with the practical task here.

Pipedrive Entity Relationship Diagram (ERD)Pipedrive Entity Relationship Diagram (ERD)

Pipedrive Entity Relationship Diagram (ERD)

Webhooks

Webhooks enable you to obtain real-time, programmatic notifications from Pipedrive regarding changes to your data as they happen. Instead of pulling information via our API, webhooks will push information to your endpoint.

You can create webhooks via the web app and our API. You can create a webhook programmatically by making a POST request to the webhook’s endpoint. Pipedrive will then send a notification when an event is triggered (e.g. a new Lead is added) as an HTTP post with a JSON body to the endpoint(s) you have specified. Find out more about webhooks here.

App extensions

App extensions enable apps built for the Pipedrive Marketplace to give additional value to their users. With app extensions, the app’s functionality will be available directly inside the Pipedrive platform’s UI and users will be able to interact with and see the custom functionality of your app.

This also helps to increase the visibility of your app, along with brand awareness, as the app icon will be displayed inside Pipedrive after a user has installed it. Find out more about app extensions here.

API clients

Pipedrive API clients are available on GitHub. Some of the most popular repositories include:



How Pipedrive API works


At the base of your Pipedrive account is a customer relationship management (CRM) database of your sales pipeline, processes and relationships. As organizing sales data is essential for sales activities, Pipedrive helps to organize and link your data together for better visibility through core and adjacent entities.

Core entities

Within the Pipedrive API, we have core entities that consist of multiple endpoints. These core entities represent a larger area inside Pipedrive and can be found in the left-hand side menu in the Pipedrive web app. Tied to them are adjacent entities that contain supplementary information relevant to the core entities.

Pipedrive core entities ERDPipedrive core entities ERD

Pipedrive core entities ERD

The ERD above shows how core entities are connected within Pipedrive.

  • As Leads can be converted to Deals, they are sometimes used in place of each other. For example, in the case of Activities, an Activity can be associated with either a Lead or a Deal. This goes the same for Products.
  • Persons and Organizations are considered Contacts and are often grouped together.

Mailbox, found in the Mail tab of the Pipedrive web app, is the email control hub inside Pipedrive that stores all the emails a user decides to keep a record of. Mail is tracked and associated with Persons and Deals through Pipedrive’s Email Sync and Smart Email BCC features.

[Entity]Fields endpoints allow you to obtain the near-complete schema of the respective core entities. Through these adjacent entities, you can add, update and delete main fields as well as custom fields.

Read on to find out how Leads, Deals, Persons & Organizations (Contacts), Activities, Products and Users are further connected to other core and adjacent entities.

Leads

Leads ERDLeads ERD

Leads ERD

Leads are prequalified, potential Deals that are kept in a separate inbox called the Leads inbox. Leads can subsequently be converted to Deals via the Pipedrive web app and added to a Pipeline.

Leads can have Activities, emails (Mailbox) and Notes attached to them. They can also have multiple LeadLabels to categorize them and be linked with one LeadSource to indicate where the Lead came from.

Key aspects about Leads:

  • Leads must always have one Person (Contacts) or Organization (Contacts) linked with them.
  • Leads can only have one source (LeadSource). Leads created through the API have a set source “API”.
  • Leads can only have the same custom fields (DealFields) as Deals.
  • Leads can only be converted to Deals via the Pipedrive web app.

Deals

Deals ERDDeals ERD

Deals ERD

Deals are ongoing transactions pursued with a Person or an Organization. It’s tracked and processed through Stages of a Pipeline until it’s won or lost. Deals can be converted from Leads via the Pipedrive web app.

In Pipedrive, Deals contain all actions taken towards the closing of a sale, for example, Activities, emails (Mailbox), Notes and Files, and have their own custom fields (DealFields). Products and Subscriptions can also be attached to Deals.

A Deal can be linked with either a Person or Organization (Contacts) but it must always have one Contact linked with them. As a Deal is associated with a Contact, it will pull all information from the linked Contact and likewise, associate all actions performed on the Deal with the linked Contact.

Persons & Organizations (Contacts)

Persons & Organizations (Contacts) ERDPersons & Organizations (Contacts) ERD

Persons & Organizations (Contacts) ERD

Persons (or People) are the specific customers of the sales process, while Organizations are the companies that the Persons work at. Persons and Organizations are considered Contacts and they rest in one centralized hub in the Pipedrive web app. The ERD above depicts how different core and adjacent entities can either relate to Contacts as a whole or to Persons/Organizations specifically.

Both Persons and Organizations can have Activities, Notes and Files attached to them as well as their own respective main fields and custom fields (PersonFields and OrganizationFields). Emails (Mailbox) and Products can only be linked to Persons while OrganizationRelationships can only be linked to Organizations.

Key aspects about Persons and Organizations (Contacts):

  • A Person can only be linked to one Organization.
  • A Lead or a Deal must always have a Person or an Organization linked to it.
  • Both Persons and Organizations can have multiple Deals open for them at the same time.

Activities

Activities ERDActivities ERD

Activities ERD

Activities are any actions a user does towards the closing of a sale. There are different types of Activities (ActivityTypes) that can be performed, e.g. a phone call (CallLogs), a meeting or a task. You can have custom activity types as well as custom fields (ActivityFields) for Activities. Users can schedule Activities in relation to a Person, an Organization or a Lead/Deal.

Key aspects about Activities:

  • Associating an Activity with a Deal will also associate the Activity with the Person and/or Organization linked to the Deal.
  • At the moment, Files can only be added to Activities via the API.

CallLogs
CallLogs for calls made via the Pipedrive mobile app are also considered Activities, which means they can be associated with a Deal, a Person and/or an Organization. Do note that CallLogs differ from other activities as they only receive the information needed to describe the phone call.

Products

Products ERDProducts ERD

Products ERD

Products are goods and/or services that your Company deals with. Products can have their own custom fields (ProductFields) and be attached with Deals. Persons (Contacts) can be added as Participants and Users can be added as Followers for a Product. Files can also be added to Products.

Users

Users ERDUsers ERD

Users ERD

A Company within Pipedrive is made of Users who may be grouped into Teams. The ERD above depicts how different core and adjacent entities can either relate to a Company as a whole or to Users/Teams specifically.

Goals may be related to a Company, a Team and/or a User. Users and Teams can have their own specific PermissionSets and Roles, which are a part of the Visibility groups’ feature. Users can also have their own UserSettings and UserConnections.

There are 2 main types of webhooks that can be created: webhooks related to a Company and webhooks for apps. When querying webhooks, a user can obtain the webhooks they’ve created while apps can only see and delete webhooks that have the type set as type= 'application'.


Did this page help you?