{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/talktohumans-app/json-schema/talktohumans-app-search-people-request-schema.json",
  "title": "SearchPeopleRequest",
  "description": "At least one filter besides `exclude`, or `sales_navigator_url` alone.\nList filters match any of their values, and people must match every filter set.\n",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/talktohumans-app-openapi.yml#/components/schemas/SearchPeopleRequest",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "account_id": {
      "type": "string",
      "description": "LinkedIn account ID returned by `GET /v1/accounts`. Required when the organization has multiple LinkedIn accounts.",
      "pattern": "^[1-9][0-9]*$"
    },
    "keywords": {
      "type": "string",
      "maxLength": 200,
      "description": "Words to search for, such as a skill or a name. Supports LinkedIn's `AND`, `OR` and `NOT`."
    },
    "job_titles": {
      "type": "array",
      "maxItems": 20,
      "description": "Current job titles, such as `Head of Sales`.",
      "items": {
        "type": "string"
      }
    },
    "past_job_titles": {
      "type": "array",
      "maxItems": 20,
      "description": "Past job titles.",
      "items": {
        "type": "string"
      }
    },
    "company_linkedin_urls": {
      "type": "array",
      "maxItems": 20,
      "description": "LinkedIn company page URLs of their current employer, such as `https://www.linkedin.com/company/google`.",
      "items": {
        "type": "string"
      }
    },
    "past_company_linkedin_urls": {
      "type": "array",
      "maxItems": 20,
      "description": "LinkedIn company page URLs of their past employers.",
      "items": {
        "type": "string"
      }
    },
    "school_linkedin_urls": {
      "type": "array",
      "maxItems": 20,
      "description": "LinkedIn school page URLs, such as `https://www.linkedin.com/school/stanford-university`.",
      "items": {
        "type": "string"
      }
    },
    "locations": {
      "type": "array",
      "maxItems": 20,
      "description": "Locations, such as `Paris` or `United States`.",
      "items": {
        "type": "string"
      }
    },
    "industries": {
      "type": "array",
      "maxItems": 20,
      "description": "Industries of their current employer, as LinkedIn company pages name them, such as `Software Development` or `Financial Services`. An unknown one fails with the closest names.",
      "items": {
        "type": "string"
      }
    },
    "seniorities": {
      "type": "array",
      "maxItems": 20,
      "description": "Seniority levels (`In Training`, `Entry Level`, `Senior`, `Strategic`, `Entry Level Manager`, `Experienced Manager`, `Director`, `Vice President`, `CXO` or `Owner / Partner`).",
      "items": {
        "type": "string"
      }
    },
    "company_sizes": {
      "type": "array",
      "maxItems": 20,
      "description": "Employee counts of their current employer (`self-employed`, `1-10`, `11-50`, `51-200`, `201-500`, `501-1000`, `1001-5000`, `5001-10000` or `10001+`).",
      "items": {
        "type": "string"
      }
    },
    "languages": {
      "type": "array",
      "maxItems": 20,
      "description": "Languages of their LinkedIn profile (`Arabic`, `Bahasa Indonesia`, `Chinese`, `Czech`, `Danish`, `Dutch`, `English`, `French`, `German`, `Italian`, `Japanese`, `Korean`, `Malay`, `Norwegian`, `Polish`, `Portuguese`, `Romanian`, `Russian`, `Spanish`, `Swedish`, `Tagalog` or `Turkish`).",
      "items": {
        "type": "string"
      }
    },
    "exclude": {
      "$ref": "#/$defs/SearchPeopleExclusions"
    },
    "sales_navigator_url": {
      "type": "string",
      "description": "Sales Navigator lead search URL, copied from the address bar, instead of every other filter.\nFilters tied to your own Sales Navigator account (lead and account lists, connections, past colleagues, saved leads, lead interactions, personas, profile viewers, company followers, shared experiences) aren't supported.\n"
    },
    "cursor": {
      "type": "string",
      "description": "Cursor returned as `data.pagination.next_cursor` by the previous call. It carries its search, so the filters can be left out; if you pass them, they must be the same."
    }
  },
  "$defs": {
    "SearchPeopleExclusions": {
      "type": "object",
      "additionalProperties": false,
      "description": "People to leave out, matching any of these values. Values are as in the filters of the same name.",
      "properties": {
        "job_titles": {
          "type": "array",
          "maxItems": 20,
          "description": "Current job titles.",
          "items": {
            "type": "string"
          }
        },
        "past_job_titles": {
          "type": "array",
          "maxItems": 20,
          "description": "Past job titles.",
          "items": {
            "type": "string"
          }
        },
        "company_linkedin_urls": {
          "type": "array",
          "maxItems": 20,
          "description": "LinkedIn company page URLs of current employers.",
          "items": {
            "type": "string"
          }
        },
        "past_company_linkedin_urls": {
          "type": "array",
          "maxItems": 20,
          "description": "LinkedIn company page URLs of past employers.",
          "items": {
            "type": "string"
          }
        },
        "school_linkedin_urls": {
          "type": "array",
          "maxItems": 20,
          "description": "LinkedIn school page URLs.",
          "items": {
            "type": "string"
          }
        },
        "locations": {
          "type": "array",
          "maxItems": 20,
          "description": "Locations.",
          "items": {
            "type": "string"
          }
        },
        "industries": {
          "type": "array",
          "maxItems": 20,
          "description": "Industries of the current employer.",
          "items": {
            "type": "string"
          }
        },
        "seniorities": {
          "type": "array",
          "maxItems": 20,
          "description": "Seniority levels.",
          "items": {
            "type": "string"
          }
        }
      }
    }
  }
}