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 get the company domain

There are two methods you can use to get the company domain.

Method 1

You can get it manually from the Pipedrive app by logging into your Developer Sandbox account and see the URL:

Method 2

You can fetch it via GET /users/me. Just copy the code below to your favorite editor and don't forget to replace the text with your actual API token. Execute the code and get the company_domain from the output:


$api_token = 'Your API token';
$url = 'https://api.pipedrive.com/v1/users/me?api_token=' . $api_token;

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

echo 'Sending request...' . PHP_EOL;

$output = curl_exec($ch);

$result = json_decode($output, true);

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

You can check the /users/me response JSON here.

How to get the company domain

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.