# Delete Companies to Trash `POST https://api.getprospect.com/v2/trash/companies` Moves saved companies to Trash: they stop being saved in this workspace and can be restored for 90 days. The selection is `ids` (up to 25,000) or every company a `filters` search matches. Up to 1,000 companies are applied inline (200, `done`); more are queued (202, `running`, poll `Location`). One bulk action runs per workspace at a time. With an `Idempotency-Key`, a retry answers the job it started. Free; 1 `jobs` rate-limit unit. ## Authentication Pass your API key in the `x-api-key` header. ## Body parameters - `ids` (string[], optional): companies-v2 company ids (1-25000). Exactly one of `ids` and `filters`. - `filters` (object, optional): The filter object `POST /v2/companies/search` takes: every company it matches. Exactly one of `ids` and `filters`. - `company` (object, optional): Look up specific companies you already know - by our own `id` (the exact one, as returned by Company Enrich), by exact `name`, by web `domain`, or by numeric `linkedin_id`. The same keys as People Search's `company` filter, except its `linkedin_url` (LinkedIn company page), which only People Search takes. Example: `{"filters":{"company":{"domain":{"include":["intercom.com","stripe.com"]}}}}` - `id` (object, optional): Match by our company `id`, as returned by this endpoint and by Company Enrich. The exact way to name companies you have already resolved. - `include` (string[], optional): Only these companies, by `id`. Max 20000 ids. Example: `["64f1a2b3c4d5e6f7a8b9c0d2"]` - `exclude` (string[], optional): Reject these companies (same `id` values). Max 20000 ids. - `name` (object, optional): Match by company name. Exact, case-insensitive list lookup. A value shaped like a website ("stripe.com", "https://www.stripe.com/about") also matches the company on that domain. - `include` (string[], optional): Match companies whose value is in this list - any single value qualifies (exact, case-insensitive). Optional - provide include and/or exclude. Max 500 items. - `exclude` (string[], optional): Reject companies whose value is in this list (exact, case-insensitive). 0-500 items. - `domain` (object, optional): Match by web domain - host only, without scheme or www (e.g. "getprospect.com"). Every domain attached to a company is considered, not just the primary one. A domain no company has as its website also matches the company whose employees use it for email (e.g. "sephora.fr" finds Sephora, whose website is inside-sephora.com). - `include` (string[], optional): Match companies whose value is in this list - any single value qualifies (exact, case-insensitive). Optional - provide include and/or exclude. Max 500 items. - `exclude` (string[], optional): Reject companies whose value is in this list (exact, case-insensitive). 0-500 items. - `linkedin_id` (object, optional): Match by LinkedIn's numeric company id. Company URLs go through Company Enrich first - see `id`. - `include` (integer[], optional): Match these LinkedIn companies. LinkedIn's numeric company id. Company LinkedIn URLs are not accepted here: People Search takes them as `company.linkedin_url`; elsewhere enrich the company by `linkedin_url` and put the `id` it returns in `company.id`. Max 500 items. Example: `[162479]` - `exclude` (integer[], optional): Reject these LinkedIn companies. LinkedIn's numeric company id. Company LinkedIn URLs are not accepted here: People Search takes them as `company.linkedin_url`; elsewhere enrich the company by `linkedin_url` and put the `id` it returns in `company.id`. Max 500 items. - `company_industry` (object, optional): Industry name, or one of the category GROUP names GET /v2/enums/industries groups them under - a group matches every industry in that category. Same vocabulary as People Search's own company_industry. Example: `{"filters":{"company_industry":{"include":["Software & Internet","IT Services & IT Consulting"],"exclude":["Staffing & Recruiting"]}}}` - `include` (string[], optional): Match companies whose value is in this list - any single value qualifies (exact, case-insensitive). Optional - provide include and/or exclude. Max 500 items. - `exclude` (string[], optional): Reject companies whose value is in this list (exact, case-insensitive). 0-500 items. - `company_type` (object, optional): Company legal/ownership type (see GET /v2/enums/company_types). Values match case-insensitively. Example: `{"filters":{"company_type":{"include":["Privately Held","Public Company"]}}}` - `include` (enum[], optional): Company types to match (any of). Allowed values: `Privately Held`, `Public Company`, `Non Profit`, `Self Owned`, `Self Employed`, `Partnership`, `Educational`, `Government Agency`, `Unknown`. - `exclude` (enum[], optional): Company types to reject. Allowed values: `Privately Held`, `Public Company`, `Non Profit`, `Self Owned`, `Self Employed`, `Partnership`, `Educational`, `Government Agency`, `Unknown`. - `company_business_type` (object, optional): Audience type (see GET /v2/enums/business_types). Values: B2B, B2C, Nonprofit, Unknown. Example: `{"filters":{"company_business_type":{"include":["B2B"]}}}` - `include` (enum[], optional): Business types to match (any of). Allowed values: `B2B`, `B2C`, `Nonprofit`, `Unknown`. - `exclude` (enum[], optional): Business types to reject. Allowed values: `B2B`, `B2C`, `Nonprofit`, `Unknown`. - `company_revenue_stream` (object, optional): Revenue model (see GET /v2/enums/revenue_streams). Values match case-insensitively. Example: `{"filters":{"company_revenue_stream":{"include":["Subscriptions / Recurring","Product Sales"]}}}` - `include` (enum[], optional): Revenue streams to match (any of). Allowed values: `Professional Services`, `Product Sales`, `Grants / Donations`, `Subscriptions / Recurring`, `Project / Contract Work`, `Event / Experience Revenue`, `Transaction Fees`, `Rental / Leasing`, `Advertising`, `Financial Services`, `Licensing / IP`, `Unknown`. - `exclude` (enum[], optional): Revenue streams to reject. Allowed values: `Professional Services`, `Product Sales`, `Grants / Donations`, `Subscriptions / Recurring`, `Project / Contract Work`, `Event / Experience Revenue`, `Transaction Fees`, `Rental / Leasing`, `Advertising`, `Financial Services`, `Licensing / IP`, `Unknown`. - `company_ai_industry` (object, optional): AI industry of the company (see GET /v2/enums/ai_industries): an industry group or a sub-industry. A group matches all its sub-industries. Casing does not matter, and "&" is read as "and". Example: `{"filters":{"company_ai_industry":{"include":["Finance and Insurance"],"exclude":["Banking and Lending"]}}}` - `include` (enum[], optional): AI industries to match (any of). A group matches all its sub-industries; a sub-industry matches only itself. Allowed values: `Software and IT`, `Healthcare and Life Sciences`, `Finance and Insurance`, `Energy, Utilities and Environmental Services`, `Industrial Manufacturing and Materials`, `Real Estate and Construction`, `Retail and Consumer Channels`, `Transportation and Logistics`, `Professional, Business and Legal Services`, `Education and Training`, `Media, Entertainment and Culture`, `Hospitality, Food and Travel Services`, `Personal and Home Services`, `Agriculture, Forestry and Fisheries`, `Automotive, Aerospace and Defense Manufacturing`, `Non-Profit, Public Sector and Education (Non-Commercial)`, `AI and ML Platforms`, `Agriculture and Forestry Software`, `Blockchain and Web3`, `Carriers and ISPs`, `Cloud and Infrastructure Software`, `Consumer Software`, `Data and Analytics Software`, `Developer Tools and Platforms`, `Enterprise Software Solutions`, `Financial Services Software`, `Government and Public Sector Software`, `Hardware and Networking`, `Healthcare Software`, `IoT and Embedded Systems Software`, `IT Services and Cybersecurity`, `Manufacturing Software`, `Metaverse, AR/VR and Other Emerging Platforms`, `Quantum Computing Software`, `Real Estate and PropTech Software`, `Retail and Ecommerce Software`, `Security and Identity Software`, `Biotechnology and Pharmaceuticals`, `Digital Health and Telemedicine`, `Hospitals, Clinics and Outpatient Care`, `Medical Devices and Diagnostic Equipment`, `Medical Testing and Clinical Laboratories`, `Mental Health and Rehabilitation Services`, `Pharma Distribution and CRO Services`, `Banking and Lending`, `Capital Markets and Cryptocurrency`, `Cryptocurrency and Blockchain Services`, `Financial Services Platforms`, `Insurance and InsurTech`, `Investment Management and WealthTech`, `Venture Capital and Private Equity`, `Electric Power and Grid Management`, `Nuclear and Advanced Generation`, `Oil and Gas Exploration, Production and Services`, `Renewable Energy and Clean Tech`, `Sustainability Tech and Environmental Consulting`, `Water, Waste and Environmental Management`, `3D Printing and Advanced Manufacturing`, `Building Materials and Chemicals`, `Consumer Goods and Appliances`, `Electronics and Computer Equipment`, `Food, Beverage and Tobacco Production`, `Industrial Machinery and Equipment`, `Mining, Metals and Natural Resources`, `Architecture, Urban Planning and Green Building`, `Commercial Real Estate Development and Leasing`, `Construction and Civil Engineering Services`, `Property and Facility Management`, `Residential Real Estate Development and Brokerage`, `Specialty Construction Products`, `Automotive Service and Collision Repair`, `Brick-and-Mortar Retail`, `Media and Entertainment Retail`, `Online Commerce and Marketplaces`, `Retail Technology`, `Specialty Auctions and Collectibles`, `Wholesale and Distribution`, `Autonomous Vehicles and Drone Delivery`, `Car and Truck Rental`, `Freight and Cargo`, `Logistics Technology`, `Passenger Transit and Mobility`, `Warehousing, Fulfillment and 3PL Services`, `Accounting, Audit and Financial Advisory`, `Advertising, Marketing and Multimedia Design`, `Defense and Government Services`, `Facilities Management and Commercial Cleaning`, `Human Resources, Staffing and Recruitment`, `Legal Services and Regulatory Compliance`, `Management Consulting and Strategy Consulting`, `Translation, Document and Information Management`, `Corporate Training and Learning and Development`, `E-Learning Platforms and EdTech`, `K-12 and Higher Education Institutions`, `Test Prep, Tutoring and After-School Services`, `Vocational Training and Certification Programs`, `Digital Publishing and Streaming Platforms`, `Film, Television and Broadcasting`, `Gaming, Esports and Interactive Entertainment`, `Live Events, Experiences and Ticketed Attractions`, `Museums, Art Galleries and Cultural Preservation`, `Music, Audio and Podcast Services`, `Sports and Recreation`, `Food and Beverage Services`, `Hospitality and Lodging`, `Travel Agencies and Leisure Services`, `Funeral Homes and Related Services`, `Home Services`, `Personal Care and Wellness`, `Veterinary Care and Pet Services`, `AgriTech and Precision Farming`, `Aquaculture and Fisheries`, `Crop Farming and Livestock Production`, `Farming Equipment and Supplies`, `Forestry, Logging and Wood Products`, `Mining and Extraction`, `Aviation and Aerospace Component Manufacturing`, `Automotive and Rental Retail`, `Commercial Space Innovation`, `Defense Systems and Marine Manufacturing`, `Motor Vehicle and Parts Manufacturing`, `Government Administration and Municipal Services`, `NGOs, Charities and Community Organizations`, `Public Healthcare and Social Services`, `Public/Private Research Institutions and Educational Foundations`, `Student Organizations and Campus Services`. - `exclude` (enum[], optional): AI industries to reject. A group rejects all its sub-industries; a sub-industry rejects only itself. Allowed values: `Software and IT`, `Healthcare and Life Sciences`, `Finance and Insurance`, `Energy, Utilities and Environmental Services`, `Industrial Manufacturing and Materials`, `Real Estate and Construction`, `Retail and Consumer Channels`, `Transportation and Logistics`, `Professional, Business and Legal Services`, `Education and Training`, `Media, Entertainment and Culture`, `Hospitality, Food and Travel Services`, `Personal and Home Services`, `Agriculture, Forestry and Fisheries`, `Automotive, Aerospace and Defense Manufacturing`, `Non-Profit, Public Sector and Education (Non-Commercial)`, `AI and ML Platforms`, `Agriculture and Forestry Software`, `Blockchain and Web3`, `Carriers and ISPs`, `Cloud and Infrastructure Software`, `Consumer Software`, `Data and Analytics Software`, `Developer Tools and Platforms`, `Enterprise Software Solutions`, `Financial Services Software`, `Government and Public Sector Software`, `Hardware and Networking`, `Healthcare Software`, `IoT and Embedded Systems Software`, `IT Services and Cybersecurity`, `Manufacturing Software`, `Metaverse, AR/VR and Other Emerging Platforms`, `Quantum Computing Software`, `Real Estate and PropTech Software`, `Retail and Ecommerce Software`, `Security and Identity Software`, `Biotechnology and Pharmaceuticals`, `Digital Health and Telemedicine`, `Hospitals, Clinics and Outpatient Care`, `Medical Devices and Diagnostic Equipment`, `Medical Testing and Clinical Laboratories`, `Mental Health and Rehabilitation Services`, `Pharma Distribution and CRO Services`, `Banking and Lending`, `Capital Markets and Cryptocurrency`, `Cryptocurrency and Blockchain Services`, `Financial Services Platforms`, `Insurance and InsurTech`, `Investment Management and WealthTech`, `Venture Capital and Private Equity`, `Electric Power and Grid Management`, `Nuclear and Advanced Generation`, `Oil and Gas Exploration, Production and Services`, `Renewable Energy and Clean Tech`, `Sustainability Tech and Environmental Consulting`, `Water, Waste and Environmental Management`, `3D Printing and Advanced Manufacturing`, `Building Materials and Chemicals`, `Consumer Goods and Appliances`, `Electronics and Computer Equipment`, `Food, Beverage and Tobacco Production`, `Industrial Machinery and Equipment`, `Mining, Metals and Natural Resources`, `Architecture, Urban Planning and Green Building`, `Commercial Real Estate Development and Leasing`, `Construction and Civil Engineering Services`, `Property and Facility Management`, `Residential Real Estate Development and Brokerage`, `Specialty Construction Products`, `Automotive Service and Collision Repair`, `Brick-and-Mortar Retail`, `Media and Entertainment Retail`, `Online Commerce and Marketplaces`, `Retail Technology`, `Specialty Auctions and Collectibles`, `Wholesale and Distribution`, `Autonomous Vehicles and Drone Delivery`, `Car and Truck Rental`, `Freight and Cargo`, `Logistics Technology`, `Passenger Transit and Mobility`, `Warehousing, Fulfillment and 3PL Services`, `Accounting, Audit and Financial Advisory`, `Advertising, Marketing and Multimedia Design`, `Defense and Government Services`, `Facilities Management and Commercial Cleaning`, `Human Resources, Staffing and Recruitment`, `Legal Services and Regulatory Compliance`, `Management Consulting and Strategy Consulting`, `Translation, Document and Information Management`, `Corporate Training and Learning and Development`, `E-Learning Platforms and EdTech`, `K-12 and Higher Education Institutions`, `Test Prep, Tutoring and After-School Services`, `Vocational Training and Certification Programs`, `Digital Publishing and Streaming Platforms`, `Film, Television and Broadcasting`, `Gaming, Esports and Interactive Entertainment`, `Live Events, Experiences and Ticketed Attractions`, `Museums, Art Galleries and Cultural Preservation`, `Music, Audio and Podcast Services`, `Sports and Recreation`, `Food and Beverage Services`, `Hospitality and Lodging`, `Travel Agencies and Leisure Services`, `Funeral Homes and Related Services`, `Home Services`, `Personal Care and Wellness`, `Veterinary Care and Pet Services`, `AgriTech and Precision Farming`, `Aquaculture and Fisheries`, `Crop Farming and Livestock Production`, `Farming Equipment and Supplies`, `Forestry, Logging and Wood Products`, `Mining and Extraction`, `Aviation and Aerospace Component Manufacturing`, `Automotive and Rental Retail`, `Commercial Space Innovation`, `Defense Systems and Marine Manufacturing`, `Motor Vehicle and Parts Manufacturing`, `Government Administration and Municipal Services`, `NGOs, Charities and Community Organizations`, `Public Healthcare and Social Services`, `Public/Private Research Institutions and Educational Foundations`, `Student Organizations and Campus Services`. - `company_country` (object, optional): Country as ISO-3166-1 alpha-2 codes (see GET /v2/enums/countries). Matches any office location by default; set `headquarters_only: true` to match the registered headquarters country only. Example: `{"filters":{"company_country":{"include":["US","CA"],"headquarters_only":true}}}` - `include` (string[], optional): Match companies whose value is in this list - any single value qualifies (exact, case-insensitive). Optional - provide include and/or exclude. Max 500 items. - `exclude` (string[], optional): Reject companies whose value is in this list (exact, case-insensitive). 0-500 items. - `headquarters_only` (boolean, optional, default: false): When true, match the company headquarters country only. When false (default), any office country we have resolved counts, headquarters included: includes widen (a company with an office there matches) and excludes tighten symmetrically (a company with an office there is rejected). - `company_location` (object, optional): Company location as unified location strings - a country ("United States"), a state ("Texas, United States"), a city ("San Francisco, California, United States") or a region ("EMEA"). Same format and vocabulary as People Search's company_location and person_location. Any resolved office counts by default; see headquarters_only. Use `company_country` instead when you already hold ISO-3166-1 alpha-2 codes. Example: `{"filters":{"company_location":{"include":["San Francisco, California, United States"],"headquarters_only":true}}}` - `include` (string[], optional): Match these locations (any of). Unified strings like "United States", "Texas, United States", "San Francisco, California, United States" - or a region like "EMEA", "APAC", "Europe", "Latin America", which expands to its member countries (full list with member countries: GET /v2/enums/regions). Max 100 items, each 2-200 chars. Any value that does not resolve fails the whole request with 400 (`invalid_value`, naming it in `invalid_values`), even beside values that do: nothing is silently dropped. Look values up with POST /v2/search/suggest (type location). - `exclude` (string[], optional): Reject these locations (same unified-string format; a region minus a country works: include ["Europe"], exclude ["Germany"]). Max 100 items, each 2-200 chars. A value that does not resolve is skipped, so check the spelling: a misspelled exclude ("Germny") leaves that place in the results. - `headquarters_only` (boolean, optional, default: false): When true, match the company headquarters location only. When false (default), any office location we have resolved counts, headquarters included: includes widen (a company with an office there matches) and excludes tighten symmetrically (a company with an office there is rejected). - `company_headcount_range` (enum[], optional): Bucketed headcount range (see GET /v2/enums/employee_ranges). 1-8 buckets. Allowed values: `1-10`, `11-50`, `51-200`, `201-500`, `501-1000`, `1001-5000`, `5001-10000`, `10001+`. Example: `{"filters":{"company_headcount_range":["51-200","201-500"]}}` - `company_headcount_custom` (object, optional): Raw headcount range. min/max are inclusive; either may be omitted. Example: `{"filters":{"company_headcount_custom":{"min":100,"max":5000}}}` - `min` (number, optional): Lower bound (inclusive). Optional. - `max` (number, optional): Upper bound (inclusive). Must be >= min. Optional. - `company_founded` (object, optional): Founded year range. min/max are inclusive; either may be omitted. Example: `{"filters":{"company_founded":{"min":2010,"max":2020}}}` - `min` (number, optional): Lower bound (inclusive). Optional. - `max` (number, optional): Upper bound (inclusive). Must be >= min. Optional. - `company_headcount_by_department` (object[], optional): Headcount of the company by department, optionally within one country or state. Rows AND together; each row is a `department` plus `min` and/or `max` people (a `max` also matches companies with nobody in the department). 1-10 rows. Example: `{"filters":{"company_headcount_by_department":[{"department":"Product Development","location":"California, United States","min":10,"max":20}]}}` - `department` (enum, required): Department group ("Sales") or sub-department ("Sales Operations"); see GET /v2/enums/departments. Casing does not matter. Allowed values: `C-Suite`, `Consulting`, `Design`, `Education & Coaching`, `Engineering & Technical`, `Finance`, `Human Resources`, `Information Technology`, `Legal`, `Marketing`, `Medical & Health`, `Operations`, `Procurement & Purchasing`, `Product`, `Sales`, `Account Executive`, `Account Management`, `Accounting`, `Administrative & Office Support`, `Advertising`, `Anesthesiology`, `Architecture & Interior Design`, `Artificial Intelligence & Machine Learning`, `Banking & Investment`, `Bioengineering`, `Brand Management`, `Business Analysis`, `Business Development`, `Business Intelligence & Data Warehouse`, `Buying & Merchandising`, `Call Center`, `Channel Sales`, `Chemical Engineering`, `Chiropractics`, `Civil & Structural Engineering`, `Clinical Research`, `Clinical Systems`, `Cloud & Infrastructure`, `Coach & Trainer`, `Compensation & Benefits`, `Compliance & Privacy`, `Construction`, `Consultant`, `Content Marketing`, `Contracts`, `Corporate Secretary`, `Culture, Diversity & Inclusion`, `Customer Experience`, `Customer Marketing`, `Customer Retention & Development`, `Customer Service & Support`, `Customer Success`, `Data Center & Servers`, `Data Engineering`, `Data Management & Governance`, `Data Science & Analytics`, `Database Administration`, `Dentistry`, `Dermatology`, `DevOps & SRE`, `Digital Marketing`, `Doctors & Physicians`, `eCommerce Development`, `eCommerce Marketing`, `Education Administration`, `Electrical & Hardware Engineering`, `Emergency Medical Services`, `Employee & Labor Relations`, `Engineering Management`, `Enterprise Architecture`, `Epidemiology`, `ERP Systems`, `Ethics & Governance`, `Event & Field Marketing`, `Executive`, `Facilities Management`, `Field & Outside Sales`, `Finance Executive`, `Financial Planning & Analysis`, `Financial Reporting`, `Financial Risk`, `Financial Systems`, `Founder`, `Governmental Affairs & Regulatory Law`, `Graphic, Web & Brand Design`, `Growth & Demand Generation`, `Health & Safety`, `Help Desk & Desktop Services`, `Hospitality & Food Service`, `HR Business Partner`, `Human Resources Executive`, `Implementation & Onboarding`, `Industrial & Fashion Design`, `Industrial Engineering`, `Infectious Disease`, `Information Security`, `Information Technology Executive`, `Inside Sales`, `Insurance & Actuarial`, `Intellectual Property & Patent`, `Internal Audit & Control`, `Investor Relations`, `IT Asset Management`, `IT Audit & IT Compliance`, `IT Operations`, `IT Procurement`, `IT Strategy`, `Lawyer & Attorney`, `Lead Generation`, `Learning & Development`, `Legal Counsel`, `Legal Executive`, `Legal Operations`, `Litigation & eDiscovery`, `Logistics & Transportation`, `Maintenance & Repair`, `Manufacturing & Production`, `Marketing Analytics & Insights`, `Marketing Communications`, `Marketing Executive`, `Marketing Operations`, `Mechanical Engineering`, `Medical & Health Executive`, `Medical Administration`, `Medical Assistants & Technicians`, `Medical Education & Training`, `Mergers & Acquisitions`, `Mobile Development`, `Networking`, `Neurology`, `Nursing`, `Nutrition & Dietetics`, `Obstetrics & Gynecology`, `Oncology`, `Operations Executive`, `Ophthalmology & Optometry`, `Organizational Development`, `Orthopedics`, `Paralegal & Legal Support`, `Partnerships & Alliances`, `Pathology`, `Pediatrics`, `People Operations`, `Pharmacy`, `Photography, Video & Media Production`, `Physical Security`, `Physical Therapy`, `Principal`, `Product & UX/UI Design`, `Product Development`, `Product Executive`, `Product Management`, `Product Marketing`, `Product Operations`, `Professor`, `Project Management`, `Psychiatry`, `Psychology`, `Public Health`, `Public Relations`, `Quality Management`, `Radiology`, `Real Estate`, `Real Estate Finance`, `Recruiting & Talent Acquisition`, `Research & Development`, `Retail Sales`, `Revenue Operations`, `Sales Development (SDR/BDR)`, `Sales Enablement & Training`, `Sales Engineering & Solutions`, `Sales Leader`, `Sales Operations`, `Scrum Master & Agile Coach`, `SEO & Paid Search`, `Social Media & Influencer Marketing`, `Social Work & Counseling`, `Software Development`, `Store & Retail Operations`, `Strategic Sourcing`, `Strategy, Innovation & Transformation`, `Supply Chain`, `Sustainability & ESG`, `Talent Management`, `Tax`, `Teacher`, `Technical Support`, `Technician`, `Telecommunications`, `Test & Quality Assurance`, `Treasury`, `Vendor & Supplier Management`, `Veterinary`, `Web Development`, `Workforce Management`, `Writing & Editing`. Example: `"Product Development"` - `location` (string, optional): Count only people located in this ONE location, which must resolve to a country or a state ("Germany", "California, United States"). A city or a multi-country region answers 400. Omit for anywhere. 2-200 chars. Example: `"California, United States"` - `min` (integer, optional): At least this many people (inclusive). Integer 0-1,000,000. Example: `10` - `max` (integer, optional): At most this many people (inclusive). Integer 0-1,000,000, at least min. Companies with no people in the department count as 0 and match. Example: `20` - `company_naics` (object, optional): NAICS codes (numeric). Matches when any of the company's codes is in the list. Example: `{"filters":{"company_naics":{"include":[541511,541512]}}}` - `include` (number[], optional): Match companies whose value is in this list - any single value qualifies. Optional - provide include and/or exclude. Max 500 items. - `exclude` (number[], optional): Reject companies whose value is in this list. 0-500 items. - `company_technologies` (object, optional): Web technologies detected on the company website, by id: the `value` of a `POST /v2/search/suggest` row with `type: technology` and `kind: technology`. Websites are rescanned every 30 days. Example: `{"filters":{"company_technologies":{"include":["3421"],"match_mode":"ANY"}}}` - `include` (string[], optional): Technology ids to match. `match_mode: ANY` (default): a company using any of them qualifies; `ALL`: it must use every one. Max 500. Example: `["3421"]` - `exclude` (string[], optional): Reject companies using any of these technology ids. Max 500. - `match_mode` (enum, optional, default: "ANY"): How `include` combines: `ANY` (default) - at least one; `ALL` - every one, on the same company. Allowed values: `ANY`, `ALL`. - `company_technology_categories` (object, optional): Technology categories (CMS, Ecommerce, Analytics, ...), by id: the `value` of a suggest row with `kind: category`. A category matches a company using any technology in it. Example: `{"filters":{"company_technology_categories":{"include":["1"]}}}` - `include` (string[], optional): Category ids to match (any of). Max 200. Example: `["1"]` - `exclude` (string[], optional): Reject companies using any technology in these category ids. Max 200. - `company_keywords` (object, optional): Free-text keyword match across selected source fields (see GET /v2/enums/keywords_sources). When this filter is active, results are ranked by relevance first. Example: `{"filters":{"company_keywords":{"include":["customer support","help desk"],"include_all":true,"sources":["specialties"]}}}` - `include` (string[], required): Phrases to search for. 1-20 items, 3-100 chars each. Matched as phrases: a multi-word entry like "email finder" requires those words adjacent and in order within one of the selected source fields, not merely present somewhere in it. - `exclude` (string[], optional): Phrases that disqualify a company. 0-20 items. Matched as phrases, same as `include`. - `include_all` (boolean, optional, default: false): When true, every phrase in `include` must match; otherwise any single match qualifies. - `sources` (enum[], optional): Restrict matching to these source fields (see GET /v2/enums/keywords_sources). Omit to use the default source set - see this `company_keywords` filter's own description above for what that is. Allowed values: `specialties`, `social_media_description`, `website_pages`. - `lists` (object, optional): Your workspace's company lists: read a list's companies (`include`), hide those already filed (`exclude`), or scope to saved / not saved companies (`saved`). Scoped to companies you saved (`include`, or `saved` `any` / `without_list`), the search spends no `search` rate-limit units. `metadata.lists_filter` reports the scope that ran. Example: `{"filters":{"lists":{"include":["66f1a2b3c4d5e6f7a8b9c0d1"]}}}` - `saved` (enum, optional): any = only companies your workspace saved, in a list or not; none = only companies your workspace has not saved; without_list = only companies your workspace saved but did not file into any list. Allowed values: `any`, `none`, `without_list`. - `include` (string[], optional): Only companies your workspace filed into these company list ids (`GET /v2/lists?type=companies`). Max 100. - `exclude` (string[], optional): Hide companies your workspace filed into these company list ids. Max 100. - `sort_by` (enum, optional): With `filters`: which companies are "the first `limit`". Allowed values: `company_name`, `company_employee_count`, `company_industry`, `company_country`, `company_founded`, `company_saved_at`. - `sort_direction` (enum, optional): Ignored without `sort_by`. Allowed values: `asc`, `desc`. - `limit` (number, optional, min: 1, max: 25000): With `filters`: how many companies at most. - `exclude_ids` (string[], optional): With `filters`: company ids taken out of the match. - `extra_ids` (string[], optional): With `filters`: hand-ticked company ids outside the match, added to it. ## Example request ```bash curl --request POST \ --url https://api.getprospect.com/v2/trash/companies \ --header 'Content-Type: application/json' \ --header 'x-api-key: YOUR_API_KEY' \ --data ' { "ids": [ "66ff0c1e2a4b5c6d7e8f9020", "66ff0c1e2a4b5c6d7e8f9021" ] } ' ``` ## Response 200 Applied inline: the job, `done`. ```json { "success": true, "data": { "id": "66ff0c1e2a4b5c6d7e8f9012", "type": "companies_delete", "status": "done", "total": 3, "processed": 3, "progress_percent": 100, "result": { "deleted": 3, "skipped": 0 }, "error": null, "resource_url": null, "created_at": "2026-10-05T09:00:00.000Z", "finished_at": "2026-10-05T09:00:00.000Z" }, "metadata": { "timestamp": "2026-10-05T09:00:00.000Z" } } ``` ## Response 202 Queued: the job, `running`. Poll `Location` (`GET /v2/jobs/{id}`). ```json { "success": true, "data": { "id": "66ff0c1e2a4b5c6d7e8f9012", "type": "companies_delete", "status": "running", "total": 25000, "processed": 0, "progress_percent": 0, "result": { "deleted": 0, "skipped": 0 }, "error": null, "resource_url": null, "created_at": "2026-10-05T09:00:00.000Z", "finished_at": null }, "metadata": { "timestamp": "2026-10-05T09:00:00.000Z" } } ``` ## Response 400 Invalid body or `Idempotency-Key` (`VALIDATION_ERROR`; `payload.code` says which kind of mistake), or a selection the command cannot run. ```json { "success": false, "data": null, "metadata": { "timestamp": "2026-10-05T09:00:00.000Z" }, "errors": [ { "name": "VALIDATION_ERROR", "message": "limit must not be greater than 25000", "payload": { "field": "limit", "code": "out_of_range", "received_value": 30000, "received_type": "number", "constraints": { "max": "limit must not be greater than 25000" } } } ] } ``` ## Response 401 Missing, unknown or inactive credentials (`UNAUTHORIZED`). ## Response 409 `CONFLICT`: another bulk action of the workspace is running (`bulk_action_running`, `payload.job_id` names it; `data` repeats `{code, job_id}` during the App transition), or the `Idempotency-Key` was used for another request (`idempotency_key_reused`), or its first request is still running (`idempotency_in_progress`, `Retry-After: 2`). ```json { "success": false, "data": { "code": "bulk_action_running", "job_id": "66ff0c1e2a4b5c6d7e8f9099" }, "metadata": { "timestamp": "2026-10-05T09:00:00.000Z" }, "errors": [ { "name": "CONFLICT", "message": "Another bulk action is still running in this workspace.", "payload": { "code": "bulk_action_running", "job_id": "66ff0c1e2a4b5c6d7e8f9099" } } ] } ``` ## Response 429 Over the `jobs` rate limit (`RATE_LIMIT`); wait `Retry-After` seconds. ## Response 500 Unexpected server error.