{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mobilevalidate-com/json-schema/mobilevalidate-com-job-input-schema.json",
  "title": "JobInput",
  "description": "numbers and/or emails, together ≤ 50,000 (10 with the public sandbox key). Identifiers × applicable checks ≤ 100,000 per job (400 invalid_request, param checks); checked before anything is stored or reserved.\n",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mobilevalidate-com-openapi.yaml#/components/schemas/JobInput",
  "type": "object",
  "additionalProperties": false,
  "anyOf": [
    {
      "required": [
        "numbers"
      ]
    },
    {
      "required": [
        "emails"
      ]
    }
  ],
  "properties": {
    "numbers": {
      "type": "array",
      "maxItems": 50000,
      "items": {
        "type": "string",
        "maxLength": 32
      }
    },
    "emails": {
      "type": "array",
      "maxItems": 50000,
      "items": {
        "type": "string",
        "maxLength": 254
      }
    },
    "checks": {
      "$ref": "#/$defs/Checks"
    },
    "default_country": {
      "type": "string",
      "pattern": "^[A-Z]{2}$"
    },
    "max_age": {
      "type": "integer",
      "minimum": 0
    },
    "max_cost": {
      "$ref": "#/$defs/Money"
    },
    "webhook_endpoint_id": {
      "type": "string",
      "pattern": "^we_"
    },
    "metadata": {
      "type": "object",
      "maxProperties": 20,
      "additionalProperties": {
        "type": "string",
        "maxLength": 500
      }
    }
  },
  "$defs": {
    "Checks": {
      "type": "array",
      "minItems": 1,
      "maxItems": 20,
      "items": {
        "type": "string",
        "maxLength": 64
      },
      "default": [
        "whatsapp"
      ],
      "description": "Service codes or aliases (e.g. whatsapp, telegram, viber, carrier, spam; e-mail: email, gmail, outlook, yahoo; full list: GET /v1/services). Order is kept; duplicates are ignored; whatsapp.registered + whatsapp.business collapse to whatsapp.business. Phone checks apply to numbers, e-mail checks (input_type email) to emails: sending e-mails without an e-mail check (or numbers without a phone check) → 400 invalid_request, param checks; a check whose input type has no identifiers → 400 invalid_request, param checks[i]. At most 20 checks (400 invalid_request, param checks).\n"
    },
    "Money": {
      "type": "object",
      "required": [
        "amount",
        "currency"
      ],
      "properties": {
        "amount": {
          "type": "string",
          "pattern": "^-?[0-9]+(\\.[0-9]+)?$",
          "description": "Decimal USD amount."
        },
        "currency": {
          "type": "string",
          "enum": [
            "USD"
          ]
        }
      }
    }
  }
}