Latest Threat ResearchGlassWorm Loader Hits Open VSX via Developer Account Compromise.Details
Socket
Book a DemoInstallSign in
Socket

pipedrive

Package Overview
Dependencies
Maintainers
3
Versions
280
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pipedrive

Pipedrive REST client for NodeJS

Source
npmnpm
Version
23.4.3
Version published
Weekly downloads
47K
14.48%
Maintainers
3
Weekly downloads
 
Created
Source

Pipedrive client for NodeJS based apps

Pipedrive is a sales pipeline software that gets you organized. It's a powerful sales CRM with effortless sales pipeline management. See www.pipedrive.com for details.

This is the official Pipedrive API wrapper-client for NodeJS based apps, distributed by Pipedrive Inc freely under the MIT licence. It provides convenient access to the Pipedrive API, allowing you to operate with objects such as Deals, Persons, Organizations, Products and much more.

Table of Contents

Installation

npm install pipedrive

API Reference

The Pipedrive RESTful API Reference can be found at https://developers.pipedrive.com/docs/api/v1. Pipedrive API’s core concepts for its usage can be found in our Developer documentation.

How to use it

Warning

The pipedrive.ApiClient.instance has been deprecated.

Please, initialise a new pipedrive.ApiClient() instance separately for each request instead.

With a pre-set API token

You can retrieve the api_token from your existing Pipedrive account’s settings page. A step-by-step guide is available here.

const express = require('express');
const app = express();
const pipedrive = require('pipedrive');

const PORT = 1800;

app.listen(PORT, () => {
  console.log(`Listening on port ${PORT}`);
});

app.get('/', async (req, res) => {
  try {
    const apiClient = new pipedrive.ApiClient();

    // Configure API key authorization: apiToken
    let apiToken = apiClient.authentications.api_key;
    apiToken.apiKey = 'YOUR_API_TOKEN_HERE';

    const api = new pipedrive.DealsApi(apiClient);
    const deals = await api.getDeals();

    return res.send(deals);
  } catch (error) {
    console.error('Error:', error);

    res.status(500).json({
      error: error.message,
    });
  }
});


With OAuth2

If you would like to use an OAuth access token for making API calls, then make sure the API key described in the previous section is not set or is set to an empty string. If both API token and OAuth access token are set, then the API token takes precedence.

To set up authentication in the API client, you need the following information. You can receive the necessary client tokens through a Sandbox account (get it here) and generate the tokens (detailed steps here).

ParameterDescription
clientIdOAuth 2 Client ID
clientSecretOAuth 2 Client Secret
redirectUriOAuth 2 Redirection endpoint or Callback Uri

Next, initialize the API client as follows:

const pipedrive = require('pipedrive');

const apiClient = new pipedrive.ApiClient();

// Configuration parameters and credentials
let oauth2 = apiClient.authentications.oauth2;
oauth2.clientId = 'clientId'; // OAuth 2 Client ID
oauth2.clientSecret = 'clientSecret'; // OAuth 2 Client Secret
oauth2.redirectUri = 'redirectUri'; // OAuth 2 Redirection endpoint or Callback Uri

You must now authorize the client.

Authorizing your client

Your application must obtain user authorization before it can execute an endpoint call. The SDK uses OAuth 2.0 authorization to obtain a user's consent to perform an API request on the user's behalf. Details about how the OAuth2.0 flow works in Pipedrive, how long tokens are valid, and more, can be found here.

To obtain user's consent, you must redirect the user to the authorization page. The buildAuthorizationUrl() method creates the URL to the authorization page.

const authUrl = apiClient.buildAuthorizationUrl();
// open up the authUrl in the browser

2. Handle the OAuth server response

Once the user responds to the consent request, the OAuth 2.0 server responds to your application's access request by using the URL specified in the request.

If the user approves the request, the authorization code will be sent as the code query string:

https://example.com/oauth/callback?code=XXXXXXXXXXXXXXXXXXXXXXXXX

If the user does not approve the request, the response contains an error query string:

https://example.com/oauth/callback?error=access_denied

3. Authorize the client using the code

After the server receives the code, it can exchange this for an access token. The access token is an object containing information for authorizing the client and refreshing the token itself. In the API client all the access token fields are held separately in the authentications.oauth2 object. Additionally access token expiration time as an authentications.oauth2.expiresAt field is calculated. It is measured in the number of milliseconds elapsed since January 1, 1970 00:00:00 UTC.

const tokenPromise = apiClient.authorize(code);

The Node.js SDK supports only promises. So, the authorize call returns a promise.

Refreshing token

Access tokens may expire after sometime. To extend its lifetime, you must refresh the token.

const refreshPromise = apiClient.refreshToken();
refreshPromise.then(() => {
    // token has been refreshed
} , (exception) => {
    // error occurred, exception will be of type src/exceptions/OAuthProviderException
});

If the access token expires, the SDK will attempt to automatically refresh it before the next endpoint call which requires authentication.

Storing an access token for reuse

It is recommended that you store the access token for reuse.

This code snippet stores the access token in a session for an express application. It uses the cookie-parser and cookie-session npm packages for storing the access token.

const express = require('express');
const cookieParser = require('cookie-parser');
const cookieSession = require('cookie-session');

const app = express();
app.use(cookieParser());
app.use(cookieSession({
    name: 'session',
    keys: ['key1']
}));

const lib = require('pipedrive');
...
// store access token in the session
// note that this is only the access token field value not the whole token object
req.session.accessToken = apiClient.authentications.oauth2.accessToken;

However, since the SDK will attempt to automatically refresh the access token when it expires, it is recommended that you register a token update callback to detect any change to the access token.

apiClient.authentications.oauth2.tokenUpdateCallback = function(token) {
    // getting the updated token
    // here the token is an object, you can store the whole object or extract fields into separate values
    req.session.token = token;
}

The token update callback will be fired upon authorization as well as token refresh.

To authorize a client from a stored access token, just set the access token in api client oauth2 authentication object along with the other configuration parameters before making endpoint calls:

NB! This code only supports one client and should not be used as production code. Please store a separate access token for each client.

const express = require('express');
const cookieParser = require('cookie-parser');
const cookieSession = require('cookie-session');

const app = express();
app.use(cookieParser());
app.use(cookieSession({
    name: 'session',
    keys: ['key1']
}));

const lib = require('pipedrive');

app.get('/', (req, res) => {
    apiClient.authentications.oauth2.accessToken = req.session.accessToken; // the access token stored in the session
});

Complete example

This example demonstrates an express application (which uses cookie-parser and cookie-session) for handling session persistence.

In this example, there are 2 endpoints. The base endpoint '/' first checks if the token is stored in the session. If it is, API endpoints can be called using the corresponding SDK controllers.

However, if the token is not set in the session, then authorization URL is built and opened up. The response comes back at the '/callback' endpoint, which uses the code to authorize the client and store the token in the session. It then redirects back to the base endpoint for calling endpoints from the SDK.

const express = require('express');
const app = express();
const cookieParser = require('cookie-parser');
const cookieSession = require('cookie-session');

app.use(cookieParser());
app.use(
  cookieSession({
    name: 'session',
    keys: ['key1'],
  }),
);
const PORT = 1800;

const pipedrive = require('pipedrive');

app.listen(PORT, () => {
  console.log(`Listening on port ${PORT}`);
});

app.get('/', async (req, res) => {
  const apiClient = new pipedrive.ApiClient();

  let oauth2 = apiClient.authentications.oauth2;
  oauth2.clientId = 'clientId'; // OAuth 2 Client ID
  oauth2.clientSecret = 'clientSecret'; // OAuth 2 Client Secret
  oauth2.redirectUri = 'http://localhost:1800/callback'; // OAuth 2 Redirection endpoint or Callback Uri

  if (
    req.session.accessToken !== null &&
    req.session.accessToken !== undefined
  ) {
    // token is already set in the session
    // now make API calls as required
    // client will automatically refresh the token when it expires and call the token update callback
    const api = new pipedrive.DealsApi(apiClient);
    const deals = await api.getDeals();

    res.send(deals);
  } else {
    const authUrl = apiClient.buildAuthorizationUrl();

    res.redirect(authUrl);
  }
});

app.get('/callback', (req, res) => {
  const authCode = req.query.code;
  const promise = apiClient.authorize(authCode);

  promise.then(
    () => {
      req.session.accessToken = apiClient.authentications.oauth2.accessToken;
      res.redirect('/');
    },
    (exception) => {
      // error occurred, exception will be of type src/exceptions/OAuthProviderException
    },
  );
});



Documentation for Authorization

api_key

  • Type: API key
  • API key parameter name: api_token
  • Location: URL query string

basic_authentication

  • Type: HTTP basic authentication

oauth2

  • Type: OAuth
  • Flow: accessCode
  • Authorization URL: https://oauth.pipedrive.com/oauth/authorize
  • Scopes:
    • base: Read settings of the authorized user and currencies in an account
    • deals:read: Read most of the data about deals and related entities - deal fields, products, followers, participants; all notes, files, filters, pipelines, stages, and statistics. Does not include access to activities (except the last and next activity related to a deal)
    • deals:full: Create, read, update and delete deals, its participants and followers; all files, notes, and filters. It also includes read access to deal fields, pipelines, stages, and statistics. Does not include access to activities (except the last and next activity related to a deal)
    • mail:read: Read mail threads and messages
    • mail:full: Read, update and delete mail threads. Also grants read access to mail messages
    • activities:read: Read activities, its fields and types; all files and filters
    • activities:full: Create, read, update and delete activities and all files and filters. Also includes read access to activity fields and types
    • contacts:read: Read the data about persons and organizations, their related fields and followers; also all notes, files, filters
    • contacts:full: Create, read, update and delete persons and organizations and their followers; all notes, files, filters. Also grants read access to contacts-related fields
    • products:read: Read products, its fields, files, followers and products connected to a deal
    • products:full: Create, read, update and delete products and its fields; add products to deals
    • projects:read: Read projects and its fields, tasks and project templates
    • projects:full: Create, read, update and delete projects and its fields; add projects templates and project related tasks
    • users:read: Read data about users (people with access to a Pipedrive account), their permissions, roles and followers
    • recents:read: Read all recent changes occurred in an account. Includes data about activities, activity types, deals, files, filters, notes, persons, organizations, pipelines, stages, products and users
    • search:read: Search across the account for deals, persons, organizations, files and products, and see details about the returned results
    • admin: Allows to do many things that an administrator can do in a Pipedrive company account - create, read, update and delete pipelines and its stages; deal, person and organization fields; activity types; users and permissions, etc. It also allows the app to create webhooks and fetch and delete webhooks that are created by the app
    • leads:read: Read data about leads and lead labels
    • leads:full: Create, read, update and delete leads and lead labels
    • phone-integration: Enables advanced call integration features like logging call duration and other metadata, and play call recordings inside Pipedrive
    • goals:read: Read data on all goals
    • goals:full: Create, read, update and delete goals
    • video-calls: Allows application to register as a video call integration provider and create conference links
    • messengers-integration: Allows application to register as a messengers integration provider and allows them to deliver incoming messages and their statuses

Documentation for API Endpoints

All URIs are relative to https://api.pipedrive.com/v1

Code examples are available through the links in the list below or on the Pipedrive Developers Tutorials page

ClassMethodHTTP requestDescription
Pipedrive.ActivitiesApiaddActivityPOST /activitiesAdd an activity
Pipedrive.ActivitiesApideleteActivitiesDELETE /activitiesDelete multiple activities in bulk
Pipedrive.ActivitiesApideleteActivityDELETE /activities/{id}Delete an activity
Pipedrive.ActivitiesApigetActivitiesGET /activitiesGet all activities assigned to a particular user
Pipedrive.ActivitiesApigetActivitiesCollectionGET /activities/collectionGet all activities (BETA)
Pipedrive.ActivitiesApigetActivityGET /activities/{id}Get details of an activity
Pipedrive.ActivitiesApiupdateActivityPUT /activities/{id}Update an activity
Pipedrive.ActivityFieldsApigetActivityFieldsGET /activityFieldsGet all activity fields
Pipedrive.ActivityTypesApiaddActivityTypePOST /activityTypesAdd new activity type
Pipedrive.ActivityTypesApideleteActivityTypeDELETE /activityTypes/{id}Delete an activity type
Pipedrive.ActivityTypesApideleteActivityTypesDELETE /activityTypesDelete multiple activity types in bulk
Pipedrive.ActivityTypesApigetActivityTypesGET /activityTypesGet all activity types
Pipedrive.ActivityTypesApiupdateActivityTypePUT /activityTypes/{id}Update an activity type
Pipedrive.BillingApigetCompanyAddonsGET /billing/subscriptions/addonsGet all add-ons for a single company
Pipedrive.CallLogsApiaddCallLogPOST /callLogsAdd a call log
Pipedrive.CallLogsApiaddCallLogAudioFilePOST /callLogs/{id}/recordingsAttach an audio file to the call log
Pipedrive.CallLogsApideleteCallLogDELETE /callLogs/{id}Delete a call log
Pipedrive.CallLogsApigetCallLogGET /callLogs/{id}Get details of a call log
Pipedrive.CallLogsApigetUserCallLogsGET /callLogsGet all call logs assigned to a particular user
Pipedrive.ChannelsApiaddChannelPOST /channelsAdd a channel
Pipedrive.ChannelsApideleteChannelDELETE /channels/{id}Delete a channel
Pipedrive.ChannelsApideleteConversationDELETE /channels/{channel-id}/conversations/{conversation-id}Delete a conversation
Pipedrive.ChannelsApireceiveMessagePOST /channels/messages/receiveReceives an incoming message
Pipedrive.CurrenciesApigetCurrenciesGET /currenciesGet all supported currencies
Pipedrive.DealFieldsApiaddDealFieldPOST /dealFieldsAdd a new deal field
Pipedrive.DealFieldsApideleteDealFieldDELETE /dealFields/{id}Delete a deal field
Pipedrive.DealFieldsApideleteDealFieldsDELETE /dealFieldsDelete multiple deal fields in bulk
Pipedrive.DealFieldsApigetDealFieldGET /dealFields/{id}Get one deal field
Pipedrive.DealFieldsApigetDealFieldsGET /dealFieldsGet all deal fields
Pipedrive.DealFieldsApiupdateDealFieldPUT /dealFields/{id}Update a deal field
Pipedrive.DealsApiaddDealPOST /dealsAdd a deal
Pipedrive.DealsApiaddDealFollowerPOST /deals/{id}/followersAdd a follower to a deal
Pipedrive.DealsApiaddDealParticipantPOST /deals/{id}/participantsAdd a participant to a deal
Pipedrive.DealsApiaddDealProductPOST /deals/{id}/productsAdd a product to a deal
Pipedrive.DealsApideleteDealDELETE /deals/{id}Delete a deal
Pipedrive.DealsApideleteDealFollowerDELETE /deals/{id}/followers/{follower_id}Delete a follower from a deal
Pipedrive.DealsApideleteDealParticipantDELETE /deals/{id}/participants/{deal_participant_id}Delete a participant from a deal
Pipedrive.DealsApideleteDealProductDELETE /deals/{id}/products/{product_attachment_id}Delete an attached product from a deal
Pipedrive.DealsApideleteDealsDELETE /dealsDelete multiple deals in bulk
Pipedrive.DealsApiduplicateDealPOST /deals/{id}/duplicateDuplicate deal
Pipedrive.DealsApigetDealGET /deals/{id}Get details of a deal
Pipedrive.DealsApigetDealActivitiesGET /deals/{id}/activitiesList activities associated with a deal
Pipedrive.DealsApigetDealChangelogGET /deals/{id}/changelogList updates about deal field values
Pipedrive.DealsApigetDealFilesGET /deals/{id}/filesList files attached to a deal
Pipedrive.DealsApigetDealFollowersGET /deals/{id}/followersList followers of a deal
Pipedrive.DealsApigetDealMailMessagesGET /deals/{id}/mailMessagesList mail messages associated with a deal
Pipedrive.DealsApigetDealParticipantsGET /deals/{id}/participantsList participants of a deal
Pipedrive.DealsApigetDealParticipantsChangelogGET /deals/{id}/participantsChangelogList updates about participants of a deal
Pipedrive.DealsApigetDealPersonsGET /deals/{id}/personsList all persons associated with a deal
Pipedrive.DealsApigetDealProductsGET /deals/{id}/productsList products attached to a deal
Pipedrive.DealsApigetDealUpdatesGET /deals/{id}/flowList updates about a deal
Pipedrive.DealsApigetDealUsersGET /deals/{id}/permittedUsersList permitted users
Pipedrive.DealsApigetDealsGET /dealsGet all deals
Pipedrive.DealsApigetDealsCollectionGET /deals/collectionGet all deals (BETA)
Pipedrive.DealsApigetDealsSummaryGET /deals/summaryGet deals summary
Pipedrive.DealsApigetDealsTimelineGET /deals/timelineGet deals timeline
Pipedrive.DealsApimergeDealsPUT /deals/{id}/mergeMerge two deals
Pipedrive.DealsApisearchDealsGET /deals/searchSearch deals
Pipedrive.DealsApiupdateDealPUT /deals/{id}Update a deal
Pipedrive.DealsApiupdateDealProductPUT /deals/{id}/products/{product_attachment_id}Update the product attached to a deal
Pipedrive.FilesApiaddFilePOST /filesAdd file
Pipedrive.FilesApiaddFileAndLinkItPOST /files/remoteCreate a remote file and link it to an item
Pipedrive.FilesApideleteFileDELETE /files/{id}Delete a file
Pipedrive.FilesApidownloadFileGET /files/{id}/downloadDownload one file
Pipedrive.FilesApigetFileGET /files/{id}Get one file
Pipedrive.FilesApigetFilesGET /filesGet all files
Pipedrive.FilesApilinkFileToItemPOST /files/remoteLinkLink a remote file to an item
Pipedrive.FilesApiupdateFilePUT /files/{id}Update file details
Pipedrive.FiltersApiaddFilterPOST /filtersAdd a new filter
Pipedrive.FiltersApideleteFilterDELETE /filters/{id}Delete a filter
Pipedrive.FiltersApideleteFiltersDELETE /filtersDelete multiple filters in bulk
Pipedrive.FiltersApigetFilterGET /filters/{id}Get one filter
Pipedrive.FiltersApigetFilterHelpersGET /filters/helpersGet all filter helpers
Pipedrive.FiltersApigetFiltersGET /filtersGet all filters
Pipedrive.FiltersApiupdateFilterPUT /filters/{id}Update filter
Pipedrive.GoalsApiaddGoalPOST /goalsAdd a new goal
Pipedrive.GoalsApideleteGoalDELETE /goals/{id}Delete existing goal
Pipedrive.GoalsApigetGoalResultGET /goals/{id}/resultsGet result of a goal
Pipedrive.GoalsApigetGoalsGET /goals/findFind goals
Pipedrive.GoalsApiupdateGoalPUT /goals/{id}Update existing goal
Pipedrive.ItemSearchApisearchItemGET /itemSearchPerform a search from multiple item types
Pipedrive.ItemSearchApisearchItemByFieldGET /itemSearch/fieldPerform a search using a specific field from an item type
Pipedrive.LeadLabelsApiaddLeadLabelPOST /leadLabelsAdd a lead label
Pipedrive.LeadLabelsApideleteLeadLabelDELETE /leadLabels/{id}Delete a lead label
Pipedrive.LeadLabelsApigetLeadLabelsGET /leadLabelsGet all lead labels
Pipedrive.LeadLabelsApiupdateLeadLabelPATCH /leadLabels/{id}Update a lead label
Pipedrive.LeadSourcesApigetLeadSourcesGET /leadSourcesGet all lead sources
Pipedrive.LeadsApiaddLeadPOST /leadsAdd a lead
Pipedrive.LeadsApideleteLeadDELETE /leads/{id}Delete a lead
Pipedrive.LeadsApigetLeadGET /leads/{id}Get one lead
Pipedrive.LeadsApigetLeadUsersGET /leads/{id}/permittedUsersList permitted users
Pipedrive.LeadsApigetLeadsGET /leadsGet all leads
Pipedrive.LeadsApisearchLeadsGET /leads/searchSearch leads
Pipedrive.LeadsApiupdateLeadPATCH /leads/{id}Update a lead
Pipedrive.LegacyTeamsApiaddTeamPOST /legacyTeamsAdd a new team
Pipedrive.LegacyTeamsApiaddTeamUserPOST /legacyTeams/{id}/usersAdd users to a team
Pipedrive.LegacyTeamsApideleteTeamUserDELETE /legacyTeams/{id}/usersDelete users from a team
Pipedrive.LegacyTeamsApigetTeamGET /legacyTeams/{id}Get a single team
Pipedrive.LegacyTeamsApigetTeamUsersGET /legacyTeams/{id}/usersGet all users in a team
Pipedrive.LegacyTeamsApigetTeamsGET /legacyTeamsGet all teams
Pipedrive.LegacyTeamsApigetUserTeamsGET /legacyTeams/user/{id}Get all teams of a user
Pipedrive.LegacyTeamsApiupdateTeamPUT /legacyTeams/{id}Update a team
Pipedrive.MailboxApideleteMailThreadDELETE /mailbox/mailThreads/{id}Delete mail thread
Pipedrive.MailboxApigetMailMessageGET /mailbox/mailMessages/{id}Get one mail message
Pipedrive.MailboxApigetMailThreadGET /mailbox/mailThreads/{id}Get one mail thread
Pipedrive.MailboxApigetMailThreadMessagesGET /mailbox/mailThreads/{id}/mailMessagesGet all mail messages of mail thread
Pipedrive.MailboxApigetMailThreadsGET /mailbox/mailThreadsGet mail threads
Pipedrive.MailboxApiupdateMailThreadDetailsPUT /mailbox/mailThreads/{id}Update mail thread details
Pipedrive.MeetingsApideleteUserProviderLinkDELETE /meetings/userProviderLinks/{id}Delete the link between a user and the installed video call integration
Pipedrive.MeetingsApisaveUserProviderLinkPOST /meetings/userProviderLinksLink a user with the installed video call integration
Pipedrive.NoteFieldsApigetNoteFieldsGET /noteFieldsGet all note fields
Pipedrive.NotesApiaddNotePOST /notesAdd a note
Pipedrive.NotesApiaddNoteCommentPOST /notes/{id}/commentsAdd a comment to a note
Pipedrive.NotesApideleteCommentDELETE /notes/{id}/comments/{commentId}Delete a comment related to a note
Pipedrive.NotesApideleteNoteDELETE /notes/{id}Delete a note
Pipedrive.NotesApigetCommentGET /notes/{id}/comments/{commentId}Get one comment
Pipedrive.NotesApigetNoteGET /notes/{id}Get one note
Pipedrive.NotesApigetNoteCommentsGET /notes/{id}/commentsGet all comments for a note
Pipedrive.NotesApigetNotesGET /notesGet all notes
Pipedrive.NotesApiupdateCommentForNotePUT /notes/{id}/comments/{commentId}Update a comment related to a note
Pipedrive.NotesApiupdateNotePUT /notes/{id}Update a note
Pipedrive.OrganizationFieldsApiaddOrganizationFieldPOST /organizationFieldsAdd a new organization field
Pipedrive.OrganizationFieldsApideleteOrganizationFieldDELETE /organizationFields/{id}Delete an organization field
Pipedrive.OrganizationFieldsApideleteOrganizationFieldsDELETE /organizationFieldsDelete multiple organization fields in bulk
Pipedrive.OrganizationFieldsApigetOrganizationFieldGET /organizationFields/{id}Get one organization field
Pipedrive.OrganizationFieldsApigetOrganizationFieldsGET /organizationFieldsGet all organization fields
Pipedrive.OrganizationFieldsApiupdateOrganizationFieldPUT /organizationFields/{id}Update an organization field
Pipedrive.OrganizationRelationshipsApiaddOrganizationRelationshipPOST /organizationRelationshipsCreate an organization relationship
Pipedrive.OrganizationRelationshipsApideleteOrganizationRelationshipDELETE /organizationRelationships/{id}Delete an organization relationship
Pipedrive.OrganizationRelationshipsApigetOrganizationRelationshipGET /organizationRelationships/{id}Get one organization relationship
Pipedrive.OrganizationRelationshipsApigetOrganizationRelationshipsGET /organizationRelationshipsGet all relationships for organization
Pipedrive.OrganizationRelationshipsApiupdateOrganizationRelationshipPUT /organizationRelationships/{id}Update an organization relationship
Pipedrive.OrganizationsApiaddOrganizationPOST /organizationsAdd an organization
Pipedrive.OrganizationsApiaddOrganizationFollowerPOST /organizations/{id}/followersAdd a follower to an organization
Pipedrive.OrganizationsApideleteOrganizationDELETE /organizations/{id}Delete an organization
Pipedrive.OrganizationsApideleteOrganizationFollowerDELETE /organizations/{id}/followers/{follower_id}Delete a follower from an organization
Pipedrive.OrganizationsApideleteOrganizationsDELETE /organizationsDelete multiple organizations in bulk
Pipedrive.OrganizationsApigetOrganizationGET /organizations/{id}Get details of an organization
Pipedrive.OrganizationsApigetOrganizationActivitiesGET /organizations/{id}/activitiesList activities associated with an organization
Pipedrive.OrganizationsApigetOrganizationChangelogGET /organizations/{id}/changelogList updates about organization field values
Pipedrive.OrganizationsApigetOrganizationDealsGET /organizations/{id}/dealsList deals associated with an organization
Pipedrive.OrganizationsApigetOrganizationFilesGET /organizations/{id}/filesList files attached to an organization
Pipedrive.OrganizationsApigetOrganizationFollowersGET /organizations/{id}/followersList followers of an organization
Pipedrive.OrganizationsApigetOrganizationMailMessagesGET /organizations/{id}/mailMessagesList mail messages associated with an organization
Pipedrive.OrganizationsApigetOrganizationPersonsGET /organizations/{id}/personsList persons of an organization
Pipedrive.OrganizationsApigetOrganizationUpdatesGET /organizations/{id}/flowList updates about an organization
Pipedrive.OrganizationsApigetOrganizationUsersGET /organizations/{id}/permittedUsersList permitted users
Pipedrive.OrganizationsApigetOrganizationsGET /organizationsGet all organizations
Pipedrive.OrganizationsApigetOrganizationsCollectionGET /organizations/collectionGet all organizations (BETA)
Pipedrive.OrganizationsApimergeOrganizationsPUT /organizations/{id}/mergeMerge two organizations
Pipedrive.OrganizationsApisearchOrganizationGET /organizations/searchSearch organizations
Pipedrive.OrganizationsApiupdateOrganizationPUT /organizations/{id}Update an organization
Pipedrive.PermissionSetsApigetPermissionSetGET /permissionSets/{id}Get one permission set
Pipedrive.PermissionSetsApigetPermissionSetAssignmentsGET /permissionSets/{id}/assignmentsList permission set assignments
Pipedrive.PermissionSetsApigetPermissionSetsGET /permissionSetsGet all permission sets
Pipedrive.PersonFieldsApiaddPersonFieldPOST /personFieldsAdd a new person field
Pipedrive.PersonFieldsApideletePersonFieldDELETE /personFields/{id}Delete a person field
Pipedrive.PersonFieldsApideletePersonFieldsDELETE /personFieldsDelete multiple person fields in bulk
Pipedrive.PersonFieldsApigetPersonFieldGET /personFields/{id}Get one person field
Pipedrive.PersonFieldsApigetPersonFieldsGET /personFieldsGet all person fields
Pipedrive.PersonFieldsApiupdatePersonFieldPUT /personFields/{id}Update a person field
Pipedrive.PersonsApiaddPersonPOST /personsAdd a person
Pipedrive.PersonsApiaddPersonFollowerPOST /persons/{id}/followersAdd a follower to a person
Pipedrive.PersonsApiaddPersonPicturePOST /persons/{id}/pictureAdd person picture
Pipedrive.PersonsApideletePersonDELETE /persons/{id}Delete a person
Pipedrive.PersonsApideletePersonFollowerDELETE /persons/{id}/followers/{follower_id}Delete a follower from a person
Pipedrive.PersonsApideletePersonPictureDELETE /persons/{id}/pictureDelete person picture
Pipedrive.PersonsApideletePersonsDELETE /personsDelete multiple persons in bulk
Pipedrive.PersonsApigetPersonGET /persons/{id}Get details of a person
Pipedrive.PersonsApigetPersonActivitiesGET /persons/{id}/activitiesList activities associated with a person
Pipedrive.PersonsApigetPersonChangelogGET /persons/{id}/changelogList updates about person field values
Pipedrive.PersonsApigetPersonDealsGET /persons/{id}/dealsList deals associated with a person
Pipedrive.PersonsApigetPersonFilesGET /persons/{id}/filesList files attached to a person
Pipedrive.PersonsApigetPersonFollowersGET /persons/{id}/followersList followers of a person
Pipedrive.PersonsApigetPersonMailMessagesGET /persons/{id}/mailMessagesList mail messages associated with a person
Pipedrive.PersonsApigetPersonProductsGET /persons/{id}/productsList products associated with a person
Pipedrive.PersonsApigetPersonUpdatesGET /persons/{id}/flowList updates about a person
Pipedrive.PersonsApigetPersonUsersGET /persons/{id}/permittedUsersList permitted users
Pipedrive.PersonsApigetPersonsGET /personsGet all persons
Pipedrive.PersonsApigetPersonsCollectionGET /persons/collectionGet all persons (BETA)
Pipedrive.PersonsApimergePersonsPUT /persons/{id}/mergeMerge two persons
Pipedrive.PersonsApisearchPersonsGET /persons/searchSearch persons
Pipedrive.PersonsApiupdatePersonPUT /persons/{id}Update a person
Pipedrive.PipelinesApiaddPipelinePOST /pipelinesAdd a new pipeline
Pipedrive.PipelinesApideletePipelineDELETE /pipelines/{id}Delete a pipeline
Pipedrive.PipelinesApigetPipelineGET /pipelines/{id}Get one pipeline
Pipedrive.PipelinesApigetPipelineConversionStatisticsGET /pipelines/{id}/conversion_statisticsGet deals conversion rates in pipeline
Pipedrive.PipelinesApigetPipelineDealsGET /pipelines/{id}/dealsGet deals in a pipeline
Pipedrive.PipelinesApigetPipelineMovementStatisticsGET /pipelines/{id}/movement_statisticsGet deals movements in pipeline
Pipedrive.PipelinesApigetPipelinesGET /pipelinesGet all pipelines
Pipedrive.PipelinesApiupdatePipelinePUT /pipelines/{id}Update a pipeline
Pipedrive.ProductFieldsApiaddProductFieldPOST /productFieldsAdd a new product field
Pipedrive.ProductFieldsApideleteProductFieldDELETE /productFields/{id}Delete a product field
Pipedrive.ProductFieldsApideleteProductFieldsDELETE /productFieldsDelete multiple product fields in bulk
Pipedrive.ProductFieldsApigetProductFieldGET /productFields/{id}Get one product field
Pipedrive.ProductFieldsApigetProductFieldsGET /productFieldsGet all product fields
Pipedrive.ProductFieldsApiupdateProductFieldPUT /productFields/{id}Update a product field
Pipedrive.ProductsApiaddProductPOST /productsAdd a product
Pipedrive.ProductsApiaddProductFollowerPOST /products/{id}/followersAdd a follower to a product
Pipedrive.ProductsApideleteProductDELETE /products/{id}Delete a product
Pipedrive.ProductsApideleteProductFollowerDELETE /products/{id}/followers/{follower_id}Delete a follower from a product
Pipedrive.ProductsApigetProductGET /products/{id}Get one product
Pipedrive.ProductsApigetProductDealsGET /products/{id}/dealsGet deals where a product is attached to
Pipedrive.ProductsApigetProductFilesGET /products/{id}/filesList files attached to a product
Pipedrive.ProductsApigetProductFollowersGET /products/{id}/followersList followers of a product
Pipedrive.ProductsApigetProductUsersGET /products/{id}/permittedUsersList permitted users
Pipedrive.ProductsApigetProductsGET /productsGet all products
Pipedrive.ProductsApisearchProductsGET /products/searchSearch products
Pipedrive.ProductsApiupdateProductPUT /products/{id}Update a product
Pipedrive.ProjectTemplatesApigetProjectTemplateGET /projectTemplates/{id}Get details of a template
Pipedrive.ProjectTemplatesApigetProjectTemplatesGET /projectTemplatesGet all project templates
Pipedrive.ProjectTemplatesApigetProjectsBoardGET /projects/boards/{id}Get details of a board
Pipedrive.ProjectTemplatesApigetProjectsPhaseGET /projects/phases/{id}Get details of a phase
Pipedrive.ProjectsApiaddProjectPOST /projectsAdd a project
Pipedrive.ProjectsApiarchiveProjectPOST /projects/{id}/archiveArchive a project
Pipedrive.ProjectsApideleteProjectDELETE /projects/{id}Delete a project
Pipedrive.ProjectsApigetProjectGET /projects/{id}Get details of a project
Pipedrive.ProjectsApigetProjectActivitiesGET /projects/{id}/activitiesReturns project activities
Pipedrive.ProjectsApigetProjectGroupsGET /projects/{id}/groupsReturns project groups
Pipedrive.ProjectsApigetProjectPlanGET /projects/{id}/planReturns project plan
Pipedrive.ProjectsApigetProjectTasksGET /projects/{id}/tasksReturns project tasks
Pipedrive.ProjectsApigetProjectsGET /projectsGet all projects
Pipedrive.ProjectsApigetProjectsBoardsGET /projects/boardsGet all project boards
Pipedrive.ProjectsApigetProjectsPhasesGET /projects/phasesGet project phases
Pipedrive.ProjectsApiputProjectPlanActivityPUT /projects/{id}/plan/activities/{activityId}Update activity in project plan
Pipedrive.ProjectsApiputProjectPlanTaskPUT /projects/{id}/plan/tasks/{taskId}Update task in project plan
Pipedrive.ProjectsApiupdateProjectPUT /projects/{id}Update a project
Pipedrive.RecentsApigetRecentsGET /recentsGet recents
Pipedrive.RolesApiaddOrUpdateRoleSettingPOST /roles/{id}/settingsAdd or update role setting
Pipedrive.RolesApiaddRolePOST /rolesAdd a role
Pipedrive.RolesApiaddRoleAssignmentPOST /roles/{id}/assignmentsAdd role assignment
Pipedrive.RolesApideleteRoleDELETE /roles/{id}Delete a role
Pipedrive.RolesApideleteRoleAssignmentDELETE /roles/{id}/assignmentsDelete a role assignment
Pipedrive.RolesApigetRoleGET /roles/{id}Get one role
Pipedrive.RolesApigetRoleAssignmentsGET /roles/{id}/assignmentsList role assignments
Pipedrive.RolesApigetRolePipelinesGET /roles/{id}/pipelinesList pipeline visibility for a role
Pipedrive.RolesApigetRoleSettingsGET /roles/{id}/settingsList role settings
Pipedrive.RolesApigetRolesGET /rolesGet all roles
Pipedrive.RolesApiupdateRolePUT /roles/{id}Update role details
Pipedrive.RolesApiupdateRolePipelinesPUT /roles/{id}/pipelinesUpdate pipeline visibility for a role
Pipedrive.StagesApiaddStagePOST /stagesAdd a new stage
Pipedrive.StagesApideleteStageDELETE /stages/{id}Delete a stage
Pipedrive.StagesApideleteStagesDELETE /stagesDelete multiple stages in bulk
Pipedrive.StagesApigetStageGET /stages/{id}Get one stage
Pipedrive.StagesApigetStageDealsGET /stages/{id}/dealsGet deals in a stage
Pipedrive.StagesApigetStagesGET /stagesGet all stages
Pipedrive.StagesApiupdateStagePUT /stages/{id}Update stage details
Pipedrive.SubscriptionsApiaddRecurringSubscriptionPOST /subscriptions/recurringAdd a recurring subscription
Pipedrive.SubscriptionsApiaddSubscriptionInstallmentPOST /subscriptions/installmentAdd an installment subscription
Pipedrive.SubscriptionsApicancelRecurringSubscriptionPUT /subscriptions/recurring/{id}/cancelCancel a recurring subscription
Pipedrive.SubscriptionsApideleteSubscriptionDELETE /subscriptions/{id}Delete a subscription
Pipedrive.SubscriptionsApifindSubscriptionByDealGET /subscriptions/find/{dealId}Find subscription by deal
Pipedrive.SubscriptionsApigetSubscriptionGET /subscriptions/{id}Get details of a subscription
Pipedrive.SubscriptionsApigetSubscriptionPaymentsGET /subscriptions/{id}/paymentsGet all payments of a subscription
Pipedrive.SubscriptionsApiupdateRecurringSubscriptionPUT /subscriptions/recurring/{id}Update a recurring subscription
Pipedrive.SubscriptionsApiupdateSubscriptionInstallmentPUT /subscriptions/installment/{id}Update an installment subscription
Pipedrive.TasksApiaddTaskPOST /tasksAdd a task
Pipedrive.TasksApideleteTaskDELETE /tasks/{id}Delete a task
Pipedrive.TasksApigetTaskGET /tasks/{id}Get details of a task
Pipedrive.TasksApigetTasksGET /tasksGet all tasks
Pipedrive.TasksApiupdateTaskPUT /tasks/{id}Update a task
Pipedrive.UserConnectionsApigetUserConnectionsGET /userConnectionsGet all user connections
Pipedrive.UserSettingsApigetUserSettingsGET /userSettingsList settings of an authorized user
Pipedrive.UsersApiaddUserPOST /usersAdd a new user
Pipedrive.UsersApifindUsersByNameGET /users/findFind users by name
Pipedrive.UsersApigetCurrentUserGET /users/meGet current user data
Pipedrive.UsersApigetUserGET /users/{id}Get one user
Pipedrive.UsersApigetUserFollowersGET /users/{id}/followersList followers of a user
Pipedrive.UsersApigetUserPermissionsGET /users/{id}/permissionsList user permissions
Pipedrive.UsersApigetUserRoleAssignmentsGET /users/{id}/roleAssignmentsList role assignments
Pipedrive.UsersApigetUserRoleSettingsGET /users/{id}/roleSettingsList user role settings
Pipedrive.UsersApigetUsersGET /usersGet all users
Pipedrive.UsersApiupdateUserPUT /users/{id}Update user details
Pipedrive.WebhooksApiaddWebhookPOST /webhooksCreate a new Webhook
Pipedrive.WebhooksApideleteWebhookDELETE /webhooks/{id}Delete existing Webhook
Pipedrive.WebhooksApigetWebhooksGET /webhooksGet all Webhooks

Documentation for Models

FAQs

Package last updated on 22 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts