{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rodz-io/json-schema/rodz-io-mutual-connections-config-schema.json",
  "title": "MutualConnectionsConfig",
  "description": "Config for mutual_connections: the people connected to profile A and to a profile B.\n\nName a LinkedIn profile A and one or more profiles B — a prospect and\nsomeone on your side, two decision makers at one account, an investor and\nthe founders of a portfolio; none of them has to be you. Each lead is\nsomeone connected to A and to at least one B, filtered to the roles and\ncompanies you target, and says which B (`mutual_with`).\n\nGive the profiles either as `linkedinProfileUrls` — A first, then each B —\nor as `profileUrlA` and `profileUrlsB`; both forms store the same list,\nwhich is what the signal returns (`linkedinProfileUrls`). A person mutual\nwith several B profiles is delivered, and billed, once.\n\nTo compare several prospects with the same team in one signal, list them\nin `profileUrlsA` and your team in `profileUrlsB`: each lead is connected\nto at least one A and at least one B, and names both (`mutual_with_a`,\n`mutual_with`). It is priced per lead like the one-A signal.\n\nYour filters (personas, company size, location, industry, exclusions) are\napplied to every network. How many mutual connections exist is only known\nonce every network has been read; until then the signal reports how many\npeople of each network have been read\n(`GET /api/v1/signals/{signalId}/mutual-connections`).\n\n- **One-time extract** (`oneTimeExtractCount`): up to that many mutual\n  connections, delivered once, as they are found — not metered by\n  `dailyLeadLimit`.\n- **Daily new mutual connections** (`dailyNewConnections`): afterwards, keep\n  delivering people who newly become connected to both, under\n  `dailyLeadLimit`.\n\nExisting mutual connections are delivered ONLY by the one-time extract, up\nto `oneTimeExtractCount`; with `0`, none is delivered or billed.",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rodz-io-openapi.json#/components/schemas/MutualConnectionsConfig",
  "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": "The LinkedIn profile URLs to compare: profile A first, then each profile B, from 1 to 500 B profiles — `[A, B]` compares two people. A profile that hides its connection list on LinkedIn cannot be read; the signal reports it as not visible."
    },
    "oneTimeExtractCount": {
      "type": "integer",
      "maximum": 25000.0,
      "minimum": 0.0,
      "title": "Onetimeextractcount",
      "description": "How many mutual connections to deliver, once — counted in leads delivered after your filters. Not metered by `dailyLeadLimit`; billed per mutual connection delivered. `0` skips this part: no existing mutual connection is delivered or billed.",
      "default": 100
    },
    "dailyNewConnections": {
      "type": "boolean",
      "title": "Dailynewconnections",
      "description": "After the one-time extract, keep delivering people who newly become connected to profile A and a profile B, up to `dailyLeadLimit` a day. Existing mutual connections beyond `oneTimeExtractCount` are never delivered. `false` stops the signal once the one-time extract is complete.",
      "default": false
    },
    "searchUrl": {
      "type": "string",
      "title": "Searchurl",
      "description": "Operational — set by the system",
      "default": ""
    },
    "profileUrlA": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Profileurla",
      "description": "Optional. Profile A, the person every B is compared with. Replaces the first entry of `linkedinProfileUrls`."
    },
    "profileUrlsB": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Profileurlsb",
      "description": "Optional. The profiles B to compare with profile A (or with every profile in `profileUrlsA`), 1 to 500. Replaces every entry of `linkedinProfileUrls` after the profiles A. Each lead names the B profiles it is connected to in `mutual_with`."
    },
    "profileUrlsA": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Profileurlsa",
      "description": "Optional. Several profiles A, 1 to 500, each compared with every profile B in this one signal — for example the decision makers of several target accounts against your sales team. A lead is someone connected to at least one A and at least one B, delivered and billed once, and names the A profiles it is connected to in `mutual_with_a`. Use it instead of one signal per profile A. A profile cannot be both an A and a B. When several profiles A are not available on your account, the signal can be saved but not activated, and the activation error says so."
    }
  },
  "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."
    }
  }
}