{"id":49575208,"url":"https://github.com/rollecode/pipedrive-email-archiver","last_synced_at":"2026-05-03T16:11:04.257Z","repository":{"id":311621773,"uuid":"1044327505","full_name":"rollecode/pipedrive-email-archiver","owner":"rollecode","description":"Pipedrive doesn't offer batch archiving of emails through the UI, but you can archive them using the API with this tool.","archived":false,"fork":false,"pushed_at":"2025-08-28T11:38:50.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-05-02T13:33:31.527Z","etag":null,"topics":["archiver","email","pipedrive","pipedrive-api"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rollecode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-25T14:14:10.000Z","updated_at":"2025-08-28T11:38:53.000Z","dependencies_parsed_at":"2025-08-25T16:26:07.388Z","dependency_job_id":"b304594b-7b1e-4d21-9b3c-f33bf1a734af","html_url":"https://github.com/rollecode/pipedrive-email-archiver","commit_stats":null,"previous_names":["ronilaukkarinen/pipedrive-email-archiver","rollecode/pipedrive-email-archiver"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/rollecode/pipedrive-email-archiver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rollecode%2Fpipedrive-email-archiver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rollecode%2Fpipedrive-email-archiver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rollecode%2Fpipedrive-email-archiver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rollecode%2Fpipedrive-email-archiver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rollecode","download_url":"https://codeload.github.com/rollecode/pipedrive-email-archiver/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rollecode%2Fpipedrive-email-archiver/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32575400,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["archiver","email","pipedrive","pipedrive-api"],"created_at":"2026-05-03T16:11:02.494Z","updated_at":"2026-05-03T16:11:04.252Z","avatar_url":"https://github.com/rollecode.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ✉️ Pipedrive email archiver\n\nA Node.js tool to bulk archive emails in Pipedrive via their API, since the UI doesn't provide a batch archive feature.\n\n\u003cimg width=\"760\" height=\"595\" alt=\"image\" src=\"https://github.com/user-attachments/assets/e3c18155-779c-41d5-8639-0381fcc86082\" /\u003e\n\n## Features\n\n- Fetches all email threads from your Pipedrive inbox or sent folder\n- Bulk archives unarchived emails\n- Support for archiving both inbox and sent emails\n- Dry-run mode to preview what will be archived\n- Interactive confirmation before archiving\n- Progress tracking and statistics\n- Colorful CLI output with clear status indicators\n\n## Prerequisites\n\n- Node.js 18+ installed\n- Pipedrive account with API access\n- API token from Pipedrive\n\n## Installation\n\n1. Clone or download this repository\n2. Install dependencies:\n   ```bash\n   npm install\n   ```\n\n3. Copy `.env.example` to `.env`:\n   ```bash\n   cp .env.example .env\n   ```\n\n4. Edit `.env` and add your Pipedrive API token:\n   ```ini\n   PIPEDRIVE_API_TOKEN=your_api_token_here\n   PIPEDRIVE_DOMAIN=yourcompany.pipedrive.com\n   ```\n\n   To get your API token:\n   - Log in to Pipedrive\n   - Go to Settings → Personal preferences → API\n   - Copy your personal API token\n\n## Usage\n\n### Interactive mode (Default)\n```bash\nnpm start\n```\nThis will:\n1. Fetch all email threads from your inbox\n2. Show you a summary of archived/unarchived emails\n3. Ask for confirmation before archiving\n4. Archive all unarchived emails\n\n### Archive sent emails\n```bash\nnpm start -- --sent\n```\nArchives sent emails instead of inbox emails.\n\n### Dry run mode\nPreview what will be archived without making changes:\n```bash\nnpm run dry-run\n# or\nnpm start -- --dry-run\n```\n\n### Skip confirmation\nArchive without the confirmation prompt:\n```bash\nnpm start -- --yes\n# or\nnpm start -- -y\n```\n\n### Combine options\nYou can combine different options:\n```bash\n# Dry run for sent emails\nnpm start -- --sent --dry-run\n\n# Archive sent emails without confirmation\nnpm start -- --sent --yes\n```\n\n### Help\n```bash\nnpm start -- --help\n```\n\n## How it works\n\nThe tool uses Pipedrive's Mail Threads API to:\n\n1. Fetch all email threads from your inbox using pagination\n2. Filter out already archived threads\n3. Archive each unarchived thread individually\n4. Provide real-time progress updates\n\n## API endpoints used\n\n- `GET /mailbox/mailThreads` - Fetch email threads\n- `PUT /mailbox/mailThreads/{id}` - Archive individual threads\n\n## Rate limiting\n\nThe tool includes a 100ms delay between archive operations to avoid hitting API rate limits.\n\n## Troubleshooting\n\n### \"PIPEDRIVE_API_TOKEN not found\"\n\nMake sure you've created a `.env` file with your API token.\n\n### \"Failed to fetch email threads\"\n\n- Verify your API token is correct\n- Check if your Pipedrive domain is set correctly in `.env`\n- Ensure you have the necessary permissions in Pipedrive\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frollecode%2Fpipedrive-email-archiver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frollecode%2Fpipedrive-email-archiver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frollecode%2Fpipedrive-email-archiver/lists"}