Pipedrive API Documentation

The testing-readme Developer Hub

Welcome to the testing-readme developer hub. You'll find comprehensive guides and documentation to help you start working with testing-readme as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started    

How to find the API token

To validate your requests, you'll need your API token - this means that our system will need to know who you are and be able to connect all actions you do with your chosen Pipedrive account.

Keep your API token safe. You can only have one active API token at any time.

There are two methods you can use to find the API token.

Method 1

You can get the API token manually from the Pipedrive web app by going to Settings > Personal > Other > API or by clicking here (in case you have multiple companies open at the same time, this link will redirect you to the API token of the last opened company).

Method 2

You can fetch the api_token via POST /authorizations. Just copy the code below to your favorite editor and don't forget to replace the text with your actual email and password. Execute the code and get the api_token from the output:

<?php

$data = array(
  'email' => 'Your email goes here',
  'password' => 'Your password goes here'
);
$url = 'https://companydomain.pipedrive.com/v1/authorizations';

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);

echo 'Sending request...' . PHP_EOL;

$output = curl_exec($ch);
curl_close($ch);

$result = json_decode($output, true);

if (!empty($result['data'][0]['api_token'])) {
  echo 'User api_token is: ' . $result['data'][0]['api_token'] . PHP_EOL;
}