{
  "type": "object",
  "required": [
    "need"
  ],
  "properties": {
    "action": {
      "type": "string",
      "enum": [
        "buy",
        "source",
        "quote",
        "verify",
        "lease",
        "license",
        "hire",
        "retrieve",
        "convert",
        "other"
      ],
      "description": "What you want done"
    },
    "need": {
      "type": "string",
      "maxLength": 2000,
      "description": "The requirement in your own words"
    },
    "specifications": {
      "type": "object",
      "properties": {
        "record_type": {
          "type": "string",
          "enum": [
            "COURT_FILING",
            "DOCKET",
            "DEED",
            "MORTGAGE_OR_LIEN",
            "PLAT_OR_SURVEY",
            "BUILDING_PERMIT",
            "BUSINESS_FILING",
            "UCC_FILING",
            "OTHER"
          ],
          "description": "Kind of record",
          "x-facet": "specification"
        },
        "jurisdiction": {
          "type": "string",
          "maxLength": 120,
          "description": "County, city, state or federal district",
          "x-facet": "geography"
        },
        "office": {
          "type": "string",
          "maxLength": 160,
          "description": "Court, recorder, clerk or agency that holds it",
          "x-facet": "geography"
        },
        "reference_number": {
          "type": "string",
          "maxLength": 120,
          "description": "Case, instrument, book and page, permit or file number",
          "x-facet": "identifier"
        },
        "party_or_property": {
          "type": "string",
          "maxLength": 200,
          "description": "Business name, parcel number or property description the record concerns",
          "x-facet": "identifier"
        },
        "date_range": {
          "type": "string",
          "maxLength": 80,
          "description": "Dates the record falls within",
          "x-facet": "timing"
        },
        "copy_type": {
          "type": "string",
          "enum": [
            "PLAIN",
            "CERTIFIED",
            "EXEMPLIFIED"
          ],
          "description": "Kind of copy",
          "x-facet": "specification"
        },
        "needed_by": {
          "type": "string",
          "maxLength": 40,
          "description": "Date the copy is needed (YYYY-MM-DD)",
          "x-facet": "timing"
        }
      }
    },
    "quantity": {
      "type": "object",
      "properties": {
        "amount": {
          "type": "number"
        },
        "unit": {
          "type": "string"
        },
        "per": {
          "type": "string"
        }
      }
    },
    "timing": {
      "type": "object",
      "properties": {
        "earliest": {
          "type": "string"
        },
        "latest": {
          "type": "string"
        },
        "recurrence": {
          "type": "string"
        },
        "text": {
          "type": "string"
        }
      }
    },
    "geography": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "from": {
          "type": "string"
        },
        "to": {
          "type": "string"
        }
      }
    },
    "budget": {
      "type": "object",
      "properties": {
        "amount": {
          "type": "number"
        },
        "currency": {
          "type": "string",
          "description": "ISO 4217, default USD"
        },
        "per": {
          "type": "string",
          "description": "total, unit, month, year, load, ..."
        }
      }
    },
    "requested_fields": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "maxItems": 30,
      "description": "Result fields you need"
    },
    "contact": {
      "type": "object",
      "description": "Optional; stored apart and deleted after 180 days",
      "properties": {
        "email": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "organization": {
          "type": "string"
        }
      }
    }
  }
}