{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pricklymails-com/json-schema/pricklymails-com-append-emails-request-schema.json",
  "title": "AppendEmailsRequest",
  "description": "`POST /api/batches/{uuid}/emails` 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/AppendEmailsRequest",
  "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.\nA streamed caller passes the same selection on every chunk so the whole batch runs one check set."
    },
    "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`."
    },
    "emails": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Email addresses to verify in this chunk. May be empty (a pure \"close intake now\" call)."
    },
    "final": {
      "type": "boolean",
      "description": "Whether this is the batch's final chunk; closes intake and completes the batch when every job (old and new) is\nalready processed. Defaults to `true`."
    }
  }
}