Is there any workaround to download bulk emails from PD

Is there any way to download all files attached to deals and persons in PD , i tried to call API of GET Files , but i got links , i want to auto download all files , please advice.


I am doing something similar. You will need to do the following:

  1. Fetch all of the Files using, where API_KEY is the API key for the Pipedrive account you want to access.
  2. For each of the results returned, get the file ID
  3. Fetch the contents of the file using, where ID is the id of the file.

Note that the second call to file/ID/download actually redirects the fetch to an Amazon s3 file, which has several negative effects:

  1. You can not call this from a browser, it will violate CORS rules.
  2. It will return the raw file (bytes) only, so you will need to read the results into a byte array to deal with it

I have some sample Javascript code I can share with you if you want.


1 Like

THank your for your response , please share teh js code with me.


fetch('', {
            method: 'GET',
            headers: {"Accept": "application/json"},
            mode: 'cors',
            redirect: "follow"
  .then(result => {
    const files =;
    for(let i = 0; i < files.length; i++) {
      const file = files[i];
      fetch(`${}/download?api_token=APIKEY`, {
        method: 'GET',
        mode: 'cors',
        redirect: "follow"
      .then(file => {
        // This will be raw data (bytearray)