{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rodz-io/json-schema/rodz-io-person-connections-config-schema.json",
  "title": "PersonConnectionsConfig",
  "description": "Config for person_connections: the network of people you name.\n\nTwo parts, independent of each other, and your filters (personas, company\nsize, location, industry, exclusions) apply to both. With no filter at all,\neveryone is delivered.\n\n- **One-time extract** (`oneTimeExtractCount`): up to that many people from\n  the watched people's EXISTING networks, delivered once, as fast as they\n  are read — not metered by `dailyLeadLimit`. The count is of leads\n  delivered, after your filters: a total for the whole signal, shared\n  across the people you watch (about `oneTimeExtractCount` / number of\n  people each while some networks are not read yet). 3 credits per lead.\n  To give every watched person the same share instead, set\n  `oneTimeExtractPerPerson`: up to that many leads from each person's\n  network, the total being that number x the people watched.\n- **Daily new connections** (`dailyNewConnections`): once the one-time part\n  is complete, keep delivering the people who newly connect with them,\n  under `dailyLeadLimit`. Off, the signal stops after the one-time part.\n  5 credits per lead.\n\nExisting connections are delivered ONLY by the one-time extract, up to\n`oneTimeExtractCount`. The daily part delivers only people who connect with\na watched person after the signal started watching them: with\n`oneTimeExtractCount` 0, nothing from the existing networks is delivered or\nbilled, and the first read only records where each network stands.\n\n`restrictToCompanies` keeps only the people whose CURRENT employer is on\nyour account list: your team's network, only at your target accounts.\nEveryone else is left out before billing and does not count toward\n`oneTimeExtractCount`. Empty or missing: no restriction.\n\n`rawExtract` (no filters): the one-time extract delivers every connection,\n1 credit per lead (1.5 with an email found when `getEmails` is on); your\nexclusion and account lists still apply. The daily part is unchanged.",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rodz-io-openapi.json#/components/schemas/PersonConnectionsConfig",
  "properties": {
    "restrictToCompanies": {
      "items": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "$ref": "#/$defs/WatchedCompanyObject"
          }
        ]
      },
      "type": "array",
      "title": "Restricttocompanies",
      "description": "Only deliver leads at these companies. Each entry is either a plain string — a name, a domain, or a LinkedIn company URL (e.g. `\"Doctolib\"`, `\"payfit.com\"`) — or an object `{name, domain, linkedinUrl}` (all optional, at least one required) carrying everything you know about the company; both forms can be mixed. The more identifiers you send, the more of your list is recognised. Matching is exact once punctuation and legal suffixes are ignored. Consumed on create, so it is NOT echoed back in `config`; read and edit it at `GET|POST|DELETE /api/v1/watchlists/{signalId}/companies`. Once the signal has a list it delivers ONLY leads on it; `DELETE /api/v1/watchlists/{signalId}` lifts it. **Deprecated in a `PATCH /api/v1/signals/{signalId}`** (it still works: a non-empty list replaces the current one, and the answer carries a `DEPRECATED_FIELD` warning): use `POST /api/v1/watchlists/{signalId}/companies` with `mode: replace` instead.\n\n**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."
    },
    "restrictToProfiles": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Restricttoprofiles",
      "description": "Only deliver leads for these people — LinkedIn profile URLs. Consumed on create like `restrictToCompanies`; read and edit it at `GET|POST|DELETE /api/v1/watchlists/{signalId}/profiles`. **Deprecated in a `PATCH /api/v1/signals/{signalId}`** (it still works: a non-empty list replaces the current one, with a `DEPRECATED_FIELD` warning): use `POST /api/v1/watchlists/{signalId}/profiles` with `mode: replace` instead."
    },
    "companySizeFilters": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Companysizefilters",
      "description": "Company size filter. Values: \"Self-employed\", \"1-10\", \"11-50\", \"51-200\", \"201-500\", \"501-1000\", \"1001-5000\", \"5001-10000\", \"10001+\". A company qualifies when its declared size band OR its employee count falls in a selected band; a count within 10% of a band edge counts for both neighbouring bands, and a company declaring 501+ employees is never placed in a smaller band by a low count. The delivered `employee_range` / `employee_count` are the pair the lead was judged on."
    },
    "targetPersonas": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Targetpersonas",
      "description": "Filter by job-role persona (decision-maker targeting). Accepted values are the persona display names listed here; see GET /v1/personas for the full taxonomy with department, seniority and EN/FR job titles. Titles are matched by meaning, not as text: `targetPersonas` and `customPersonaTitles` form ONE list and a person qualifies by matching ANY entry. Each entry is read as a function plus a seniority level, in any language (\"Directeur Commercial\" satisfies \"Sales Director\", \"Président\" or \"Directeur général\" a CEO target), and a role at that level or above qualifies: a Director or Head target refuses a plain Manager; a founder running the company counts as CEO. A custom title carries the level its own words state; one with no level word accepts every level. Valid values: \"Account Executive\", \"Account Manager\", \"Accountant\", \"Agency Director\", \"Business Analyst\", \"Business Developer\", \"Business Unit Director\", \"Buyer\", \"CEO\", \"CIO\", \"CSR Director\", \"CSR Manager\", \"CTO\", \"Communication Director\", \"Community Manager\", \"Content Manager\", \"Copywriter\", \"Creative Director\", \"Customer Success Director\", \"Customer Success Manager\", \"Customer Support Agent\", \"Cybersecurity Director\", \"Data Analyst\", \"Data Director\", \"Designer\", \"DevOps Engineer\", \"Digital Director\", \"Digital Project Manager\", \"Ecommerce Director\", \"Ecommerce Manager\", \"Engineering Manager\", \"Engineering Office Director\", \"Ergonomist\", \"Executive Assistant\", \"Finance Director\", \"Finance Manager\", \"GTM Director\", \"GTM Manager\", \"Growth Director\", \"Growth Manager\", \"HR Assistant\", \"HR Development\", \"HR Director\", \"Happiness Manager\", \"IT Project Manager\", \"Industrial Director\", \"Innovation Director\", \"Lab Manager\", \"Legal Counsel\", \"Legal Director\", \"Legal Manager\", \"Logistics Coordinator\", \"Logistics Director\", \"M&A Director\", \"Marketing Director\", \"Marketing Manager\", \"Office Manager\", \"Omnichannel Director\", \"Operations Director\", \"Operations Manager\", \"Payroll Manager\", \"Payroll Officer\", \"Procurement Specialist\", \"Product Director\", \"Product Manager\", \"Project Manager\", \"Purchasing Director\", \"Purchasing Manager\", \"Quality Health and Safety\", \"Quality Manager\", \"Quality Technician\", \"R&D Director\", \"R&D Engineer\", \"R&D Manager\", \"Recruitment Manager\", \"Research Director\", \"Research Scientist\", \"SDR / BDR\", \"Sales Director\", \"Sales Manager\", \"Social Media Director\", \"Social Media Manager\", \"Software Engineer\", \"Supply Chain Director\", \"Support Director\", \"Support Manager\", \"Talent Acquisition\", \"Technical Director\", \"Training Director\", \"Training Officer\", \"Transformation Director\", \"UX Designer\", \"Warehouse Director\", \"Web Developer\""
    },
    "locationFilter": {
      "type": "string",
      "title": "Locationfilter",
      "description": "Filter by location (e.g. 'France', 'Paris')",
      "default": ""
    },
    "locations": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Locations",
      "description": "Target locations (e.g. ['France', 'Paris']). Applies to the PERSON's LinkedIn profile location, not the company's headquarters: a person in Paris working for a company headquartered abroad matches France. One matching entry is enough. Only fundraising and M&A signals filter on headquarters (`hqLocations`)."
    },
    "excludedLocations": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Excludedlocations",
      "description": "Locations to exclude from results"
    },
    "industryFilters": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Industryfilters",
      "description": "Only return companies in these LinkedIn industries. Two kinds of value work: a single industry (e.g. 'Software Development') or a broad category that covers many (e.g. 'Technology and Media'). Matching is exact, so a near-miss like 'Software development' matches nothing and the signal quietly produces no leads. Empty = all industries. Call GET /api/v1/signals/industries for the valid list."
    },
    "industryMatchExact": {
      "type": "boolean",
      "title": "Industrymatchexact",
      "description": "Set to true to match only the industries listed in `industryFilters`. By default the filter follows the LinkedIn industry hierarchy both ways: a company labelled with a broader industry that contains a listed one matches (a filter on 'Housing and Community Development' accepts a company labelled 'Government Administration'), and so does a company labelled with a narrower industry inside a listed one (a filter on 'Technology, Information and Internet' accepts 'Software Development'). With true, both are rejected; a category name (e.g. 'Technology and Media') still covers its industries. `excludedIndustryFilters` is unchanged. Default false.",
      "default": false
    },
    "allowUnknownIndustry": {
      "type": "boolean",
      "title": "Allowunknownindustry",
      "description": "Whether a lead whose company industry could not be determined is delivered when you filter on `industryFilters`. Default true: such leads are delivered, so a narrow industry selection still reaches companies whose industry is not published. Set to false to receive only leads whose company industry is known and matches your `industryFilters` - fewer leads, none with an empty industry. Has no effect without `industryFilters` (`excludedIndustryFilters` alone never refuses an unknown industry). Example: `industryFilters: [\"Hospitality\"]`, `industryMatchExact: true`, `allowUnknownIndustry: false` delivers only companies labelled Hospitality.",
      "default": true
    },
    "companyTypeFilters": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Companytypefilters",
      "description": "Only return companies of these legal/ownership types. Valid values: 'Privately Held', 'Public Company', 'Nonprofit', 'Educational Institution', 'Partnership', 'Sole Proprietorship', 'Government Agency', 'Self-Employed'. Empty = all types. A company whose type is unknown is KEPT, not dropped, so this narrows results only where the type is known."
    },
    "excludedIndustryFilters": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Excludedindustryfilters",
      "description": "LinkedIn industries to exclude. Same vocabulary as `industryFilters` (single industry or category name); an unrecognised value excludes nothing. Call GET /api/v1/signals/industries for the valid list."
    },
    "excludedCompanyUrls": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Excludedcompanyurls",
      "description": "LinkedIn company URLs to exclude from results"
    },
    "excludedCompanySizeFilters": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Excludedcompanysizefilters",
      "description": "Company sizes to exclude from results"
    },
    "customPersonaTitles": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Custompersonatitles",
      "description": "Custom free-text job titles to match in addition to predefined personas. Titles are matched by meaning, not as text: `targetPersonas` and `customPersonaTitles` form ONE list and a person qualifies by matching ANY entry. Each entry is read as a function plus a seniority level, in any language (\"Directeur Commercial\" satisfies \"Sales Director\", \"Président\" or \"Directeur général\" a CEO target), and a role at that level or above qualifies: a Director or Head target refuses a plain Manager; a founder running the company counts as CEO. A custom title carries the level its own words state; one with no level word accepts every level."
    },
    "excludedTitles": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Excludedtitles",
      "description": "Job titles to exclude. Matched as whole words, case- and accent-insensitive: \"intern\" excludes \"Intern\" and \"Interns\", never \"International\"; a phrase matches the same words in the same order; end a word with * to match a prefix (\"infirmi*\" excludes \"Infirmière\")."
    },
    "getEmails": {
      "type": "boolean",
      "title": "Getemails",
      "description": "Enable email enrichment (0.5 credit/lead, charged only on success)",
      "default": false
    },
    "getPhones": {
      "type": "boolean",
      "title": "Getphones",
      "description": "Enable phone enrichment (5 credits/lead, charged only on success)",
      "default": false
    },
    "getSireneData": {
      "type": "boolean",
      "title": "Getsirenedata",
      "description": "Enrich with French SIRENE registry data: the company's SIREN and, once enabled for your account, its company register record (`company.registry`) (1 credit/lead, charged only when the lead is delivered with a SIREN)",
      "default": false
    },
    "detectTechnologies": {
      "type": "boolean",
      "title": "Detecttechnologies",
      "description": "Detect technologies used on the company's public website (1 credit/lead, charged only on success)",
      "default": false
    },
    "getHomepageContent": {
      "type": "boolean",
      "title": "Gethomepagecontent",
      "description": "Fetch the company's homepage content (1 credit/lead, charged only on success)",
      "default": false
    },
    "includeCompanyPhone": {
      "type": "boolean",
      "title": "Includecompanyphone",
      "description": "Add the company's main switchboard number to each lead (`company.phone` in the webhook, E.164), for calling the company rather than one person. Only landlines are delivered, never a personal mobile. 0.5 credit per number found: nothing is charged when no switchboard number is found. Off by default.",
      "default": false
    },
    "linkedinProfileUrls": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Linkedinprofileurls",
      "description": "LinkedIn profile URLs of the people whose connections you want, 1 to 500. A person who hides their connection list on LinkedIn cannot be read; the signal reports them as not visible."
    },
    "oneTimeExtractCount": {
      "type": "integer",
      "maximum": 25000.0,
      "minimum": 0.0,
      "title": "Onetimeextractcount",
      "description": "How many people to deliver, once, from the watched people's existing connections — counted in leads delivered after your filters. A total for the whole signal, shared across the people you watch: while some of their networks are not read yet, each person delivers up to about this number divided by the number of people watched, so everyone gets a share; once every network is read, what is left goes to anyone. If their networks hold fewer matching people, everyone who matches is delivered. People added after this total is reached: only their new connections, when `dailyNewConnections` is on. Not metered by `dailyLeadLimit`; billed 3 credits per lead delivered. `0` skips this part: no existing connection is delivered or billed. Ignored when `oneTimeExtractPerPerson` is set.",
      "default": 500
    },
    "oneTimeExtractPerPerson": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 25000.0,
          "minimum": 1.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Onetimeextractperperson",
      "description": "Read up to this many connections per watched person in the one-time extract, 1 to 25,000, counted in leads delivered after your filters. Use it when every person you watch matters as much as the others: each person delivers up to this number, and a person who reaches it waits while other networks are still being read, so a large network never takes the share of a smaller one. The one-time total becomes this number x the people in `linkedinProfileUrls` (for example 100 x 279 people = 27,900 leads at most) and replaces `oneTimeExtractCount`. Once every network is read, what is left of the total goes to anyone. Billed 3 credits per lead delivered, and activation checks that your balance covers the total. Not set (the default): `oneTimeExtractCount` applies as before."
    },
    "dailyNewConnections": {
      "type": "boolean",
      "title": "Dailynewconnections",
      "description": "After the one-time extract, keep delivering the people who newly connect with the watched people, up to `dailyLeadLimit` a day, billed 5 credits per lead delivered. Only people who connect after the signal started watching are delivered: existing connections beyond `oneTimeExtractCount` never are. `false` stops the signal once the one-time extract is complete.",
      "default": false
    },
    "rawExtract": {
      "type": "boolean",
      "title": "Rawextract",
      "description": "No filters on the one-time extract: get every connection of the watched people, up to `oneTimeExtractCount`, for 1 credit per lead instead of 3 — for mapping a whole network into your CRM and qualifying it yourself. Personas, custom titles, excluded titles, locations, company size, industry and company type are not applied to it, and no company data is looked up. Your exclusion list (`excludedCompanyUrls`), your account list (`restrictToCompanies`) and deduplication still apply, since they only narrow. With `getEmails`, the email lookup costs the usual 0.5 credit per email found: 1.5 credits per lead with an email, 1 credit per lead without one (nothing is charged for an email not found). The daily new connections (`dailyNewConnections`) keep every filter and 5 credits per lead.",
      "default": false
    },
    "searchUrl": {
      "type": "string",
      "title": "Searchurl",
      "description": "Operational — set by the system",
      "default": ""
    }
  },
  "type": "object",
  "$defs": {
    "WatchedCompanyObject": {
      "properties": {
        "name": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 500
            },
            {
              "type": "null"
            }
          ],
          "title": "Name",
          "description": "The company name as you know it, e.g. `\"PayFit\"`."
        },
        "domain": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 500
            },
            {
              "type": "null"
            }
          ],
          "title": "Domain",
          "description": "The company website, e.g. `\"payfit.com\"`. A full URL is accepted and reduced to its domain."
        },
        "linkedinUrl": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 2000
            },
            {
              "type": "null"
            }
          ],
          "title": "Linkedinurl",
          "description": "The company LinkedIn page, e.g. `\"https://www.linkedin.com/company/payfit\"`. The most precise identifier of the three. A Sales Navigator company link (`/sales/company/<id>`) or the numeric LinkedIn company id is accepted too, and so are school and showcase pages; any other LinkedIn link (a person's profile, a post) is refused with 422 `INVALID_COMPANY_ENTRY`."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "title": "WatchedCompanyObject",
      "description": "One company, with everything you know about it.\n\nThe object form of a company-list entry. Send every identifier you have:\neach one is another way to recognise the company, and together they\nseparate two companies that share a name."
    }
  }
}