Set Company Lists
/v2/companies/lists/setSets the lists of a selection of saved companies to exactly list_ids (1-100 company lists): each selected record ends up in those lists and in no other. Select by ids (up to 25,000), or by filters (everything POST /v2/companies/search matches, with the optional sort_by, sort_direction, limit, exclude_ids and extra_ids): exactly one of the two. Answers a job: 200 with the done job when the work ran inline, else 202 with the running job and Location: /v2/jobs/{id} (poll it after Retry-After). One bulk action runs per workspace at a time; an Idempotency-Key makes a retry answer the same job. Uses 1 unit of the jobs rate limit. Free: costs no credits.
Body parameters
idsstring[]optionalcompanies-v2 company ids (1-25000). Exactly one of
idsandfilters.filtersobjectoptionalThe Company Search filter set; active filters AND together. Also taken by Save Companies Search.
Child attributes
companyobjectoptionalCompany Search
companyfilter: match specific companies byid,name,domainorlinkedin_id.Child attributes
idobjectoptionalInclude/exclude list of GetProspect company ids, used by the Company Search
company.idfilter.Field Type Description includestring[] Only these companies, by id. Max 20000 ids.Example:
["64f1a2b3c4d5e6f7a8b9c0d2"]excludestring[] Reject these companies (same idvalues). Max 20000 ids.nameobjectoptionalInclude/exclude list of strings matched exactly and case-insensitively, used by Company Search filters such as industry, name and domain.
Field Type Description includestring[] Match companies whose value is in this list - any single value qualifies (exact, case-insensitive). Optional - provide include and/or exclude. Max 500 items. excludestring[] Reject companies whose value is in this list (exact, case-insensitive). 0-500 items. domainobjectoptionalInclude/exclude list of strings matched exactly and case-insensitively, used by Company Search filters such as industry, name and domain.
Field Type Description includestring[] Match companies whose value is in this list - any single value qualifies (exact, case-insensitive). Optional - provide include and/or exclude. Max 500 items. excludestring[] Reject companies whose value is in this list (exact, case-insensitive). 0-500 items. linkedin_idobjectoptionalInclude/exclude filter on LinkedIn's numeric company id, shared by the
company.linkedin_idfilter of People Search and Company Search.Field Type Description includeinteger[] Match these LinkedIn companies. LinkedIn's numeric company id. Company URLs are not accepted here - enrich the company by linkedin_urlfirst, then filter by theidthat comes back. Max 500 items.Example:
[162479]excludeinteger[] Reject these LinkedIn companies. LinkedIn's numeric company id. Company URLs are not accepted here - enrich the company by linkedin_urlfirst, then filter by theidthat comes back. Max 500 items.
Example
{ "filters": { "company": { "domain": { "include": [ "intercom.com", "stripe.com" ] } } } }company_industryobjectoptionalInclude/exclude list of strings matched exactly and case-insensitively, used by Company Search filters such as industry, name and domain.
Field Type Description includestring[] Match companies whose value is in this list - any single value qualifies (exact, case-insensitive). Optional - provide include and/or exclude. Max 500 items. excludestring[] Reject companies whose value is in this list (exact, case-insensitive). 0-500 items. Example
{ "filters": { "company_industry": { "include": [ "Software & Internet", "IT Services & IT Consulting" ], "exclude": [ "Staffing & Recruiting" ] } } }company_typeobjectoptionalInclude/exclude filter on company type (Company types), shared by
company_typein People Search and Company Search.Field Type Description includeenum[] Company types to match (any of). Allowed values:
Privately HeldPublic CompanyNon ProfitSelf OwnedSelf EmployedPartnershipEducationalGovernment AgencyUnknownexcludeenum[] Company types to reject. Allowed values:
Privately HeldPublic CompanyNon ProfitSelf OwnedSelf EmployedPartnershipEducationalGovernment AgencyUnknownExample
{ "filters": { "company_type": { "include": [ "Privately Held", "Public Company" ] } } }company_business_typeobjectoptionalInclude/exclude filter on business type (Business types), shared by
company_business_typein People Search and Company Search.Field Type Description includeenum[] Business types to match (any of). Allowed values:
B2BB2CNonprofitUnknownexcludeenum[] Business types to reject. Allowed values:
B2BB2CNonprofitUnknownExample
{ "filters": { "company_business_type": { "include": [ "B2B" ] } } }company_revenue_streamobjectoptionalInclude/exclude filter on revenue stream (Revenue streams), shared by
company_revenue_streamin People Search and Company Search.Field Type Description includeenum[] Revenue streams to match (any of). Allowed values:
Professional ServicesProduct SalesGrants / DonationsSubscriptions / RecurringProject / Contract WorkEvent / Experience RevenueTransaction FeesRental / LeasingAdvertisingFinancial ServicesLicensing / IPUnknownexcludeenum[] Revenue streams to reject. Allowed values:
Professional ServicesProduct SalesGrants / DonationsSubscriptions / RecurringProject / Contract WorkEvent / Experience RevenueTransaction FeesRental / LeasingAdvertisingFinancial ServicesLicensing / IPUnknownExample
{ "filters": { "company_revenue_stream": { "include": [ "Subscriptions / Recurring", "Product Sales" ] } } }company_countryobjectoptionalCompany Search
company_countryfilter: ISO-3166-1 alpha-2 codes to include or exclude, plusheadquarters_only.Field Type Description includestring[] Match companies whose value is in this list - any single value qualifies (exact, case-insensitive). Optional - provide include and/or exclude. Max 500 items. excludestring[] Reject companies whose value is in this list (exact, case-insensitive). 0-500 items. headquarters_onlyboolean 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). default: false. Example
{ "filters": { "company_country": { "include": [ "US", "CA" ], "headquarters_only": true } } }company_locationobjectoptionalCompany location filter on unified location strings plus
headquarters_only, shared bycompany_locationin People Search and Company Search.Field Type Description includestring[] 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. If none of the values resolve to a known location, the request fails with 400. excludestring[] Reject these locations (same unified-string format). Max 100 items, each 2-200 chars. Values that do not resolve are skipped. headquarters_onlyboolean 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). default: false. Example
{ "filters": { "company_location": { "include": [ "San Francisco, California, United States" ], "headquarters_only": true } } }company_headcount_rangeenum[]optionalBucketed headcount range (see Employee ranges). 1-8 buckets.
Example
{ "filters": { "company_headcount_range": [ "51-200", "201-500" ] } }company_headcount_customobjectoptionalInclusive numeric range (
min/max), used by Company Searchcompany_headcount_customandcompany_founded.Field Type Description minnumber Lower bound (inclusive). Optional. maxnumber Upper bound (inclusive). Must be >= min. Optional. Example
{ "filters": { "company_headcount_custom": { "min": 100, "max": 5000 } } }company_foundedobjectoptionalInclusive numeric range (
min/max), used by Company Searchcompany_headcount_customandcompany_founded.Field Type Description minnumber Lower bound (inclusive). Optional. maxnumber Upper bound (inclusive). Must be >= min. Optional. Example
{ "filters": { "company_founded": { "min": 2010, "max": 2020 } } }company_naicsobjectoptionalInclude/exclude list of numbers, used by Company Search
company_naics.Field Type Description includenumber[] Match companies whose value is in this list - any single value qualifies. Optional - provide include and/or exclude. Max 500 items. excludenumber[] Reject companies whose value is in this list. 0-500 items. Example
{ "filters": { "company_naics": { "include": [ 541511, 541512 ] } } }company_technologiesobjectoptionalFilter on technologies detected on the company website, by suggest id, shared by
company_technologiesin People Search and Company Search.Field Type Description includestring[] 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"]excludestring[] Reject companies using any of these technology ids. Max 500. match_modeenum How includecombines:ANY(default) - at least one;ALL- every one, on the same company.Allowed values:
ANYALLExample
{ "filters": { "company_technologies": { "include": [ "3421" ], "match_mode": "ANY" } } }company_technology_categoriesobjectoptionalFilter on technology categories, by suggest id, shared by
company_technology_categoriesin People Search and Company Search.Field Type Description includestring[] Category ids to match (any of). Max 200. Example:
["1"]excludestring[] Reject companies using any technology in these category ids. Max 200. Example
{ "filters": { "company_technology_categories": { "include": [ "1" ] } } }company_keywordsobjectoptionalPhrase filter on company keyword fields (Keyword sources), shared by
company_keywordsin People Search and Company Search.Field Type Description includestring[]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. excludestring[] Phrases that disqualify a company. 0-20 items. Matched as phrases, same as include.include_allboolean When true, every phrase in includemust match; otherwise any single match qualifies. default: false.sourcesenum[] Restrict matching to these source fields (see Keyword sources). Omit to use the default source set - see this company_keywordsfilter's own description above for what that is.Example
{ "filters": { "company_keywords": { "include": [ "customer support", "help desk" ], "include_all": true, "sources": [ "specialties" ] } } }listsobjectoptionalFilter for Company Search on your workspace's saved companies: list membership, and saved or not. Carry at least one of
include,excludeorsaved.Field Type Description savedenum 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:
anynonewithout_listincludestring[] Only companies your workspace filed into these company list ids ( GET /v2/lists?type=companies). Max 100.excludestring[] Hide companies your workspace filed into these company list ids. Max 100. Example
{ "filters": { "lists": { "include": [ "66f1a2b3c4d5e6f7a8b9c0d1" ] } } }
sort_byenumoptionalWith
filters: which companies are "the firstlimit".Allowed values:
company_namecompany_employee_countcompany_industrycompany_countrycompany_foundedcompany_saved_atsort_directionenumoptionalIgnored without
sort_by.Allowed values:
ascdesclimitnumberoptionalmin: 1max: 25000With
filters: how many companies at most.exclude_idsstring[]optionalWith
filters: company ids taken out of the match.extra_idsstring[]optionalWith
filters: hand-ticked company ids outside the match, added to it.list_idsstring[]requiredThe company lists the selection ends up in, exactly (1-100).
Responses
For error handling see Errors. Response objects are described in Person object and Company object.
