Aller au contenu principal
Rodz API
FR EN
v2.0.0

Référence / Watchlists / Add companies to a watchlist

Add companies to a watchlist

Les résumés et descriptions des routes viennent du contrat OpenAPI et restent en anglais.

Add companies to any signal that takes a company list — a watchlist, or any signal whose type accepts restrictToCompanies (competitor customer care, person and mutual connections, warm intros, company followers, public tenders, Competitor Connections…

POST https://api.rodz.io/api/v1/watchlists/{signalId}/companies

Documenté depuis le contrat OpenAPI, version 2.0.0 de l’API.

Lire la description complète

Add companies to any signal that takes a company list — a watchlist, or any signal whose type accepts restrictToCompanies (competitor customer care, person and mutual connections, warm intros, company followers, public tenders, Competitor Connections Watchlist) — without recreating it: extend the list as your target-account list grows, replace it when the quarter’s territory changes, or load your whole CRM account base in one call. This is THE way to edit a company list after the signal is created.

The first list narrows an ordinary signal. Sent to a signal that is not a watchlist and has no list yet, the first companies turn the restriction on: from then on the signal delivers ONLY people at the companies (or the people) on its list, and everything else it finds is left out before billing. The answer says so with restrictionTurnedOn: true and a notice. To deliver everything its filters match again, call DELETE /api/v1/watchlists/{signalId}. A Competitor Connections signal not yet narrowed takes no new list: 422 RESTRICTION_MOVED points to the Competitor Connections Watchlist.

Account watchlist sources: the id of a source of an account watchlist reads and edits its account watchlist’s list (the one list every source shares).

Input: signalId (path), companies (array of names, domains or LinkedIn company URLs), and mode: append (default) or replace (companies not in the list stop being checked).

Replacing the whole list: mode: replace is the one way to do it — send the complete list as it should stand after the call; companies already on it keep their history, new ones are added and the rest stop being checked. A list that would leave nothing watched is refused, so a bad export never silently empties a list (an empty list matches nothing, so the signal would stop delivering): an empty companies array answers 400 EMPTY_LIST, and a replace in which no entry is a usable name, domain or LinkedIn company page answers 400 NO_USABLE_COMPANY; the list is left as it was in both cases. To stop narrowing a signal created with restrictToCompanies to its list, call DELETE /api/v1/watchlists/{signalId} instead.

How many companies per call. Up to 150,000 when the list filters what a signal delivers: a restrictToCompanies list (competitor connections, person connections, warm intros, company followers, public tenders) and the fundraising, M&A, forecast and public tenders watchlists. Up to 10,000 on a watchlist that checks each company individually (job offers, recruitment campaigns, new decision makers, company news, account watchlist); a longer list is refused with 422 LIST_TOO_LARGE, so send it in several calls, the first with your mode and the next ones with append.

Up to 10,000 companies are imported during the call, which answers 200 with the counts below. Above 10,000, the call answers 202 at once with an importId and a statusUrl; follow the import with GET /api/v1/watchlists/{signalId}/companies/imports/{importId} until status is done (usually a few minutes for 150,000 companies). Until then the list in effect does not change: the new companies start counting, and a replace drops the companies it does not name, together and only once the whole list is in. While an import runs, another call on the same list answers 409 IMPORT_IN_PROGRESS.

Each entry is either a plain string or an object {name, domain, linkedinUrl} (all optional, at least one required) carrying everything you know about the company, e.g. {"name": "PayFit", "domain": "payfit.com", "linkedinUrl": "https://www.linkedin.com/company/payfit"}. Strings and objects can be mixed in one call, and entries naming the same company are merged into one watched company carrying all their identifiers.

Send the LinkedIn company URL whenever you have it. It identifies the company exactly; a name does not, and two companies sharing a name cannot be told apart from the name alone — the list will look fully matched while watching the wrong one. A name still matches more reliably than a domain, so send the name when the URL is not available. Re-sending a company with its URL added corrects a match made earlier from its name.

Output: 200: added, alreadyWatched (already on the list, details refreshed), rejected (neither a usable name nor a domain), stoppedWatching (dropped by a replace), totalWatched, restrictionTurnedOn (this call gave an ordinary signal its first list) and notice. 202: importId, status (queued), mode, totalEntries, statusUrl and restrictionTurnsOn (the restriction turns on once the import is done).

Use cases:

  • Restrict competitor connections to your accounts — send the 120,000 accounts of your CRM once, and only people at those accounts are delivered.
  • Nightly CRM mirror — replace the list every night from your CRM export; the switch happens in one step, so no lead is filtered against a half-loaded list.
  • Territory change — replace a rep’s job-offer watchlist with next quarter’s accounts.

On a job offers watchlist, a company added here is matched to a real employer on its first check, not immediately — call GET /companies afterwards and read unmatched to confirm the list is fully covered. Its first check only looks back over the signal’s firstRunLookbackDays, so adding a company does not dump its whole posting history on you.

Authentification et en-têtes

Toutes les routes demandent une clé d’API. Vous la créez dans le tableau de bord, sous Intégrations puis API. Voir comment obtenir une clé.

Authorization requis

Bearer suivi de votre clé d’API, par exemple Bearer USR_...

Content-Type requis

application/json

Paramètres

signalId string path requis

Id of the watchlist signal, as returned by the create endpoint.

exemple
"a1b2c3d4-e5f6-7890-abcd-ef1234567890"

Corps de la requête

companies string | object[] requis

Companies to watch: up to 150,000 per call on a list that filters a signal's results (a restrictToCompanies list, a fundraising, M&A, forecast or public tenders watchlist), up to 10,000 on every other watchlist.

Lire la suite

Companies to watch: up to 150,000 per call on a list that filters a signal's results (a restrictToCompanies list, a fundraising, M&A, forecast or public tenders watchlist), up to 10,000 on every other watchlist. Each entry is either a plain string — a name ("Doctolib"), a domain ("doctolib.fr") or a LinkedIn company URL — or an object {name, domain, linkedinUrl} (all optional, at least one required) carrying everything you know about the company. Both forms can be mixed. Send every identifier you have: the LinkedIn URL identifies the company exactly, and entries naming the same company are merged into one.

Accepted entry forms: a company name ("Doctolib"); a domain or website URL ("payfit.com", "https://www.payfit.com/fr"); its LinkedIn company page ("https://www.linkedin.com/company/payfit", in any spelling: with or without https:// and www., a country subdomain, a trailing path or query; school and showcase pages too); its numeric LinkedIn company id ("10426145") or a Sales Navigator company link ("https://www.linkedin.com/sales/company/10426145"), both read as that id; or an object {name, domain, linkedinUrl} combining several. Any other LinkedIn link names no company: a person's profile (/in/), a post or a group page is refused with 422 INVALID_COMPANY_ENTRY, which lists each offending entry, and nothing is saved.

  • maxItems: 150000
  • items.additionalProperties: false
mode string facultatif

append (default) adds these to the list. replace makes this the whole list: companies not in it stop being checked. On a call of more than 10,000 companies the list in effect does not change until the import is done; a replace then switches it over in one step.

par défaut
"append"
Valeurs permises :
  • "append"
  • "replace"

Réponses

200 OK
Schéma de la réponse
added integer requis

Entries now being watched that were not before.

alreadyWatched integer facultatif

Entries already on the list, left unchanged.

par défaut
0
rejected integer facultatif

Entries that could not be used — not a valid identifier for this list.

par défaut
0
stoppedWatching integer facultatif

Entries dropped because mode was replace. Always 0 on append.

par défaut
0
totalWatched integer requis

Entries being watched after this call.

restrictionTurnedOn boolean facultatif

true when this call gave an ordinary signal (not a watchlist) its first list: from now on the signal delivers ONLY the people or companies on its list, and everything else it finds is left out before billing. Lift it with DELETE /api/v1/watchlists/{signalId}. Always false on a watchlist and on a signal already narrowed to a list.

par défaut
false
notice string facultatif accepte null

A plain sentence when restrictionTurnedOn is true; null otherwise.

202 More than 10,000 companies on a list that filters a signal's results: accepted and imported in the background. Follow statusUrl.
Schéma de la réponse
importId string requis

Pass it to the status endpoint (statusUrl).

status "queued" facultatif

Always queued on acceptance.

par défaut
"queued"
mode string requis

The mode you sent.

Valeurs permises :
  • "append"
  • "replace"
totalEntries integer requis

Entries received in this call.

statusUrl string requis

Where to follow the import until it is done.

restrictionTurnsOn boolean facultatif

true when this is the first list of an ordinary signal (not a watchlist): once the import is done, the signal delivers ONLY the companies or people on its list. Lift it with DELETE /api/v1/watchlists/{signalId}.

par défaut
false
400 The signal exists but watches the other kind of subject
404 No watchlist signal with this id on your account
409 A large import is still running on this watchlist
422 Validation Error
Schéma de la réponse · HTTPValidationError
detail object[] facultatif
5 champs dans detail
loc string | integer[] requis
msg string requis
type string requis
input any facultatif
ctx object facultatif
429 Rate limit exceeded. Retry after the number of seconds in the Retry-After response header.