{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/xverum-com/json-schema/xverum-com-partner-company-search-response-schema.json",
  "title": "PartnerCompanySearchResponse",
  "description": "A page of company search results.",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/xverum-com-openapi.json#/components/schemas/PartnerCompanySearchResponse",
  "properties": {
    "total_count": {
      "type": "integer",
      "minimum": 0.0,
      "title": "Total Count",
      "description": "Estimated total matches"
    },
    "page": {
      "type": "integer",
      "minimum": 1.0,
      "title": "Page",
      "description": "1-based page number"
    },
    "page_size": {
      "type": "integer",
      "maximum": 100.0,
      "minimum": 1.0,
      "title": "Page Size",
      "description": "The requested page size, echoed; anchors the result offset and is not reduced by the balance (only the number of results returned is)."
    },
    "credits_used": {
      "type": "integer",
      "minimum": 0.0,
      "title": "Credits Used",
      "description": "Billable credits reported for this call (1 per result)"
    },
    "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."
    },
    "result_type": {
      "type": "string",
      "const": "company",
      "title": "Result Type",
      "description": "Discriminator: this page contains companies",
      "default": "company"
    },
    "results": {
      "items": {
        "$ref": "#/$defs/PartnerCompanyCard"
      },
      "type": "array",
      "title": "Results",
      "description": "Matched companies for this page"
    }
  },
  "type": "object",
  "required": [
    "total_count",
    "page",
    "page_size",
    "credits_used",
    "credits_remaining",
    "request_id"
  ],
  "$defs": {
    "PartnerCompanyCard": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id",
          "description": "Company id; pass to `GET /v1/companies/{company_id}`"
        },
        "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"
        }
      },
      "type": "object",
      "required": [
        "id"
      ],
      "title": "PartnerCompanyCard",
      "description": "A single company returned in search results."
    },
    "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."
    }
  }
}