{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/precleared-dev/json-schema/precleared-dev-check-request-schema.json",
  "title": "CheckRequest",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/precleared-dev-openapi.json#/components/schemas/CheckRequest",
  "type": "object",
  "properties": {
    "recipient_email": {
      "type": "string"
    },
    "recipient_domain": {
      "type": "string"
    },
    "sender_country": {
      "type": "string",
      "enum": [
        "GB",
        "US",
        "CA",
        "DE",
        "FR",
        "AU",
        "IE",
        "NL",
        "ES",
        "IT",
        "LV",
        "AE",
        "EG",
        "QA"
      ],
      "default": "GB",
      "description": "Country the sending business is based in: any covered country (GB, US, CA, DE, FR, AU, IE, NL, ES, IT, LV, AE, EG or QA). CA senders must also meet the existing CASL implied-consent rule: published address without a refusal statement and a role-relevant pitch. CASL footer requirements are added."
    },
    "pitch": {
      "type": "string"
    },
    "address_source": {
      "type": "string",
      "enum": [
        "published",
        "bought",
        "scraped",
        "given",
        "unknown"
      ],
      "default": "unknown"
    },
    "recipient_country": {
      "type": "string",
      "pattern": "^[A-Za-z]{2}$",
      "description": "Recipient country as a two-letter code. Covers the UK, US, Canada, Germany, France, Australia, Ireland, the Netherlands, Spain, Italy, Latvia, the United Arab Emirates, Egypt and Qatar."
    },
    "default_recipient_country": {
      "type": "string",
      "pattern": "^[A-Za-z]{2}$",
      "description": "Used only when the country can't be worked out. recipient_country always wins."
    },
    "company_name": {
      "type": "string",
      "maxLength": 160,
      "description": "The recipient's company or organisation name if you know it. For UK recipients it is used to search Companies House when the domain alone does not find the company. A company is only used when other evidence links it to the recipient, including a distinctive domain stem match."
    },
    "recipient_name": {
      "type": "string",
      "maxLength": 120,
      "description": "The recipient's full name if you know it. For UK recipients it is matched against a company's current officers. Precleared does not store it."
    },
    "company_number": {
      "type": "string",
      "description": "When a site shows no company number, Precleared searches Companies House by name. Website or named-officer evidence gives legal_form_source companies_house_search with one step lower confidence. A distinctive domain stem can also confirm a supplied or website-derived company name as companies_house_name_domain with medium confidence."
    },
    "pitch_relevant": {
      "type": "boolean"
    },
    "existing_customer": {
      "type": "boolean",
      "default": false
    },
    "suppressed": {
      "type": "boolean"
    }
  }
}