{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pricklymails-com/json-schema/pricklymails-com-submit-batch-request-schema.json",
  "title": "SubmitBatchRequest",
  "description": "`POST /api/batches` request body.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pricklymails-com-batches-api-openapi.yml#/components/schemas/SubmitBatchRequest",
  "type": "object",
  "required": [
    "emails"
  ],
  "properties": {
    "checks": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      },
      "description": "Optional explicit check names; defaults to every check the caller's plan allows."
    },
    "custom_ids": {
      "type": "array",
      "items": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "Optional per-email client references, index-aligned 1:1 with `emails`; empty means none.\nEchoed back verbatim in `GET /api/batches/{uuid}/results` so a caller can map each result to its input row\nwithout trusting submission order."
    },
    "emails": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Email addresses to verify."
    },
    "final": {
      "type": "boolean",
      "description": "Whether this is the batch's only (or final) chunk. Defaults to `true`, the single-shot behavior.\nSet `false` to open the batch for further chunks via `POST /api/batches/{uuid}/emails`."
    },
    "name": {
      "type": [
        "string",
        "null"
      ],
      "description": "Optional display name for the batch."
    }
  }
}