{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/senders-ai/json-schema/senders-ai-search-body-schema.json",
  "title": "SearchBody",
  "description": "At least one filter is required. Unknown keys are refused (400 unknown_arguments); revenue, funding, technology, job-posting, intent and market-segment filters are refused with 400 unsupported_filters.",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/senders-ai-openapi.json#/components/schemas/SearchBody",
  "type": "object",
  "properties": {
    "titles": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 100
      },
      "description": "Current job titles, contains match, any of (e.g. \"VP Sales\" also finds \"Regional VP Sales\"). Up to 20."
    },
    "exclude_titles": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 100
      },
      "description": "Leave out current titles containing any of these (e.g. Intern, Assistant). Up to 20."
    },
    "similar_titles": {
      "type": "boolean",
      "description": "Also match titles the network files as similar (free). The added titles are listed in filters_applied.similar_titles.added."
    },
    "similar_title_values": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 100
      },
      "description": "Your own list of similar titles to use instead of the automatic ones (exact network titles)."
    },
    "seniorities": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 100
      },
      "description": "One or more of: Owner / Partner, CXO, Vice President, Director, Experienced Manager, Entry Level Manager, Strategic, Senior, Entry Level, In Training. Apollo values (owner, c_suite, vp, director, manager, senior, entry, intern) are accepted and mapped."
    },
    "departments": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 100
      },
      "description": "Department of the current role, e.g. \"Sales & Revenue\", \"Marketing\", \"Engineering\", \"Finance\" (exact network names; the portal autocompletes them)."
    },
    "locations": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 100
      },
      "description": "Where the person is: country, state or city names (e.g. United States, California, London). Any of. Up to 100."
    },
    "exclude_locations": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 100
      },
      "description": "Leave out people in these countries, states or cities."
    },
    "hq_locations": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 100
      },
      "description": "Company headquarters: country names, or a state/city contained in the HQ address. Up to 20."
    },
    "exclude_hq_locations": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 100
      },
      "description": "Leave out companies headquartered here. Up to 20."
    },
    "include_unknown_hq": {
      "type": "boolean",
      "description": "With an HQ filter, also keep people whose company has no HQ data (default false; missing_data says how many were left out)."
    },
    "company_names": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 100
      },
      "description": "Current employer names, exact (e.g. Salesforce). Up to 100."
    },
    "exclude_company_names": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 100
      },
      "description": "Leave out these employers, exact names."
    },
    "company_domains": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 100
      },
      "description": "Current employer website domains, e.g. acme.com. Up to 100."
    },
    "exclude_company_domains": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 100
      },
      "description": "Leave out these employer domains."
    },
    "industries": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 100
      },
      "description": "Company industries: LinkedIn names (e.g. \"Software Development\", \"Hospitals and Health Care\"). Apollo names and tag ids are accepted and mapped to both the old and the 2022 LinkedIn names; filters_applied.industries.mapped shows how."
    },
    "exclude_industries": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 100
      },
      "description": "Industries to leave out (same names as industries)."
    },
    "names": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 100
      },
      "description": "Person names, contains match on the full name, any of (e.g. \"Ravi\" or \"Ravi Saini\"). Up to 20. Use this, not keywords, to find someone by name."
    },
    "keywords": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 100
      },
      "description": "Words in the person headline or summary, any of (e.g. SaaS, fintech). Up to 20."
    },
    "skills": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 100
      },
      "description": "LinkedIn skills, exact (e.g. \"Salesforce.com\", \"SaaS\")."
    },
    "company_sizes": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 100
      },
      "description": "Employee headcount: 2-10, 11-50, 51-200, 201-500, 501-1000, 1001-5000, 5001-10000, 10001+, or any range like 11-20 or 1000-5000 (Apollo \"11,20\" is accepted)."
    },
    "company_types": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 100
      },
      "description": "One or more of: Public Company, Privately Held, Nonprofit, Self-Owned, Self-Employed, Partnership, Government Agency, Educational Institution. Apollo publicly_traded_on maps to Public Company."
    },
    "email_status": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 100
      },
      "description": "verified (work email verified), available (a work email exists, verified or not), none. MCP, API and pulls default to verified + available; pass all three for everyone."
    },
    "recently_changed_jobs": {
      "type": "boolean",
      "description": "Only people who changed jobs recently (network flag)."
    },
    "changed_jobs_within_days": {
      "type": "integer",
      "description": "Only people who started their current role within this many days (1-730), e.g. 90 for new in role. Apollo new_role_days_ago is accepted."
    },
    "languages": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 100
      },
      "description": "Languages the person lists (plain names, e.g. Spanish; proficiency variants are matched)."
    },
    "years_experience_min": {
      "type": "integer",
      "description": "Minimum years of total work experience."
    },
    "years_experience_max": {
      "type": "integer",
      "description": "Maximum years of total work experience."
    },
    "past_companies": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 100
      },
      "description": "Former employees: people who LEFT one of these employers, by domain (acme.com, best) or exact name as the network stores it (e.g. \"Acme Inc\"). Up to 20. Each row then carries former_employer (company, title, left_date) and every past job in past_employers; company_name is where they work now."
    },
    "left_years_ago": {
      "type": "object",
      "properties": {
        "min": {
          "type": "number",
          "minimum": 0,
          "maximum": 50
        },
        "max": {
          "type": "number",
          "minimum": 0,
          "maximum": 50
        }
      },
      "additionalProperties": false,
      "description": "With past_companies: they left between min and max years ago, e.g. {\"min\":1,\"max\":3}. Relative to today (a saved search keeps that meaning). Use this or left_after / left_before."
    },
    "left_after": {
      "type": "string",
      "pattern": "^\\d{4}(-\\d{2}(-\\d{2})?)?$",
      "description": "With past_companies: they left on or after this date (YYYY-MM-DD or YYYY-MM)."
    },
    "left_before": {
      "type": "string",
      "pattern": "^\\d{4}(-\\d{2}(-\\d{2})?)?$",
      "description": "With past_companies: they left on or before this date (YYYY-MM-DD or YYYY-MM)."
    },
    "exclude_current": {
      "type": "boolean",
      "description": "With past_companies: leave out people who work there now (default true, e.g. people who came back)."
    },
    "past_titles": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 100
      },
      "description": "With past_companies: the title they held AT that employer (the job they left), contains match, any of, e.g. \"VP Sales\", \"Head of Marketing\". Up to 10. Not their current title (use titles for that)."
    },
    "past_title_keywords": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 100
      },
      "description": "With past_companies: single words that must ALL appear in the title they held at that employer, e.g. [\"sales\"] or [\"engineering\"]. Up to 5."
    },
    "past_seniority": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 100
      },
      "description": "With past_companies: seniority of the job they held at that employer, any of: intern, entry, senior, manager, director, vp, c_level, owner (founder = owner). Each row shows it in former_employer.seniority."
    },
    "sort": {
      "type": "string",
      "enum": [
        "updated",
        "company_size",
        "years_experience",
        "recently_changed_jobs",
        "start_date",
        "name"
      ],
      "description": "Result order (default updated = recently updated profiles first). There is no relevance sort."
    },
    "sort_dir": {
      "type": "string",
      "enum": [
        "asc",
        "desc"
      ],
      "description": "Default desc (asc for name)."
    },
    "page": {
      "type": "integer",
      "minimum": 1,
      "default": 1,
      "description": "Pages load in order: use next_page from the previous response."
    },
    "per_page": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100,
      "default": 25,
      "description": "25 rows = 1 page load."
    },
    "confirm": {
      "type": "boolean",
      "description": "Approve the cost a 402 confirm_required answer showed."
    },
    "max_credits": {
      "type": "integer",
      "minimum": 0,
      "description": "The most this request may spend (also capped by the API daily credit cap)."
    }
  }
}