{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Quarry single trace request",
  "description": "POST /api/skiptrace. Known string fields are trimmed. Unknown fields are discarded by the server. A nonblank name, company or apn, or both coordinates, is required. Phone/email alone are not start targets. Live metered operation.",
  "type": "object",
  "properties": {
    "apn": {
      "type": "string",
      "maxLength": 300,
      "description": "Trimmed before validation."
    },
    "name": {
      "type": "string",
      "maxLength": 300,
      "description": "Trimmed before validation."
    },
    "company": {
      "type": "string",
      "maxLength": 300,
      "description": "Trimmed before validation."
    },
    "city": {
      "type": "string",
      "maxLength": 120,
      "description": "Trimmed before validation."
    },
    "state": {
      "type": "string",
      "maxLength": 80,
      "description": "Trimmed before validation."
    },
    "address": {
      "type": "string",
      "maxLength": 500,
      "description": "Trimmed before validation."
    },
    "phone": {
      "type": "string",
      "maxLength": 80,
      "description": "Trimmed before validation."
    },
    "email": {
      "type": "string",
      "maxLength": 320,
      "description": "Trimmed before validation."
    },
    "lat": {
      "type": "number",
      "minimum": -90,
      "maximum": 90
    },
    "lng": {
      "type": "number",
      "minimum": -180,
      "maximum": 180
    }
  },
  "dependentRequired": {
    "lat": [
      "lng"
    ],
    "lng": [
      "lat"
    ]
  },
  "anyOf": [
    {
      "required": [
        "apn"
      ],
      "properties": {
        "apn": {
          "type": "string",
          "pattern": "\\S"
        }
      }
    },
    {
      "required": [
        "name"
      ],
      "properties": {
        "name": {
          "type": "string",
          "pattern": "\\S"
        }
      }
    },
    {
      "required": [
        "company"
      ],
      "properties": {
        "company": {
          "type": "string",
          "pattern": "\\S"
        }
      }
    },
    {
      "required": [
        "lat",
        "lng"
      ]
    }
  ],
  "additionalProperties": true
}
