{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/xverum-com/json-schema/xverum-com-partner-company-schema.json",
  "title": "PartnerCompany",
  "description": "A single company.\n\nOne flat tier, consistent with `GET /v1/profiles/{id}`. The whole heavy tail\nis `about_us`, `specialties` and `locations`, and the entire record measures\n~1.4 KB at the median.\n\nEmployee lists are deliberately excluded. They are personal data reached\nthrough a company endpoint by a caller who never asked for a person, they\nundercut the per-profile product, and the source data is weak anyway.",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/xverum-com-openapi.json#/components/schemas/PartnerCompany",
  "properties": {
    "social_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Social Url",
      "description": "Company social URL"
    },
    "company_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Company Name",
      "description": "Company name"
    },
    "slogan": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Slogan",
      "description": "Short tagline"
    },
    "headquarters": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Headquarters",
      "description": "Headquarters, 'City, Region'"
    },
    "country_code": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Country Code",
      "description": "Lowercase country code"
    },
    "industry": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Industry",
      "description": "Industry vertical"
    },
    "employees_num": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 1.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Employees Num",
      "description": "Employee count; null if unknown"
    },
    "website": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Website",
      "description": "Company website"
    },
    "founded": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Founded",
      "description": "Year founded"
    },
    "evidence_summary": {
      "type": "string",
      "title": "Evidence Summary",
      "description": "How recently this record was verified, from its refresh date: 'Verified last X days' (X = 30, 60, 90, 120, or over 120).",
      "default": "Verified over 120 days ago"
    },
    "about_us": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "About Us",
      "description": "Company description"
    },
    "specialties": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Specialties",
      "description": "Self-declared specialties"
    },
    "locations": {
      "items": {
        "$ref": "#/$defs/CompanyLocation"
      },
      "type": "array",
      "title": "Locations",
      "description": "Office addresses"
    },
    "type": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Type",
      "description": "Organisation type, e.g. 'Privately Held'"
    },
    "social_followers": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 1.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Social Followers",
      "description": "Social follower count; null if unknown"
    },
    "funding": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Funding",
      "description": "Total raised, USD; null until sourced"
    },
    "credits_used": {
      "type": "integer",
      "minimum": 0.0,
      "title": "Credits Used",
      "description": "Billable credits reported for this call (`0` on a deduped retry)"
    },
    "credits_remaining": {
      "type": "integer",
      "minimum": 0.0,
      "title": "Credits Remaining",
      "description": "Credits remaining on the account after this call"
    },
    "request_id": {
      "type": "string",
      "title": "Request Id",
      "description": "Correlation id (also in X-Request-Id)"
    },
    "usage_notice": {
      "anyOf": [
        {
          "$ref": "#/$defs/PartnerUsageNotice"
        },
        {
          "type": "null"
        }
      ],
      "description": "Credit-usage lifecycle notice for the account (approaching or at the plan limit); `null` when no notice is due. Account-scoped, shown at most once per billing cycle."
    }
  },
  "type": "object",
  "required": [
    "credits_used",
    "credits_remaining",
    "request_id"
  ],
  "$defs": {
    "CompanyLocation": {
      "properties": {
        "address": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Address"
        },
        "address_2": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Address 2"
        },
        "primary": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Primary"
        }
      },
      "type": "object",
      "title": "CompanyLocation",
      "description": "One office address.\n\nMirrors the shape the ingest writes into the index's ``locations`` array:\n``{\"address\": ..., \"address_2\": ..., \"primary\": true}``. Every field is\noptional — the array is present on 74% of companies and individual keys\nvary. ``locations`` is mapped ``object``/``enabled: false``, so it is\ncarried in ``_source`` and never queryable."
    },
    "PartnerUsageNotice": {
      "properties": {
        "message": {
          "type": "string",
          "title": "Message",
          "description": "Rendered notice text to show the user"
        },
        "approve_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Approve Url",
          "description": "Approve extra-usage link; null if none"
        },
        "upgrade_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Upgrade Url",
          "description": "Upgrade-plan link; null if none"
        }
      },
      "type": "object",
      "required": [
        "message"
      ],
      "title": "PartnerUsageNotice",
      "description": "A credit-usage lifecycle notice for the account (80% / limit reached).\n\nBest-effort and account-scoped, not result-scoped: it rides on the top level\nof a successful response and is shown at most once per billing cycle. The\ntext is rendered upstream by billing (every placeholder already filled);\n`approve_url` / `upgrade_url` are the per-user action links, `null` when the\nnotice has no call to action."
    }
  }
}