How to hit the Pipedrive API

Pipedrive's API lives at https://api.pipedrive.com, with newer endpoints under /api/v2 and the rest under /v1.

Authentication

Copy your personal API token from Settings → Personal preferences → API and send it as the x-api-token header. In the examples it's written {{PIPEDRIVE_API_TOKEN}}.

Full reference: https://developers.pipedrive.com/docs/api/v1

Current user

curl https://api.pipedrive.com/v1/users/me \
  -H "x-api-token: {{PIPEDRIVE_API_TOKEN}}"
Run in PostTaco

List deals

curl "https://api.pipedrive.com/api/v2/deals?limit=10" \
  -H "x-api-token: {{PIPEDRIVE_API_TOKEN}}"
Run in PostTaco

List persons

curl "https://api.pipedrive.com/api/v2/persons?limit=10" \
  -H "x-api-token: {{PIPEDRIVE_API_TOKEN}}"
Run in PostTaco