{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/generect-com/json-schema/generect-com-company-bulk-enrich-request-schema.json",
  "title": "CompanyBulkEnrichRequest",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/generect-com-openapi.yaml#/components/schemas/CompanyBulkEnrichRequest",
  "type": "object",
  "required": [
    "companies"
  ],
  "properties": {
    "companies": {
      "type": "array",
      "maxItems": 50,
      "description": "Companies to enrich (max 50 per request). Each entry provides exactly one identifier: id, domain, linkedin_url, or name.",
      "items": {
        "oneOf": [
          {
            "title": "By LinkedIn URL",
            "type": "object",
            "required": [
              "linkedin_url"
            ],
            "properties": {
              "linkedin_url": {
                "type": "string"
              }
            }
          },
          {
            "title": "By Domain",
            "type": "object",
            "required": [
              "domain"
            ],
            "properties": {
              "domain": {
                "type": "string"
              }
            }
          },
          {
            "title": "By Company ID",
            "type": "object",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string"
              }
            }
          },
          {
            "title": "By Name",
            "type": "object",
            "required": [
              "name"
            ],
            "properties": {
              "name": {
                "type": "string"
              }
            }
          }
        ]
      }
    }
  }
}